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).
Python function
set_virtual_device_target_arch
set_virtual_device_target_arch()โ
max.driver.set_virtual_device_target_arch(arch: str) โ None
Sets the target GPU architecture for virtual devices in compile-only mode.
This specifies the GPU architecture that virtual devices target
when compiling code, such as "sm_80" or "sm_90". Must be
called before creating virtual devices via
set_virtual_device_count().
-
Parameters:
-
arch โ The target GPU architecture string, such as
"sm_80"for Ampere/A100 or"sm_90"for Hopper/H100.