undefined reference to `cuDevicePrimaryCtxRelease_v2' #423
-
Hello all, I always get the error: **/cp2k-8.1/lib/local_cuda/psmp/exts/dbcsr/libdbcsr.a(acc_init.o): In function `acc_finalize': acc_init.cpp:(.text+0xf6): undefined reference to `cuDevicePrimaryCtxRelease_v2' collect2: error: ld returned 1 exit status** How could I solve this problem? Thank you very much! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Could you elaborate a bit more? |
Beta Was this translation helpful? Give feedback.
-
A bit of more investigation, it seems that you are missing cuBLAS library somehow. |
Beta Was this translation helpful? Give feedback.
-
maybe as a help: we tested CP2K with CUDA-11.1 not too long ago and it worked. The arch file as generated by the toolchain was:
Maybe compare the |
Beta Was this translation helpful? Give feedback.
-
Things like this can also happen if one compiles on a "head node" with different/no CUDA runtime/driver but using the latest CUDA headers. |
Beta Was this translation helpful? Give feedback.
A bit of more investigation, it seems that you are missing cuBLAS library somehow.
I found some blogs that are reporting similar problems. The route cause is that with CUDA 11 now cuBLAS is on a different path (see https://docs.nvidia.com/cuda/archive/11.0/cuda-toolkit-release-notes/index.html#cublas-new-features). Could you check that?