You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then use PYTORCH_TEST_WITH_ROCM=1 python test/test_nn.py TestNN.test_Transformer_multilayer_coder_cuda_tf32 to run UT.
It fails with
Traceback (most recent call last):
File "/home/guest/project/pytorch/test/test_nn.py", line 43, in <module>
from torch.testing._internal.common_device_type import dtypesIfMPS, instantiate_device_type_tests, dtypes, \
File "/home/guest/project/pytorch/torch/testing/_internal/common_device_type.py", line 1972, in <module>
if torch.version.hip and "gfx94" in torch.cuda.get_device_properties(0).gcnArchName:
File "/home/guest/project/pytorch/torch/cuda/__init__.py", line 587, in get_device_properties
_lazy_init() # will define _get_device_properties
File "/home/guest/project/pytorch/torch/cuda/__init__.py", line 383, in _lazy_init
torch._C._cuda_init()
RuntimeError: No HIP GPUs are available
Use sudo rocminfo can show mi 300, and my user has been added into video user group.
Problem Description
Hello maintainers,
I try to build PyTorch from source and run ROCM UTs on mi 300. I use the following cmd to build PyTorch.
And then use
PYTORCH_TEST_WITH_ROCM=1 python test/test_nn.py TestNN.test_Transformer_multilayer_coder_cuda_tf32
to run UT.It fails with
Use
sudo rocminfo
can show mi 300, and my user has been added into video user group.ROCm version is 6.3.1.
rocm-smi
can show GPUs.And I also run
$ /opt/rocm/bin/rocm_agent_enumerator
, it showsOperating System
Linux cr3ppmser239 5.15.0-139-generic #149-Ubuntu SMP Fri Apr 11 22:06:13 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
CPU
Intel(R) Xeon(R) Platinum 8470
GPU
AMD Instinct MI300X
ROCm Version
6.3.1
ROCm Component
No response
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: