Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NAS-132878 / 25.04 / add kfd device flag existence #15116

Merged
merged 3 commits into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ async def normalize_gpu_configuration(self, attr, value, complete_config, contex
}
if not any(gpu['vendor'] != 'NVIDIA' for gpu in gpu_choices.values()):
value['use_all_gpus'] = False
value['kfd_device_exists'] = os.path.exists('/dev/kfd')

for nvidia_gpu_pci_slot in list(value['nvidia_gpu_selection']):
if nvidia_gpu_pci_slot not in gpu_choices or gpu_choices[nvidia_gpu_pci_slot]['vendor'] != 'NVIDIA':
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@
],
{
'use_all_gpus': True,
'kfd_device_exists': False,
'nvidia_gpu_selection': {
'0000:01:00.0': 'NVIDIA GPU 1',
'0000:02:00.0': 'NVIDIA GPU 2'
}
},
{
'use_all_gpus': False,
'kfd_device_exists': False,
'nvidia_gpu_selection': {}
}

Expand All @@ -63,10 +65,12 @@
],
{
'use_all_gpus': True,
'kfd_device_exists': False,
'nvidia_gpu_selection': {}
},
{
'use_all_gpus': True,
'kfd_device_exists': False,
'nvidia_gpu_selection': {}
}

Expand Down Expand Up @@ -110,10 +114,12 @@
],
{
'use_all_gpus': True,
'kfd_device_exists': False,
'nvidia_gpu_selection': {}
},
{
'use_all_gpus': True,
'kfd_device_exists': False,
'nvidia_gpu_selection': {}
}

Expand Down
Loading