cuda.bindings.nvml.device_create_gpu_instance_with_placement#

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

Create GPU instance with the specified placement.

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

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

  • placement (intptr_t) – The requested placement. See nvmlDeviceGetGpuInstancePossiblePlacements_v2.

Returns:

Returns the GPU instance handle.

Return type:

intptr_t

See also

nvmlDeviceCreateGpuInstanceWithPlacement