Caffe2 - C++ API
A deep learning, cross platform ML framework
Related Pages
Modules
Data Structures
Files
C++ API
Python API
GitHub
File List
Globals
caffe2
perfkernels
common_avx.cc
1
// This file is here merely to check that the flags are not mixed up: for
2
// example, if your compiler did not specify -mavx, you should not provide
3
// the CAFFE2_PERF_WITH_AVX macro.
4
5
#include "caffe2/core/common.h"
6
7
#ifdef CAFFE2_PERF_WITH_AVX
8
#ifndef __AVX__
9
#error( \
10
"You found a build system error: CAFFE2_PERF_WITH_AVX is defined" \
11
"but __AVX__ is not defined (via e.g. -mavx).");
12
#endif // __AVX__
13
#endif // CAFFE2_PERF_WITH_AVX
14
15
#ifdef __AVX__
16
#ifndef CAFFE2_PERF_WITH_AVX
17
#error( \
18
"You found a build system error: __AVX__ is defined (via e.g. -mavx) " \
19
"but CAFFE2_PERF_WITH_AVX is not defined.");
20
#endif // CAFFE2_PERF_WITH_AVX
21
#endif
Generated on Thu Mar 21 2019 13:06:20 for Caffe2 - C++ API by
1.8.11