hipErrorNoBinaryForGpu when built for HIP

62 views
Skip to first unread message

Pavel Stishenko

unread,
Sep 3, 2024, 9:12:58 AM9/3/24
to MAGMA User
I am trying to build MAGMA for HIP on gfx90a GPU (AMD MI210, it's ARCHER2 supercomputer).

I use the following cmake command:

cmake -DMAGMA_ENABLE_CUDA=OFF  -DMAGMA_ENABLE_HIP=ON -DCMAKE_LIBRARY_PATH=${CRAY_LIBSCI_PREFIX_DIR}/lib -DCMAKE_CXX_COMPILER=hipcc  -DGPU_TARGET=gfx90a  -DBUILD_SHARED_LIBS=off  -DUSE_FORTRAN=on -DLAPACK_LIBRARIES='-L/opt/cray/pe/libsci/22.12.1.1/AMD/4.0/x86_64/lib -lsci_amd -lsci_amd_mpi -ldl -lhipblas -lhipsparse -lamdhip64'  ..

Build goes succesfully, but almost all tests fail with message 
"hipErrorNoBinaryForGpu: Unable to find code object for all current devices!"

CMake and Make logs are attached.

I have tried manually recompile a test with ` --offload-arch=gfx90a ` but it had no effect.

Please,  help!


cmake.log
make.log.gz

Ahmad Abdelfattah

unread,
Sep 3, 2024, 9:53:25 AM9/3/24
to Pavel Stishenko, MAGMA User
Hi, 

We started a discussion here, but please create a new issue on the new GitHub repo (https://github.com/icl-utk-edu/magma). The bitbucket repo will soon be deleted. 

Thanks,
Ahmad
 

--
You received this message because you are subscribed to the Google Groups "MAGMA User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magma-user+...@icl.utk.edu.
To view this discussion on the web visit https://groups.google.com/a/icl.utk.edu/d/msgid/magma-user/c8bab6fe-074f-4ff1-b4da-acc9725e4a9an%40icl.utk.edu.
<cmake.log><make.log.gz>

Mark Gates

unread,
Sep 3, 2024, 9:54:40 AM9/3/24
to Pavel Stishenko, MAGMA User
Notice in the make.log it says:
    3 warnings generated when compiling for gfx803.
When you actually wanted 90a. You can try compiling with VERBOSE=1 to see the exact compiler flags. (I'm annoyed that CMake hides all of this — it makes debugging so much harder. But then with verbose, it is too verbose.)
    make VERBOSE=1

In CMakeLists.txt, try adding 90a to this list:
    set(VALID_GFXS "700;701;702;703;704;705;801;802;803;805;810;900;902;904;906;908;909;90c;1010;1011;1012;1030;1031;1032;1033")
and recompile everything.

Mark

Pavel Stishenko

unread,
Sep 11, 2024, 10:31:32 AM9/11/24
to MAGMA User, mga...@icl.utk.edu, MAGMA User, Pavel Stishenko
Thanks for suggestion Mark.
I have tried editing CMakeLists.txt as you said, but it didn't help
I have created the Github issue here .
The log of `make VERBOSE=1` cmmand is attached to the issue.
--
Best wishes Pavel
Reply all
Reply to author
Forward
0 new messages