xref: /aosp_15_r20/external/pytorch/aten/src/ATen/Config.h.in (revision da0073e96a02ea20f0ac840b70461e3646d07c45)
1#pragma once
2
3// Test these using #if AT_MKL_ENABLED(), not #ifdef, so that it's
4// obvious if you forgot to include Config.h
5//    c.f. https://stackoverflow.com/questions/33759787/generating-an-error-if-checked-boolean-macro-is-not-defined
6//
7// DO NOT put the macros for CUDA libraries in this file; they belong in cuda/CUDAConfig.h
8
9#define AT_MKLDNN_ENABLED() @AT_MKLDNN_ENABLED@
10#define AT_MKLDNN_ACL_ENABLED() @AT_MKLDNN_ACL_ENABLED@
11#define AT_MKL_ENABLED() @AT_MKL_ENABLED@
12#define AT_MKL_SEQUENTIAL() @AT_MKL_SEQUENTIAL@
13#define AT_POCKETFFT_ENABLED() @AT_POCKETFFT_ENABLED@
14#define AT_NNPACK_ENABLED() @AT_NNPACK_ENABLED@
15#define CAFFE2_STATIC_LINK_CUDA() @CAFFE2_STATIC_LINK_CUDA_INT@
16#define AT_BUILD_WITH_BLAS() @AT_BUILD_WITH_BLAS@
17#define AT_BUILD_WITH_LAPACK() @AT_BUILD_WITH_LAPACK@
18#define AT_PARALLEL_OPENMP @AT_PARALLEL_OPENMP@
19#define AT_PARALLEL_NATIVE @AT_PARALLEL_NATIVE@
20#define AT_BLAS_F2C() @AT_BLAS_F2C@
21#define AT_BLAS_USE_CBLAS_DOT() @AT_BLAS_USE_CBLAS_DOT@
22