mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-09-16 19:33:14 +08:00
Disable vectorization when compiled by nvcc, even is EIGEN_NO_CUDA is defined
This commit is contained in:
parent
9f8136ff74
commit
3182bdbae6
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user