Caffe2 - C++ API
A deep learning, cross platform ML framework
common_avx.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 -mavx, you should not provide
19 // the CAFFE2_PERF_WITH_AVX macro.
20 
21 #include "caffe2/core/common.h"
22 
23 #ifdef CAFFE2_PERF_WITH_AVX
24 #ifndef __AVX__
25 #error( \
26  "You found a build system error: CAFFE2_PERF_WITH_AVX is defined" \
27  "but __AVX__ is not defined (via e.g. -mavx).");
28 #endif // __AVX__
29 #endif // CAFFE2_PERF_WITH_AVX
30 
31 #ifdef __AVX__
32 #ifndef CAFFE2_PERF_WITH_AVX
33 #error( \
34  "You found a build system error: __AVX__ is defined (via e.g. -mavx) " \
35  "but CAFFE2_PERF_WITH_AVX is not defined.");
36 #endif // CAFFE2_PERF_WITH_AVX
37 #endif