!nvcc -c knn.cu -Xcompiler -fPIC -I/Applications/MATLAB_R2009b.app/extern/include/
nvmex knn.o -L/usr/local/cuda/lib -lcudart -lcufft -cxx -lcuda
??? Invalid MEX-file '/Users/Snut/CUDA/v2/knn.mexmaci':
dlopen(/Users/Snut/CUDA/v2/knn.mexmaci, 1): Library not loaded: @rpath/libcudart.dylib
Referenced from: /Users/Snut/CUDA/v2/knn.mexmaci
Reason: image not found.
foges0 said:I know this is an old thread, but in case anyone comes across the same problem as Kaspar (and I) had, the solution is to pass the argument
to mex (ie. it's not enough to pass -Xlinker -rpath,/usr/local/cuda/lib to nvcc). Apologies if this was obvious.
Thanks Bionary for the help.
You must Log In to send a PM.
Please Log In | Register to add a comment.
Not a member? Register Now