cuda.bindings.nvml.gpu_instance_get_compute_instance_possible_placements#

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

Get compute instance placements.

For Ampere ™️ or newer fully supported devices. Supported on Linux only. Requires privileged user. A placement represents the location of a compute instance within a GPU instance. This API only returns all the possible placements for the given profile. A created compute instance occupies compute slices described by its placement. Creation of new compute instance will fail if there is overlap with the already occupied compute slices.

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 placements allowed for the

profile. Can be NULL to discover number of allowed placements for this profile. If non-NULL must be large enough to accommodate the placements supported by the profile.

Return type:

nvmlComputeInstancePlacement_t

See also

nvmlGpuInstanceGetComputeInstancePossiblePlacements