Open Qubitol opened 4 weeks ago
Hi @Qubitol nice find. This is what I see on LUMI where I do all my tests
On LUMI login nodes
[valassia@uan02 bash] ~ > echo $(hipconfig --rocmpath)
/opt/rocm-6.0.3
On LUMI worker nodes
[valassia@nid005003 bash] ~ > echo $(hipconfig --rocmpath)
/opt/rocm-6.0.3
So, yes, this looks like a good solution. Thanks! Andrea
Hi,
I've done some tests on a machine with an AMD GPU. However, when running
make
, it fails when trying to look forlibamdhip64
.The problem in my case
See this line in
cudacpp.mk
:In my case
shell dirname $(shell $(GPUCC) -print-prog-name=clang)
yields/opt/rocm-6.2.2/lib/llvm/bin
, then it goes up 2 levels and appends/lib
, resulting in the final path/opt/rocm-6.2.2/lib/lib
, which is not correct in my case (should be/opt/rocm-6.2.2/lib
).Possible solution to make it dynamic
I found the command
hipconfig
that displays a bunch of information about the installation. One could use then:to get exactly
/opt/rocm-6.2.2
, and then append/lib
. Now, this would be the dynamic approach, but it requireshipconfig
to be available. Is this the case for every HIP-based GPU? In such case, I can submit a PR fixing the makefiles.