So Iām getting somewhere.
Rocm 6.0 does not manage properly the hybrid cards in my machine (under Fedora 40), whereas Rocm5.7 does perfectly well.
Here are the details:
Projects/learning-python/pytorch via š v3.12.2
⯠python
Python 3.12.2 (main, Feb 21 2024, 00:00:00) [GCC 14.0.1 20240217 (Red Hat 14.0.1-0)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> print(torch.__version__)
2.2.1+rocm5.7
>>> torch.cuda.is_available()
True
>>> torch.cuda.device_count()
1
>>> torch.cuda.current_device()
0
>>> torch.cuda.device(0)
<torch.cuda.device object at 0x7f913c3b2360>
>>> torch.cuda.get_device_name(0)
'AMD Radeon RX 7700S'
>>> quit()
Projects/learning-python/pytorch via š v3.12.2 took 57s
⯠source .venv/bin/activate
Projects/learning-python/pytorch via š v3.12.1 (.venv)
⯠python
Python 3.12.1 | packaged by Anaconda, Inc. | (main, Jan 19 2024, 15:51:05) [GCC 11.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
amdgpu.ids: No such file or directory
amdgpu.ids: No such file or directory
>>> print(torch.__version__)
2.3.0.dev20240312+rocm6.0
>>> torch.cuda.is_available()
True
>>> torch.cuda.device_count()
1
>>> torch.cuda.device(0)
<torch.cuda.device object at 0x7f0ff2000830>
>>> torch.cuda.get_device_name(0)
'AMD Radeon Graphics'
>>> quit()
So I guess I have to stick to Rocm 5.7 for now.