You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
hipconfig --rocmpath
to get exactly /opt/rocm-6.2.2, and then append /lib.
Now, this would be the dynamic approach, but it requires hipconfig to be available. Is this the case for every HIP-based GPU? In such case, I can submit a PR fixing the makefiles.
The text was updated successfully, but these errors were encountered:
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 requires
hipconfig
to be available. Is this the case for every HIP-based GPU? In such case, I can submit a PR fixing the makefiles.The text was updated successfully, but these errors were encountered: