cuda.bindings.nvml.gpu_instance_create_compute_instance_with_placement#
- cuda.bindings.nvml.gpu_instance_create_compute_instance_with_placement(
- intptr_t gpu_instance,
- unsigned int profile_id,
- placement,
Create compute instance with the specified placement.
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.placement (intptr_t) – The requested placement. See
nvmlGpuInstanceGetComputeInstancePossiblePlacements.
- Returns:
Returns the compute instance handle.
- Return type:
intptr_t
See also
nvmlGpuInstanceCreateComputeInstanceWithPlacement