For the complete Mojo documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /docs/manual/basics.md).
default_accelerator
def default_accelerator() -> CompilationTarget
Get the default accelerator target.
The default accelerator is determined automatically by the compiler, but
may be overridden by the --target-accelerator command line flag.
This function will always return the same value, whether called in host or
accelerator offload (compile_info) compilation context.
Constraints:
An accelerator target must be configured.
Returns:
CompilationTarget: A value representing the current accelerator target.