liuzechun / Bi-Real-net

Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithm. In ECCV 2018 and IJCV
176 stars 39 forks source link

make caffe failed #6

Closed i-rabbit closed 5 years ago

i-rabbit commented 5 years ago

When I use " sudo make all" to make bi-real-net, a error is found.

CXX .build_release/src/caffe/proto/caffe.pb.cc nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are deprecated, and may be removed in a future release (Use -Wno-deprecated-gpu-targets to suppress warning). AR -o .build_release/lib/libcaffe.a LD -o .build_release/lib/libcaffe.so.1.0.0-rc3 .build_release/cuda/src/caffe/ex_layers/binary_conv_layer.o:在函数‘__device_stub__ZN5caffe23binary_sync_conv_groupsEv()’中: tmpxft_00005c61_00000000-4_binary_conv_layer.compute_50.cudafe1.cpp:(.text+0x410): '__device_stub__ZN5caffe23binary_sync_conv_groupsEv()'被多次定义 .build_release/cuda/src/caffe/ex_layers/binary_conv_train_layer.o:tmpxft_00005c4d_00000000-4_binary_conv_train_layer.compute_50.cudafe1.cpp:(.text+0x2b0):第一次在此定义 .build_release/cuda/src/caffe/ex_layers/binary_conv_layer.o:在函数‘caffe::binary_sync_conv_groups()’中: tmpxft_00005c61_00000000-4_binary_conv_layer.compute_50.cudafe1.cpp:(.text+0x420): 'caffe::binary_sync_conv_groups()'被多次定义 .build_release/cuda/src/caffe/ex_layers/binary_conv_train_layer.o:tmpxft_00005c4d_00000000-4_binary_conv_train_layer.compute_50.cudafe1.cpp:(.text+0x2c0):第一次在此定义 collect2: error: ld returned 1 exit status Makefile:564: recipe for target '.build_release/lib/libcaffe.so.1.0.0-rc3' failed make: *** [.build_release/lib/libcaffe.so.1.0.0-rc3] Error 1 how to use your code in caffe?