mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +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
|
||||
#endif
|
||||
|
||||
#ifdef __NVCC__
|
||||
#define EIGEN_DONT_VECTORIZE
|
||||
#endif
|
||||
|
||||
// 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
|
||||
// std versions.
|
||||
|
Loading…
Reference in New Issue
Block a user