Skip to main content
Version: 1.0

is_gpu

is_gpu[target: StringSlice[target.origin]]() -> Bool

Checks if the target is a GPU (compile-time version).

Parameters:

Returns:

Bool: True if the target is a GPU, False otherwise.

is_gpu(target: StringSlice[target.origin]) -> Bool

Checks if the target is a GPU (runtime version).

Args:

Returns:

Bool: True if the target is a GPU, False otherwise.