ROCm: [Issue]: Driver not initialized (amdgpu not found in modules)

Problem Description

Previously, I was able to run ROCm 5.7.1 without any issues but as soon as I installed ROCm 6.0 it would not function properly.

Upon running rocm-smi after performing an install using sudo amdgpu-install --usecase=rocm,hiplibsdk,graphics and rebooting, I get the following error:

cat: /sys/module/amdgpu/initstate: No such file or directory ERROR:root:Driver not initialized (amdgpu not found in modules)

Operating System

22.04.3 LTS (Jammy Jellyfish)

CPU

AMD Ryzen 7 7700X 8-Core Processor

GPU

AMD Radeon RX 7900 XTX

Other

No response

ROCm Version

ROCm 6.0.0

ROCm Component

ROCm

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

cannot use rocminfo --support, gives the error: ROCk module is NOT loaded, possibly no GPU devices

Additional Information

rocm-output.txt Here is the terminal output when I attempted to uninstall then reinstall ROCm 6.0

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25

Most upvoted comments

@sammtan You’re trying ROCm without AMD HW? Then --usecase=dkms will be useless to you, since that’s just the AMD kernel packages (amdgpu, amdkfd, ttm, scheduler). If you want to do ROCm stuff without AMD HW, you can try amdgpu-install --usecase=rocm --no-dkms nut there’s no support from our side on that, since there’s no AMD HW to speak of.

TL;DR If you don’t have AMD hardware, don’t install the dkms package. It won’t do anything useful (and shouldn’t do anything at all, unless you’ve got some dependencies on ttm)