tomwer.gui.cluster.slurm.format_gpu_mapping#
- tomwer.gui.cluster.slurm.format_gpu_mapping(gpu_name)#
Convert a raw GPU name into a mapping with keys ‘serial’ and ‘display’.
- Parameters:
gpu_name (
str) – The raw GPU name.- Return type:
dict- Returns:
A dict with the original ‘serial’ and a user-friendly ‘display’ string.