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).

Python function

set_virtual_device_count

set_virtual_device_count()โ€‹

max.driver.set_virtual_device_count(count: int) โ†’ None

source

Sets the number of virtual devices for device creation.

When count is greater than 0, device creation returns virtual devices for GPU APIs, and device enumeration reports this count. This allows creating devices for GPU configurations beyond the current hardware.

Parameters:

count โ€“ The number of virtual devices. Set to 0 to disable virtual device mode.