Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

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

1,627 views
Skip to first unread message

Witold Baryluk

unread,
Oct 4, 2022, 4:01:30 PM10/4/22
to
Package: hipcc
Version: 5.0.0-1
Severity: normal
X-Debbugs-Cc: witold....@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

Étienne Mollier

unread,
Oct 4, 2022, 4:40:04 PM10/4/22
to
Control: tags -1 pending

Hi Witold,

Witold Baryluk, on 2022-10-04:
> Thanks for packaging ROCm components. But it still looks is a bit off being fully usable out of the box.
[…]
> 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.

That's true, for the moment there are still several settings
that are not completely automatic. Cordell Bloor has introduced
a patch series in ROCm 5.2.3-1~0exp0 which should land in debian
experimental soon to address these needs.

If you stick to ROCm 5.0.0 as packaged by Debian, then you have
also the option to use environment variables ROCM_PATH, and
DEVICE_LIB_PATH; note also HIP_CLANG_PATH which is used in
early versions of hipcc reverse dependencies, set to /usr/bin.

Thank you for your interest in ROCm!

Have a nice day, :)
--
Étienne Mollier <emol...@emlwks999.eu>
Fingerprint: 8f91 b227 c7d6 f2b1 948c 8236 793c f67e 8f0d 11da
Sent from /dev/pts/0, please excuse my verbosity.
On air: Savatage - Prelude To Madness/Hall Of The Mountain King
signature.asc
0 new messages