IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Mojo function

get_gpu_target

def get_gpu_target[target_arch: StringSpan[ImmStaticOrigin] = _accelerator_arch()]() -> __mlir_type.`!kgen.target`

Gets the GPU target information for the specified architecture.

Parameters:

  • target_arch (StringSpan[ImmStaticOrigin]): 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?