Hi, Rolf, Thanks a lot for the reply. You are right that the libcuda.so I found in the /user/local/cuda/lib64/stubs is not correct. I am still not sure why there is a libcuda.so here though. I have linked the correct version of libcuda, and now the error is gone. My linux is Red Hat Enterprise Linux Server release 6.2 (Santiago)
Jason I > On Mar 26, 2015, at 8:46 PM, Rolf vandeVaart <rvandeva...@nvidia.com> wrote: > > Hi Jason: > The issue is that Open MPI is (presumably) a 64 bit application and it is > trying to load up a 64-bit libcuda.so.1 but not finding one. Making the link > as you did will not fix the problem (as you saw). In all my installations, I > also have a 64-bit driver installed in /usr/lib64/libcuda.so.1 and everything > works fine. > > Let me investigate some more and get back to you. > >> -----Original Message----- >> From: users [mailto:users-boun...@open-mpi.org] On Behalf Of Zhisong Fu >> Sent: Wednesday, March 25, 2015 10:31 PM >> To: Open MPI Users >> Subject: [OMPI users] issue with openmpi + CUDA >> >> Hi, >> >> I just started to use openmpi and am trying to run a MPI/GPU code. My code >> compiles but when I run, I get this error: >> The library attempted to open the following supporting CUDA libraries, but >> each of them failed. CUDA-aware support is disabled. >> /usr/lib/libcuda.so.1: wrong ELF class: ELFCLASS32 >> /usr/lib/libcuda.so.1: wrong ELF class: ELFCLASS32 If you are not interested >> in >> CUDA-aware support, then run with --mca mpi_cuda_support 0 to suppress >> this message. If you are interested in CUDA-aware support, then try setting >> LD_LIBRARY_PATH to the location of libcuda.so.1 to get passed this issue. >> >> I could not find a libcuda.so.1 in my system but I do find libcuda.so in >> /usr/local/cuda/lib64/stubs. Why is openmpi looking for libcuda.so.1 instead >> of libcuda.so? >> I created a symbolic link to libcuda.so, now I get CUDA error 35: CUDA driver >> version is insufficient for CUDA runtime version. >> I am not sure if this is related to libcuda.so or the driver since I could >> run this >> code using mvapich. >> >> Any input on the issue is really appreciated. >> My openmpi version is 1.8.4, my cuda version is 6.5, driver version is >> 340.65. >> >> Thanks. >> Jason >> >> _______________________________________________ >> users mailing list >> us...@open-mpi.org >> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users >> Link to this post: http://www.open- >> mpi.org/community/lists/users/2015/03/26537.php > ----------------------------------------------------------------------------------- > This email message is for the sole use of the intended recipient(s) and may > contain > confidential information. Any unauthorized review, use, disclosure or > distribution > is prohibited. If you are not the intended recipient, please contact the > sender by > reply email and destroy all copies of the original message. > ----------------------------------------------------------------------------------- > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2015/03/26543.php