diff options
author | Antonio Sanchez <cantonios@google.com> | 2021-02-08 12:51:29 -0800 |
---|---|---|
committer | Antonio Sanchez <cantonios@google.com> | 2021-02-08 12:56:23 -0800 |
commit | 66841ea070880186bed59e2554e7e1b67a4655ed (patch) | |
tree | 9af21cf4ed0abaf9dc5220d3ef5df623b85e85ce /Eigen/src/SVD | |
parent | 6e3b795f811e8f3bf75393f8274e558a40479cc9 (diff) |
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
Diffstat (limited to 'Eigen/src/SVD')
-rw-r--r-- | Eigen/src/SVD/BDCSVD.h | 2 |
1 files changed, 0 insertions, 2 deletions
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<MatrixType>::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<Derived>::bdcSvd(unsigned int computationOptions) const { return BDCSVD<PlainObject>(*this, computationOptions); } -#endif } // end namespace Eigen |