From 66841ea070880186bed59e2554e7e1b67a4655ed Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Mon, 8 Feb 2021 12:51:29 -0800 Subject: Enable bdcsvd on host. Currently if compiled by NVCC, the `MatrixBase::bdcSvd()` implementation is skipped, leading to a linker error. This prevents it from running on the host as well. Seems it was disabled 6 years ago (5384e891) to match `jacobiSvd`, but `jacobiSvd` is now enabled on host. Tested and runs fine on host, but will not compile/run for device (though it's not labelled as a device function, so this should be fine). Fixes #2139 --- Eigen/src/SVD/BDCSVD.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'Eigen/src/SVD') diff --git a/Eigen/src/SVD/BDCSVD.h b/Eigen/src/SVD/BDCSVD.h index bcec45f58..e0c4456c7 100644 --- a/Eigen/src/SVD/BDCSVD.h +++ b/Eigen/src/SVD/BDCSVD.h @@ -1330,7 +1330,6 @@ void BDCSVD::deflation(Eigen::Index firstCol, Eigen::Index lastCol, #endif }//end deflation -#if !defined(EIGEN_GPUCC) /** \svd_module * * \return the singular value decomposition of \c *this computed by Divide & Conquer algorithm @@ -1343,7 +1342,6 @@ MatrixBase::bdcSvd(unsigned int computationOptions) const { return BDCSVD(*this, computationOptions); } -#endif } // end namespace Eigen -- cgit v1.2.3