📅 2019-May-15 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ avx, avx2, caffe2, fma, warning ⬩ 📚 Archive
Running a Caffe2 C++ application produces these messages:
$ ./foobar
E0514 20:37:31.503541 26925 init_intrinsics_check.cc:43] 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.
E0514 20:37:31.504768 26925 init_intrinsics_check.cc:43] CPU feature avx2 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.
E0514 20:37:31.504787 26925 init_intrinsics_check.cc:43] CPU feature fma 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.
Caffe2 is informing that the Intel CPU being used has AVX, AVX2 and FMA acceleration features. However, Caffe2 has not been compiled with support for these features. Compiling Caffe2 with support to use these features would speedup training and inference using Caffe2.
To enable use of these features when compiling Caffe2, enable the USE_NATIVE_ARCH
option like this:
$ cmake -DUSE_NATIVE_ARCH ..