unilab.training.cuda_process_sharing.canonicalize_gpu_uuid¶
- unilab.training.cuda_process_sharing.canonicalize_gpu_uuid(value)[source]¶
Return the case- and dash-insensitive NVIDIA GPU UUID comparison token.
Torch,
nvidia-smi, andCUDA_VISIBLE_DEVICESexpose the same UUID with different cases, dashes, and an optionalGPU-prefix; equality checks must compare this token rather than the raw strings. The persisted/display form staysGPU-<id>(seecuda_mps_cli).