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_api
set_virtual_device_api()โ
Sets the target API for virtual devices in compile-only mode.
This specifies which GPU API virtual devices use for compilation,
such as "cuda", "hip", or "metal". Must be called
before creating virtual devices via
set_virtual_device_count().
-
Parameters:
-
api โ The target API string, such as
"cuda"for NVIDIA,"hip"for AMD, or"metal"for Apple.