[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1021275: hipcc cannot find ROCm device library and HIP runtime



Package: hipcc
Version: 5.0.0-1
Severity: normal
X-Debbugs-Cc: witold.baryluk@gmail.com

Thanks for packaging ROCm components. But it still looks is a bit off being fully usable out of the box.

user@debian:~/s$ wget -nv https://raw.githubusercontent.com/ROCm-Developer-Tools/HIP/develop/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp
2022-10-04 19:41:01 URL:https://raw.githubusercontent.com/ROCm-Developer-Tools/HIP/develop/samples/2_Cookbook/0_MatrixTranspose/MatrixTranspose.cpp [3860/3860] -> "MatrixTranspose.cpp" [1]
user@debian:~/s$ hipcc MatrixTranspose.cpp
clang: error: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library
clang: error: cannot find HIP runtime; provide its path via '--rocm-path', or pass '-nogpuinc' to build without HIP runtime
clang: error: cannot find HIP runtime; provide its path via '--rocm-path', or pass '-nogpuinc' to build without HIP runtime
user@debian:~/s$ 


I managed to compile it using

hipcc --rocm-path=/ --rocm-device-lib-path=/usr/lib/x86_64-linux-gnu/amdgcn/bitcode MatrixTranspose.cpp

but it took some time to figure out, and is not nice putting these paths
directly in makefiles, and such.

(Also resulting binary segfault:
Device name �C�xU
Segmentation fault
)

but that is another story.

Regards,
Witold

-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-rc5 (SMP w/32 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN, TAINT_UNSIGNED_MODULE, TAINT_SOFTLOCKUP
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages hipcc depends on:
ii  clang-14            1:14.0.6-2
ii  clang-tools-14      1:14.0.6-2
ii  libamdhip64-dev     5.0.0-1
ii  libfile-which-perl  1.27-1
ii  liburi-encode-perl  1.1.1-2
ii  lld-14              1:14.0.6-2
ii  rocm-device-libs    5.1.0-1

hipcc recommends no packages.

hipcc suggests no packages.

-- no debconf information

Reply to: