Skip to main content

Mojo function

get_gpu_target

get_gpu_target[target_arch: StringSlice[StaticConstantOrigin] = _accelerator_arch()]() -> __mlir_type.!kgen.target``

Gets the GPU target information for the specified architecture.

Parameters:

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

Returns:

__mlir_type.!kgen.target``: Target type information for the specified GPU architecture.

Was this page helpful?