Skip to main content

Mojo function

get_gpu_target

get_gpu_target[target_arch: StringSlice[StaticConstantOrigin] = _accelerator_arch()]() -> target

Gets the GPU target information for the specified architecture.

Parameters:

  • target_arch (StringSlice): GPU architecture name (defaults to current accelerator architecture).

Returns:

target: Target type information for the specified GPU architecture.

Was this page helpful?