Segmentation Fault @ make runtest

265 views
Skip to first unread message

deep samal

unread,
Apr 16, 2015, 6:57:14 PM4/16/15
to caffe...@googlegroups.com

Mac OS 10.9, CUDA 7.0, BVLC/Caffe


$make runtest

.build_release/tools/caffe

make: *** [runtest] Segmentation fault: 11


$sudo make runtest

.build_release/tools/caffe

dyld: Library not loaded: @rpath/libcudart.7.0.dylib

  Referenced from: /Users/deepsamal/Desktop/Research/caffe/.build_release/tools/caffe

  Reason: image not found

make: *** [runtest] Trace/BPT trap: 5


Library Environment Variables-

$ echo $DYLD_FALLBACK_LIBRARY_PATH

/usr/local/cuda/lib:/Developer/NVIDIA/CUDA-7.0/lib:/Users/deepsamal/anaconda/lib:/usr/local/lib:/usr/lib:/opt/intel/composer_xe_2015.2.132/mkl/lib/:/opt/intel/composer_xe_2015.2.132/compiler/lib


$ echo $DYLD_LIBRARY_PATH

/usr/local/cuda/lib


$ echo $LD_LIBRARY_PATH

/usr/local/cuda/lib:/opt/intel/composer_xe_2015.2.132/mkl/lib/


$ ECHO $PATH

/Developer/NVIDIA/CUDA-7.0/bin:/Users/deepsamal/anaconda/bin:/Applications/MATLAB_R2014a.app/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin


I think the problem is with loader not able to resolve @rpath, because- make all and make test both running successfully indicates linking is fine.
Also when I tried to look at dynamic links to libcudart-
$ otool -L /usr/local/cuda/lib/libcudart.7.0.dylib
/usr/local/cuda/lib/libcudart.7.0.dylib:
    @rpath/libcudart.7.0.dylib (compatibility version 0.0.0, current version 7.0.29)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 855.17.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
Link to my makefile- https://docs.google.com/file/d/0B-N0qygpKetZUkVTQzQ0RjIwWmM/edit?pli=1
Any help is appreciated...
Makefile.config
Reply all
Reply to author
Forward
0 new messages