caffe icon indicating copy to clipboard operation
caffe copied to clipboard

compile caffe on jetson tk1

Open wzq12138 opened this issue 12 years ago • 1 comments

I have seen this https://github.com/BVLC/caffe/issues/669. however I could not get success,my problem is that first there is no Anaconda for arm,so I could only just use pip install -r requiresments, Second ,the mkl could not installed success either ,so only atlas.However,after this ,caffe could not make success .Here is the error. g++4.8: /usr/local/cuda-6.0/bin/nvcc -ccbin=g++ -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/usr/local/cuda-6.0/include -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -c src/caffe/util/math_functions.cu -o .build_release/src/caffe/util/math_functions.cuo 2> .build_release/src/caffe/util/math_functions.cuo.warnings.txt
|| (cat .build_release/src/caffe/util/math_functions.cuo.warnings.txt; exit 1) src/caffe/util/math_functions.cu(159): error: kernel launches from templates are not allowed in system files

1 error detected in the compilation of "/tmp/tmpxft_00002d8c_00000000-10_math_functions.cpp4.ii". make: *** [.build_release/src/caffe/util/math_functions.cuo] Error 1

g++4.6: g++-4.6 .build_release/examples/siamese/convert_mnist_siamese_data.o .build_release/lib/libcaffe.a -o .build_release/examples/siamese/convert_mnist_siamese_data.bin -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/usr/local/cuda-6.0/include -Wall -Wno-sign-compare -L/usr/lib -L/usr/local/lib -L/usr/lib -L/usr/local/cuda-6.0/lib -lcudart -lcublas -lcurand -lpthread -lglog -lgflags -lprotobuf -lleveldb -lsnappy -llmdb -lboost_system -lhdf5_hl -lhdf5 -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lcblas -latlas /usr/bin/ld: /usr/local/lib/libgflags.a(gflags.cc.o): undefined reference to symbol 'pthread_rwlock_wrlock@@GLIBC_2.4' /lib/arm-linux-gnueabihf/libpthread.so.0: error adding symbols: DSO missing from command line collect2: ld returned 1 exit status make: *** [.build_release/examples/siamese/convert_mnist_siamese_data.bin] Error 1

clang++: /usr/local/cuda-6.0/bin/nvcc -ccbin=clang++ -Xcompiler -fPIC -DNDEBUG -O2 -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -I/usr/local/cuda-6.0/include -gencode arch=compute_20,code=sm_20 -gencode arch=compute_20,code=sm_21 -gencode arch=compute_30,code=sm_30 -gencode arch=compute_35,code=sm_35 -c src/caffe/layers/cudnn_conv_layer.cu -o .build_release/src/caffe/layers/cudnn_conv_layer.cuo 2> .build_release/src/caffe/layers/cudnn_conv_layer.cuo.warnings.txt
|| (cat .build_release/src/caffe/layers/cudnn_conv_layer.cuo.warnings.txt; exit 1) clang: error: unknown argument: '-malign-double' make: *** [.build_release/src/caffe/layers/cudnn_conv_layer.cuo] Error 1

wzq12138 avatar Oct 20 '14 09:10 wzq12138

https://groups.google.com/forum/#!searchin/caffe-users/kernel$20launches/caffe-users/RqSRtE-KO_0/gtBemnRImU8J

Hsinfu avatar Oct 22 '14 18:10 Hsinfu