Caffe2 - C++ API
A deep learning, cross platform ML framework
common_avx2.cc
1 
17 // This file is here merely to check that the flags are not mixed up: for
18 // example, if your compiler did not specify -mavx2, you should not provide
19 // the CAFFE2_PERF_WITH_AVX2 macro.
20 
21 #include "caffe2/core/common.h"
22 
23 #ifdef CAFFE2_PERF_WITH_AVX2
24 #ifndef __AVX2__
25 #error( \
26  "You found a build system error: CAFFE2_PERF_WITH_AVX2 is defined" \
27  "but __AVX2__ is not defined (via e.g. -mavx2).");
28 #endif // __AVX2__
29 #endif // CAFFE2_PERF_WITH_AVX2
30 
31 #ifdef __AVX2__
32 #ifndef CAFFE2_PERF_WITH_AVX2
33 #error( \
34  "You found a build system error: __AVX2__ is defined (via e.g. -mavx2) " \
35  "but CAFFE2_PERF_WITH_AVX2 is not defined.");
36 #endif // CAFFE2_PERF_WITH_AVX2
37 #endif