Jetson TX2/1 在編譯caffe-0.15時報錯處理方案
阿新 • • 發佈:2018-12-21
Jetson TX2/TX1 在編譯caffe-0.15時報錯處理方案
報錯內容
在TX1或TX2上編譯caffe-0.15時,出現如下錯誤:
/tmp/ccEiMrO7.s: Assembler messages: /tmp/ccEiMrO7.s:1533: Error: unknown mnemonic pause' --pause' /tmp/ccEiMrO7.s:1857: Error: unknown mnemonic pause' --pause' /tmp/ccEiMrO7.s:2204: Error: unknown mnemonic pause' --pause' /tmp/ccEiMrO7.s:2679: Error: unknown mnemonic pause' --pause' /tmp/ccEiMrO7.s:4226: Error: unknown mnemonic pause' --pause' /tmp/ccEiMrO7.s:5069: Error: unknown mnemonic pause' --pause' /tmp/ccEiMrO7.s:5320: Error: unknown mnemonic pause' --pause' /tmp/ccEiMrO7.s:5441: Error: unknown mnemonic pause' --pause' src/caffe/CMakeFiles/caffe.dir/build.make:650: recipe for target 'src/caffe/CMakeFiles/caffe.dir/util/gpu_memory.cpp.o' failed make[2]: *** [src/caffe/CMakeFiles/caffe.dir/util/gpu_memory.cpp.o] Error 1 CMakeFiles/Makefile2:272: recipe for target 'src/caffe/CMakeFiles/caffe.dir/all' failed make[1]: *** [src/caffe/CMakeFiles/caffe.dir/all] Error 2 Makefile:127: recipe for target 'all' failed make: *** [all] Error 2
解決方案
找到 $CAFFE_ROOT/3rdparty/cub/host/mutex.cuh
檔案,將124行左右的
--- #ifndef __arm__
改成
+++ #if !defined(__arm__) && !defined(__aarch64__)
即可。
在編譯一遍應該就沒問題了。
make clean && make -j4