-
Hi, I get an error in the make step (make -j). Cmake (v. 3.18.1) builds the makefile without errors. I use nvfortran and nvc (v. 21.7). The final part of the output with the error message looks like this: ... Any idea on how to solve this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 17 replies
-
Hi, if you just run "make" (without -j), it will give you a more readable error message. Without it, I can only guess what happened. My guess is that I don't think nvfortran will work with Tinker9 due to a long-time bug in the compiler. I will add more information in the FAQ about this problem. gfortran or ifort will work properly with nvcc and nvc++ if they have been configured correctly. The c-compiler, nvc, is not used here. |
Beta Was this translation helpful? Give feedback.
-
Thanks Zhi, I tried your suggestions with:
Any idea what goes wrong? Best regards, |
Beta Was this translation helpful? Give feedback.
Thanks Zhi,
I tried your suggestions with:
(wth the recommended flags and directories; a few warnings but no errors)
(however, if instead exporting CC=nvc++, cmake halts complaining that nvc++ cannot compile the test file)
A Makefile is produced, as expected
(without -j)
runs well until the very end giving the following error message:
...
[100%] Built target tinker9_cpp
Scanning dependencies of target tinker9
/opt/tinker9/build-cmake/src/libtinker9_cpp.a(info_x.cc.o): In function
tinker::x_info(int, char**)': /opt/tinker9/src/info_x.cc:88: undefined reference to
tinker::cuda_compiler_name()'pgacclnk: child process exit status 1: /usr/bin/ld
make…