File tree Expand file tree Collapse file tree
cuda_core/cuda/core/system Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ class ProcessInfo:
3333 Only valid for processes running on MIG devices.
3434 """
3535 if not self._device.mig.is_mig_device:
36- raise nvml.NotSupportedError(
37- "GPU instance ID is only valid for processes running on MIG devices."
38- )
36+ raise nvml.NotSupportedError(nvml.Return.ERROR_NOT_SUPPORTED )
3937 return self._process_info.gpu_instance_id
4038
4139 @property
@@ -46,7 +44,5 @@ class ProcessInfo:
4644 Only valid for processes running on MIG devices.
4745 """
4846 if not self._device.mig.is_mig_device:
49- raise nvml.NotSupportedError(
50- "Compute instance ID is only valid for processes running on MIG devices."
51- )
47+ raise nvml.NotSupportedError(nvml.Return.ERROR_NOT_SUPPORTED )
5248 return self._process_info.compute_instance_id
You can’t perform that action at this time.
0 commit comments