FXIhub / libspimage

Other
6 stars 3 forks source link

libspimage requires DYLD_LIBRARY_PATH to run with CUDA #7

Closed sellberg closed 10 years ago

sellberg commented 10 years ago

When using CUDA on Mac OSX (10.9.5) through libspimage, I get the following error:

dyld: Library not loaded: @rpath/libcudart.6.5.dylib Referenced from: /usr/local/lib64/libspimage.1.dylib Reason: image not found ./run_hawk: line 36: 16221 Trace/BPT trap: 5 uwrapc

This is solved by adding /usr/local/cuda/lib to the DYLD_LIBRARY_PATH, but it would be nicer if this was automatically taken care of by the cmake files in libspimage.

FilipeMaia commented 10 years ago

I believe this is related to https://github.com/pandegroup/openmm/issues/295 and probably an issue with cmake itself.

FilipeMaia commented 10 years ago

The upstream problem is being discussed in https://www.mail-archive.com/cmake@cmake.org/msg50233.html

sellberg commented 10 years ago

I read a little bit more about CUDA and they say in the install instructions at http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-mac-os-x/ one should put this in the DYLD_LIBRARY_PATH so I think we can ignore this issue.

FilipeMaia commented 10 years ago

I know they say that but it shouldn't be necessary.

On Tue, Oct 21, 2014 at 11:24 PM, Jonas Sellberg notifications@github.com wrote:

I read a little bit more about CUDA and they say in the install instructions at http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-mac-os-x/ one should put this in the DYLD_LIBRARY_PATH so I think we can ignore this issue.

— Reply to this email directly or view it on GitHub https://github.com/FilipeMaia/libspimage/issues/7#issuecomment-60001340.