caffe2编译问题:avx、avx2

caffe2编译问题:9898 init_intrinsics_check.cc:54] CPU feature avx is present on your machine,
        but the Caffe2 binary is not compiled with it. It means you may not get the full speed of your CPU.
       解决办法:编译时加参数, Dockerfile中 -DUSE_NATIVE_ARCH=ON 或caffe2/CMakeLists.txt
                option(USE_NATIVE_ARCH "Use -march=native" ON)
       参考文献:https://github.com/caffe2/caffe2/issues/1789
       可提速:没加该参数之前2个小时保存一个的模型,加了以后1个小时保存一个模型(5000个迭代保存一次)。

你可能感兴趣的:(caffe)