spirit-code / spirit

Atomistic Spin Simulation Framework
http://spirit-code.github.io
MIT License
118 stars 52 forks source link

Core: investigate usage of EIGEN_USE_GPU for CUDA backend #442

Closed GPMueller closed 6 years ago

GPMueller commented 6 years ago

It seems that the macro EIGEN_USE_GPU should be used when using Eigen in CUDA kernels, but I am not sure about this, as it is not well documented. See for example https://bitbucket.org/eigen/eigen/pull-requests/225/add-cuda-specific-std-complex/diff and the comments in the src/Core/arch/CUDA/Complex.h header

GPMueller commented 6 years ago

Added with b592c65dfb41b9aaeb852ff8d009ca2269e9500c. Note: this is needed to use complex Eigen types (which use std::complex).