mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Properly gate the fft code
This commit is contained in:
parent
4c859181da
commit
0f5cc504fe
@ -10,8 +10,9 @@
|
|||||||
#ifndef EIGEN_CXX11_TENSOR_TENSOR_FFT_H
|
#ifndef EIGEN_CXX11_TENSOR_TENSOR_FFT_H
|
||||||
#define EIGEN_CXX11_TENSOR_TENSOR_FFT_H
|
#define EIGEN_CXX11_TENSOR_TENSOR_FFT_H
|
||||||
|
|
||||||
// NVCC fails to compile this code
|
// This code requires the ability to initialize arrays of constant
|
||||||
#if !defined(__CUDACC__)
|
// values directly inside a class.
|
||||||
|
#ifdef EIGEN_HAS_CONSTEXPR
|
||||||
|
|
||||||
namespace Eigen {
|
namespace Eigen {
|
||||||
|
|
||||||
@ -638,7 +639,7 @@ struct TensorEvaluator<const TensorFFTOp<FFT, ArgType, FFTResultType, FFTDir>, D
|
|||||||
|
|
||||||
} // end namespace Eigen
|
} // end namespace Eigen
|
||||||
|
|
||||||
#endif // __CUDACC__
|
#endif // EIGEN_HAS_CONSTEXPR
|
||||||
|
|
||||||
|
|
||||||
#endif // EIGEN_CXX11_TENSOR_TENSOR_FFT_H
|
#endif // EIGEN_CXX11_TENSOR_TENSOR_FFT_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user