You are not logged in.

#1 Today 01:38:56

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 117
Website

AMD Gpu, rocm, hip. Failed to find HIP root directory

Hi, trying to build myself a Strata for local llm , i have older GPU gfx1012 ( Amd Radeon Pro W5500 ), installed rocm amd gpu f sdk package , tested with Aur package gfx1012-bin but having same issues. HIP root directory is missing.

hipconfig --rocmpath
Warning: HIP version file: "/opt/rocm/hiprand/share/hip/version" not found.  Cannot give HIP version information.

direcotry of hiprand


ls /opt/rocm/hiprand/
src

pacman -Ql hiprand

pacman -Ql hiprand
hiprand /opt/
hiprand /opt/rocm/
hiprand /opt/rocm/hiprand/
hiprand /opt/rocm/hiprand/src/
hiprand /opt/rocm/hiprand/src/fortran/
hiprand /opt/rocm/hiprand/src/fortran/hip_m.f90
hiprand /opt/rocm/hiprand/src/fortran/hiprand_m.f90
hiprand /opt/rocm/include/
hiprand /opt/rocm/include/hiprand/
hiprand /opt/rocm/include/hiprand/hiprand.h
hiprand /opt/rocm/include/hiprand/hiprand.hpp
hiprand /opt/rocm/include/hiprand/hiprand_kernel.h
hiprand /opt/rocm/include/hiprand/hiprand_kernel_nvcc.h
hiprand /opt/rocm/include/hiprand/hiprand_kernel_rocm.h
hiprand /opt/rocm/include/hiprand/hiprand_mtgp32_host.h
hiprand /opt/rocm/include/hiprand/hiprand_nvcc.h
hiprand /opt/rocm/include/hiprand/hiprand_rocm.h
hiprand /opt/rocm/include/hiprand/hiprand_version.h
hiprand /opt/rocm/lib/
hiprand /opt/rocm/lib/cmake/
hiprand /opt/rocm/lib/cmake/hiprand/
hiprand /opt/rocm/lib/cmake/hiprand/hiprand-config-version.cmake
hiprand /opt/rocm/lib/cmake/hiprand/hiprand-config.cmake
hiprand /opt/rocm/lib/cmake/hiprand/hiprand-fortran-config.cmake
hiprand /opt/rocm/lib/cmake/hiprand/hiprand-targets-none.cmake
hiprand /opt/rocm/lib/cmake/hiprand/hiprand-targets.cmake
hiprand /opt/rocm/lib/libhiprand.so
hiprand /opt/rocm/lib/libhiprand.so.1
hiprand /opt/rocm/lib/libhiprand.so.1.1
hiprand /opt/rocm/share/
hiprand /opt/rocm/share/doc/
hiprand /opt/rocm/share/doc/hiprand/
hiprand /opt/rocm/share/doc/hiprand/LICENSE.md
hiprand /usr/
hiprand /usr/share/
hiprand /usr/share/licenses/
hiprand /usr/share/licenses/hiprand/
hiprand /usr/share/licenses/hiprand/LICENSE

hipconfig

hipconfig
Warning: HIP version file: "/opt/rocm/hiprand/share/hip/version" not found.  Cannot give HIP version information.
Warning: HIP version file: "/opt/rocm/hiprand/share/hip/version" not found.  Cannot give HIP version information.
HIP version:

==hipconfig
HIP_PATH           :/opt/rocm/hiprand
ROCM_PATH          :/opt/rocm
HIP_COMPILER       :clang
HIP_PLATFORM       :amd
HIP_RUNTIME        :rocclr
CPP_CONFIG         : -D__HIP_PLATFORM_HCC__= -D__HIP_PLATFORM_AMD__= -I/opt/rocm/hiprand/include -I/include

==hip-clang
HIP_CLANG_PATH     :/opt/rocm/lib/llvm/bin
AMD clang version 22.0.0git (/srcdest/rocm-llvm f58b06dce1f9c15707c5f808fd002e18c2accf7e)
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm/lib/llvm/bin
AMD LLVM version 22.0.0git
  Optimized build.
  Default target: x86_64-pc-linux-gnu
  Host CPU: broadwell

  Registered Targets:
    amdgcn  - AMD GCN GPUs
    nvptx   - NVIDIA PTX 32-bit
    nvptx64 - NVIDIA PTX 64-bit
    r600    - AMD GPUs HD2XXX-HD6XXX
    x86     - 32-bit X86: Pentium-Pro and above
    x86-64  - 64-bit X86: EM64T and AMD64
hip-clang-cxxflags :
sh: line 1: /opt/rocm/hiprand/bin/hipcc: No such file or directory

hip-clang-ldflags :
sh: line 1: /opt/rocm/hiprand/bin/hipcc: No such file or directory


== Environment Variables
PATH =/home/pilietis/.pyenv/plugins/pyenv-virtualenv/shims:/home/pilietis/.pyenv/shims:/home/pilietis/.pyenv/bin:/home/pilietis/.pyenv/bin:/home/pilietis/.pyenv/bin:/home/pilietis/.pyenv/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/opt/rocm/bin:/opt/rocm:/opt/rocm/bin
egrep: warning: egrep is obsolescent; using grep -E
HIP_PATH=/opt/rocm/hiprand

== Linux Kernel
Hostname      :
sh: line 1: hostname: command not found
Linux AsusX99M 7.2.11-arch1-1 #1 SMP PREEMPT_DYNAMIC Fri, 16 Oct 2026 00:28:58 +0000 x86_64 GNU/Linux

What did i missed or missing apart HIP directory


IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 256GB ECC; nVidia Titan V CEO; Intel Core Ultra 7 265K Gigabyte Z890M Gaming X Klevv 7200Mhz 32GB

Offline

#2 Today 09:58:16

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,525

Re: AMD Gpu, rocm, hip. Failed to find HIP root directory

You're missing more then just that folder .

sh: line 1: /opt/rocm/hiprand/bin/hipcc: No such file or directory

== Linux Kernel
Hostname      :
sh: line 1: hostname: command not found

Please post the output of

$ pacman -Qikk hiprand hip-runtime-amd

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 Today 12:41:13

Efka
Member
From: Klaipeda
Registered: 2014-04-27
Posts: 117
Website

Re: AMD Gpu, rocm, hip. Failed to find HIP root directory

Lone_Wolf wrote:

You're missing more then just that folder .

sh: line 1: /opt/rocm/hiprand/bin/hipcc: No such file or directory

== Linux Kernel
Hostname      :
sh: line 1: hostname: command not found

Please post the output of

$ pacman -Qikk hiprand hip-runtime-amd

Output:

pacman -Qikk hiprand hip-runtime-amd
Name            : hiprand
Version         : 7.2.4-1
Description     : rocRAND marshalling library
Architecture    : x86_64
URL             : [url]https://rocm.docs.amd.com/projects/hipRAND/en/latest/[/url]
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : glibc  hip-runtime-amd  libgcc  rocm-core  rocrand
Optional Deps   : gcc-fortran: Use Fortran wrapper
Required By     : rocm-hip-libraries  rocm-hip-sdk
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 211,44 KiB
Packager        : Torsten Keßler <tpkessler@archlinux.org>
Build Date      : 2026 m. gegužės 31 d. 15:14:34
Install Date    : 2026 m. spalio 27 d. 02:37:41
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

hiprand: 38 total files, 0 altered files
Name            : hip-runtime-amd
Version         : 7.2.4-1
Description     : Heterogeneous Interface for Portability (AMD runtime)
Architecture    : x86_64
URL             : [url]https://rocm.docs.amd.com/projects/HIP/en/latest/[/url]
Licenses        : MIT
Groups          : None
Provides        : hip=7.2.4
Depends On      : rocm-core  bash  perl  glibc  libgcc  numactl  mesa  comgr  rocminfo  rocm-llvm  libelf
                  rocprofiler-register
Optional Deps   : inetutils: Print hostname in hipconfig
                  cuda: Cross compile for nvidia
Required By     : composable-kernel  ggml-hip  hipblas  hipblaslt  hipcub  hipfft  hiprand  hipsolver  hipsparse
                  miopen-hip  rccl  rocalution  rocblas  rocfft  rocm-hip-runtime  rocprim  rocrand  rocsolver
                  rocsparse  rocthrust  roctracer
Optional For    : openmpi
Conflicts With  : None
Replaces        : hip
Installed Size  : 31,62 MiB
Packager        : Torsten Keßler <tpkessler@archlinux.org>
Build Date      : 2026 m. gegužės 31 d. 11:26:29
Install Date    : 2026 m. spalio 27 d. 02:51:57
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature

hip-runtime-amd: 156 total files, 0 altered files

IBM Lenovo ThinkPad T61 ; Lenovo ThinkPad X220; Lenovo ThinkPad T440p; Lenovo Thinkpad W520; Lenovo Thinkpad P71; ThinkPad X1 Yoga Gen1;  FrankenPad T25
Asus Z10PE D-16 WS; 2x Intel Xeon E-5 2690V4; 256GB ECC; nVidia Titan V CEO; Intel Core Ultra 7 265K Gigabyte Z890M Gaming X Klevv 7200Mhz 32GB

Offline

Board footer

Powered by FluxBB