LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   LLVM 18.1.0 Failed to load libamdhip64.so (https://www.linuxquestions.org/questions/slackware-14/llvm-18-1-0-failed-to-load-libamdhip64-so-4175734712/)

gildbg 03-09-2024 04:34 AM

LLVM 18.1.0 Failed to load libamdhip64.so
 
Hello,

it's seems there have a missing library on last LLVM package.
I was trying to start: /usr/bin/amdgpu-arch

and receive the error:

Failed to 'dlopen' libhsa-runtime64.so
Failed to load libamdhip64.so: libamdhip64.so: cannot open shared object file: No such file or directory

brobr 03-09-2024 05:04 AM

FWIW, No amdgpu on my box; so possibly an imported/3rd party package depending on stock llvm. Try recompiling amdgpu and other packages required for/depending on it.

gildbg 03-09-2024 05:21 AM

Could we also upgrade llvm-toolchain libclc to version 18.1 ? Our currently (on slackware64 current) is 17.0.1 I found the package here: https://openmandriva.pkgs.org/cooker...86_64.rpm.html

and contain some extra .bc specifications for new AMD video cards.

https://github.com/llvm/llvm-project...1.0.src.tar.xz

marav 03-09-2024 07:06 AM

Quote:

Originally Posted by brobr (Post 6488568)
FWIW, No amdgpu on my box; so possibly an imported/3rd party package depending on stock llvm. Try recompiling amdgpu and other packages required for/depending on it.

admgpu-arch is part of llvm

https://packages.slackware.com/?r=sl...x86_64-1.txz&f

The library libamdhip64 si provided by rocM :
https://rocm.docs.amd.com/projects/HIP/en/latest/

brobr 03-09-2024 07:09 AM

Quote:

Originally Posted by marav (Post 6488578)

hmm, possibly didn't search at the right places ;-(; sorry for the noise.

marav 03-09-2024 07:25 AM

Quote:

Originally Posted by brobr (Post 6488579)
hmm, possibly didn't search at the right places ;-(; sorry for the noise.

Instead of packages.slackware.com, you can try :
Code:

$ slackpkg file-search amdgpu-arch

gildbg 03-10-2024 03:08 AM

Still Failed to 'dlopen' libhsa-runtime64.so
 
Hello,

thanks for the update but unfortunately the update does not resolve the issue with missing library's.

Code:

/usr/bin/amdgpu-arch
Failed to 'dlopen' libhsa-runtime64.so
Failed to load libamdhip64.so: libamdhip64.so: cannot open shared object file: No such file or directory

It's seems this error coming from here:
Code:

llvm-18.1.0.src/tools/clang/tools/amdgpu-arch/AMDGPUArchByHIP.cpp:38:  constexpr const char *DynamicHIPPath = "libamdhip64.so";
llvm-18.1.0.src/tools/clang/tools/amdgpu-arch/AMDGPUArchByHSA.cpp:49:constexpr const char *DynamicHSAPath = "libhsa-runtime64.so";

but this problem is described here and it's seems extra packages for both AMD or NVIDIA GPU cards:
Code:

/llvm-18.1.0.src/projects/openmp/docs/SupportAndFAQ.rst

gildbg 03-12-2024 08:56 AM

Unfortunately, after digging a little bit deeper it's seems to work this functionality require half of ROCm repo to be installed which it's not so easy to be build.

Did some one was able to build latest AMDGPU-PRO driver on Slackware current x64 ?

gildbg 03-26-2024 02:05 AM

Hi all,

I was able to build these library and HIP. If some one want can download the compiled library from here: https://www.ixip.net/slackware/myrep...-x86_64.tar.gz

What I learn when trying to build ROCm version 6.0.3 it's not so hard on Slackware64 (I use current version only) to be build just need time. Because the ROCm have a lot's of packages the documentation some times it's not so clear but I found with trial and errors there have basic rules that must be followed:

First rule: Need to compile and use ONLY ROCm LLVM package for every ROCm module which will be compiled in the future.
Rule number two: Follow rule number one.

If some one have interest I could share the build commands of the packages but it's not something specials.

For success use of ROCm it's will be good system LLVM to be upgraded with ROCm LLVM to be avoid wrong library links which will save you a lot's of time. This is the tricky part. The ROCm LLVM is the same with system LLVM with some patches from ROCm community to support AMD and NVIDIA and what I thinking it's will be good if we have some kind of support on Slackware. Every day new technology's is coming and we must follow them. It's will be good if we have addon section on Slackware tree some packages which will make Slackware more useful and more use case could be solved.


All times are GMT -5. The time now is 02:43 AM.