1// Automatically generated header file for caffe2 macros. These
2// macros are used to build the Caffe2 binary, and if you are
3// building a dependent library, they will need to be set as well
4// for your program to link correctly.
5
6#pragma once
7
8// Caffe2 version. The plan is to increment the minor version every other week
9// as a track point for bugs, until we find a proper versioning cycle.
10
11#define CAFFE2_VERSION_MAJOR 2
12#define CAFFE2_VERSION_MINOR 0
13#define CAFFE2_VERSION_PATCH 0
14
15static_assert(
16 CAFFE2_VERSION_MINOR < 100,
17 "Programming error: you set a minor version that is too big.");
18static_assert(
19 CAFFE2_VERSION_PATCH < 100,
20 "Programming error: you set a patch version that is too big.");
21
22#define CAFFE2_VERSION \
23 (CAFFE2_VERSION_MAJOR * 10000 + CAFFE2_VERSION_MINOR * 100 + \
24 CAFFE2_VERSION_PATCH)
25
26#define CAFFE2_BUILD_SHARED_LIBS
27/* #undef CAFFE2_FORCE_FALLBACK_CUDA_MPI */
28/* #undef CAFFE2_HAS_MKL_DNN */
29/* #undef CAFFE2_HAS_MKL_SGEMM_PACK */
30#define CAFFE2_PERF_WITH_AVX
31#define CAFFE2_PERF_WITH_AVX2
32#define CAFFE2_PERF_WITH_AVX512
33/* #undef CAFFE2_THREADPOOL_MAIN_IMBALANCE */
34/* #undef CAFFE2_THREADPOOL_STATS */
35#define CAFFE2_USE_EXCEPTION_PTR
36/* #undef CAFFE2_USE_ACCELERATE */
37#define CAFFE2_USE_CUDNN
38#define CAFFE2_USE_EIGEN_FOR_BLAS
39/* #undef CAFFE2_USE_FBCODE */
40/* #undef CAFFE2_USE_GOOGLE_GLOG */
41/* #undef CAFFE2_USE_LITE_PROTO */
42/* #undef CAFFE2_USE_MKL */
43#define USE_MKLDNN
44/* #undef CAFFE2_USE_NVTX */
45/* #undef CAFFE2_USE_ITT */
46/* #undef CAFFE2_USE_TRT */
47#define TORCH_DISABLE_GPU_ASSERTS
48
49#ifndef EIGEN_MPL2_ONLY
50#define EIGEN_MPL2_ONLY
51#endif
52
53// Useful build settings that are recorded in the compiled binary
54#define CAFFE2_BUILD_STRINGS { \
55 {"TORCH_VERSION", "2.0.0"}, \
56 {"CXX_COMPILER", "/usr/bin/c++"}, \
57 {"CXX_FLAGS", " -D_GLIBCXX_USE_CXX11_ABI=1 -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -DNDEBUG -DUSE_KINETO -DLIBKINETO_NOROCTRACER -DUSE_FBGEMM -DUSE_QNNPACK -DUSE_PYTORCH_QNNPACK -DUSE_XNNPACK -DSYMBOLICATE_MOBILE_DEBUG_HANDLE -O2 -fPIC -Wall -Wextra -Werror=return-type -Werror=non-virtual-dtor -Werror=bool-operation -Wnarrowing -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wunused-local-typedefs -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-psabi -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -fdiagnostics-color=always -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -fno-math-errno -fno-trapping-math -Werror=format -Wno-stringop-overflow"}, \
58 {"BUILD_TYPE", "Release"}, \
59 {"BLAS_INFO", "atlas"}, \
60 {"LAPACK_INFO", ""}, \
61 {"USE_CUDA", "ON"}, \
62 {"USE_ROCM", "OFF"}, \
63 {"CUDA_VERSION", "11.4"}, \
64 {"ROCM_VERSION", ""}, \
65 {"USE_CUDNN", "ON"}, \
66 {"CUDNN_VERSION", "8.2.4"}, \
67 {"USE_NCCL", "ON"}, \
68 {"USE_MPI", "OFF"}, \
69 {"USE_GFLAGS", "OFF"}, \
70 {"USE_GLOG", "OFF"}, \
71 {"USE_GLOO", ""}, \
72 {"USE_NNPACK", "ON"}, \
73 {"USE_OPENMP", "ON"}, \
74 {"FORCE_FALLBACK_CUDA_MPI", ""}, \
75 {"HAS_MKL_DNN", ""}, \
76 {"HAS_MKL_SGEMM_PACK", ""}, \
77 {"PERF_WITH_AVX", "1"}, \
78 {"PERF_WITH_AVX2", "1"}, \
79 {"PERF_WITH_AVX512", "1"}, \
80 {"USE_EXCEPTION_PTR", "1"}, \
81 {"USE_ACCELERATE", ""}, \
82 {"USE_EIGEN_FOR_BLAS", "ON"}, \
83 {"USE_LITE_PROTO", ""}, \
84 {"USE_MKL", "OFF"}, \
85 {"USE_MKLDNN", "ON"}, \
86 {"USE_NVTX", ""}, \
87 {"USE_ITT", ""}, \
88 {"USE_TRT", ""}, \
89 {"TORCH_DISABLE_GPU_ASSERTS", "ON"}, \
90}
91