error: static assertion failed with "incompatible 64-bit atomic layout
Hi all, I clone caffe2 project. and use make command, but i have error /usr/local/include/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h(52): error: static assertion failed with "incompatible 3 /usr/local/include/google/protobuf/stubs/atomicops_internals_generic_c11_atomic.h(145): error: static assertion failed with "incompatible 64-bit atomic layout" Does anyone know to solve it? thank you.
This seems to be an nvcc - protobuf version conflicts. Could you let us know what protobuf version you have and what cuda version you have? You can do protoc --version to get that.
Also, if you are building on mac, try to do -DUSE_CUDA=OFF.
@Yangqing : my protobuf version is 3.2.0 and cuda version is 8.0.61 I tried to do with -DUSE_CUDA=OFF but i still get that error.
@ViNgoVan protobuf 3.2.0 does not incorporate the fix for this problem. You need 3.2.1 or 3.3.x. I have built with -DUSE_CUDA=OFF and protobuf 3.3.x built directly from https://github.com/google/protobuf