Open pelesh opened 4 years ago
By the way, the same configuration but with GCC 7.4 builds fine and passes all tests.
Do you have any newer XL versions?
Do you have any newer XL versions?
Unfortunately, this is the only version available on my machine :(
We can reproduce this error and will work on fixing it. Can you please try using CUDA 10.2? @rhornung67 verified that CUDA 10.2 works.
We can reproduce this error and will work on fixing it. Can you please try using CUDA 10.2? @rhornung67 verified that CUDA 10.2 works.
The options I have are CUDA 10.1 and 11.0. I'll try with 10.1 and let you know.
It works with CUDA 10.1.
This time around (configuration as above, but with CUDA 10.1) it looks like a CMake error:
[ 12%] Linking CXX executable ../test-integral-limits.exe
/usr/bin/ld: cannot find -lcudadevrt
/usr/bin/ld: cannot find -lcudart_static
make[2]: *** [test/test-integral-limits.exe] Error 1
make[1]: *** [test/unit/CMakeFiles/test-integral-limits.exe.dir/all] Error 2
make: *** [all] Error 2
The libraries in question seem to be at the library path:
$ ls /.../lib64/ | grep cuda
libcudadevrt.a
libcudart.so
libcudart.so.10.1
libcudart.so.10.1.243
libcudart_static.a
Can you make sure you are doing this in a fresh build directory, and send us the output of make VERBOSE=1
.
Yes, I did that in a clean directory. The sequence of instructions was (from within build dir):
$ rm -Rf ./*
$ CC=xlc CXX=xlC cmake -DENABLE_OPENMP=On -DENABLE_CUDA=On ../RAJA/
...
$ make VERBOSE=1
...
[ 12%] Linking CXX executable ../test-integral-limits.exe
cd /.../src/raja/build-xl/test/unit && /.../spack/20180914/linux-rhel7-ppc64le/gcc-4.8.5/cmake-3.17.3-ranbt2pk3wzzvd2i7j3ekexaqya3m4f2/bin/cmake -E cmake_link_script CMakeFiles/test-integral-limits.exe.dir/link.txt --verbose=1
/.../xl/16.1.1-7/xlC/16.1.1/bin/xlC -std=c++14 -O -qsmp=omp CMakeFiles/test-integral-limits.exe.dir/test-integral-limits.cpp.o -o ../test-integral-limits.exe ../../lib/libgtest_main.a ../../lib/libgtest.a ../../lib/libRAJA.a /.../cuda/10.1.243/lib64/libcudart_static.a -ldl /usr/lib64/librt.so -lcudadevrt -lcudart_static
/usr/bin/ld: cannot find -lcudadevrt
/usr/bin/ld: cannot find -lcudart_static
make[2]: *** [test/test-integral-limits.exe] Error 1
make[2]: Leaving directory `/.../src/raja/build-xl'
make[1]: *** [test/unit/CMakeFiles/test-integral-limits.exe.dir/all] Error 2
make[1]: Leaving directory `/.../src/raja/build-xl'
make: *** [all] Error 2
Some output is truncated.
It looks like a CMake bug. libcudart_static.a
is linked with full path and then with a link flag, but without library path specified. This should probably be a different issue.
That's strange. It might just be to do with how everything is set up on your machine. Can you send the CMake output? (in email is fine if you don't want to paste it all here)
RAJA build on Power9/V100 arch fails when using xlC compiler with error message:
The build was configured with:
Using following modules:
Any suggestion how to get past this would be most welcome.