cuda.bindings.nvml.gpu_instance_get_compute_instances#

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

Get compute instances for given profile ID.

Unlike most array-returning MIG APIs, nvmlGpuInstanceGetComputeInstances does not accept a NULL buffer to discover the count; use the number of possible placements for the profile as a safe upper bound.

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 pre-existing compute instances for the given

profile.

Return type:

list[intptr_t]

See also

nvmlGpuInstanceGetComputeInstances