Closed linehill closed 2 months ago
I get the same problem: version is printed twice and -n
prints a lot of stuff.
I think the duplication of the version in my case is caused by having two platforms available: cuda and intel. See hipBin.cpp:152
The same duplication happens for hipconfig --rocmpath
and this further causes CMake to not be able to find the ROCm root directory when enabling HIP as language in cmake:
CMake Error at /usr/share/cmake/Modules/CMakeDetermineHIPCompiler.cmake:174 (message):
Failed to find ROCm root directory.
Call Stack (most recent call first):
hip/CMakeLists.txt:8 (enable_language)
@linehill does the PR resolve your issue?
-n
works but the version is still printed twice:
$ ../install/bin/hipconfig -v -n
6.0.0-b3f39165
6.0.0-b3f39165
$
Can't reproduce your behavior:
╭─pvelesko@cupcake /space/pvelesko/chipStar/main/build ‹hipcc-fix-verbose›
╰─$ ./install/bin/hipconfig -v -n 130 ↵
6.0.0-b3f39165
Can't reproduce your behavior:
It might be reproduced if you have CUDA SDK installed (it can be installed without a NVidia GPU).
E.g.
-n
should add a newline at the end but instead a lot of other stuff gets printed instead.ROCm's output as reference: