mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Disable vectorization when compiled by nvcc, even is EIGEN_NO_CUDA is defined
This commit is contained in:
@@ -55,6 +55,10 @@
|
|||||||
#define EIGEN_DEVICE_FUNC
|
#define EIGEN_DEVICE_FUNC
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __NVCC__
|
||||||
|
#define EIGEN_DONT_VECTORIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
// When compiling CUDA device code with NVCC, pull in math functions from the
|
// When compiling CUDA device code with NVCC, pull in math functions from the
|
||||||
// global namespace. In host mode, and when device doee with clang, use the
|
// global namespace. In host mode, and when device doee with clang, use the
|
||||||
// std versions.
|
// std versions.
|
||||||
|
|||||||
Reference in New Issue
Block a user