cuda.bindings.nvml.device_get_gpu_instance_possible_placements_v2#

cuda.bindings.nvml.device_get_gpu_instance_possible_placements_v2(
intptr_t device,
unsigned int profile_id,
)#

Get GPU instance placements.

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

Parameters:
  • device (intptr_t) – The identifier of the target device.

  • profile_id (unsigned int) – The GPU instance profile ID. See nvmlDeviceGetGpuInstanceProfileInfo.

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:

nvmlGpuInstancePlacement_t

See also

nvmlDeviceGetGpuInstancePossiblePlacements_v2