Wednesday, September 4, 2013

error while loading shared libraries: libcurand.so.5.5: cannot open shared object file: No such file or directory

If encountered this error:

....pmemd.cuda.MPI: Error while loading shared libraries:
 libcurand.so.5.5: cannot open shared object file: No such file or directory

It is due to the the LD_LIBRARY_PATH not referring to the CUDA Toolkits libraries. To solve the issue, just update your pathing in your .bashrc
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.5/lib64

You may also want to update /etc/ld.so.conf.d/ directories
# touch /etc/ld.so.conf.d/cuda.conf

/usr/local/cuda-5.5/lib64
/usr/local/cuda-5.5/lib


3 comments:

  1. It worked but there is an error on the code it should be:

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.5/lib64

    So without the $ in the first LD_LIBRARY_PATH.

    Thank you

    ReplyDelete
  2. Perfect, but there is an error on the code, it should be.

    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.5/lib64

    i.e. without the first $ sign.

    ReplyDelete
  3. Thanks for pointing the mistake. It has been corrected.

    ReplyDelete