Fix the missing CUDA device qualifier
Reference issue
What does this implement/fix?
-
Fixed an issue when calling
Eigen::Matrix3f(v.asDiagonal())in CUDAThe issue was cause by the usage of non device function
Assignment<ActualDstTypeCleaned, Src, Func>::runat Eigen/src/Core/AssignEvaluator.h:829.The fix added the
EIGEN_DEVICE_FUNCmacro at Eigen/src/Core/DiagonalMatrix.h:392. -
Fixed an issue when calling
Eigen::Vector3f({{1,2,3}})in CUDAThe issue was cause by the usage of non device function
internal::check_implicationat Eigen/src/Core/PlainObjectBase.h:295 andstd::copyat Eigen/src/Core/PlainObjectBase.h:528The fix added the
EIGEN_DEVICE_FUNCmacro at Eigen/src/Core/util/Meta.h:740 and replacestd::copywith manual iteration.The fix also added the
EIGEN_DEVICE_FUNCmacro to all the other function definitions in Eigen/src/Core/util/Meta.h.