cuda.bindings.nvml.gpu_instance_create_compute_instance#

cuda.bindings.nvml.gpu_instance_create_compute_instance(
intptr_t gpu_instance,
unsigned int profile_id,
) intptr_t#

Create compute instance.

For Ampere ™️ or newer fully supported devices. Supported on Linux only. Requires privileged user. If the parent device is unbound, reset or the parent GPU instance is destroyed or the compute instance is destroyed explicitly, the compute instance handle would become invalid. The compute instance must be recreated to acquire a valid handle.

Parameters:
  • gpu_instance (intptr_t) – The identifier of the target GPU instance.

  • profile_id (unsigned int) – The compute instance profile ID. See nvmlGpuInstanceGetComputeInstanceProfileInfo.

Returns:

Returns the compute instance handle.

Return type:

intptr_t

See also

nvmlGpuInstanceCreateComputeInstance