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()]() -> CompilationTarget
Gets the GPU target information for the specified architecture.
Parameters:
- target_arch (
StringSpan[ImmStaticOrigin]): GPU architecture name (defaults to current accelerator architecture).
Returns:
CompilationTarget: Target type information for the specified GPU architecture.