From 0196941db1ec286e0c5c5201ebdf98675967886a Mon Sep 17 00:00:00 2001 From: Tom Benson <30674819+benson31@users.noreply.github.com> Date: Wed, 13 Jan 2021 12:23:09 -0800 Subject: [PATCH] fix some issues with the debug build (#115) --- include/hydrogen/blas/GPU_BLAS_impl.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/hydrogen/blas/GPU_BLAS_impl.hpp b/include/hydrogen/blas/GPU_BLAS_impl.hpp index 2a79364dda..3beeeb0f07 100644 --- a/include/hydrogen/blas/GPU_BLAS_impl.hpp +++ b/include/hydrogen/blas/GPU_BLAS_impl.hpp @@ -1118,12 +1118,12 @@ void CholeskyFactorizeImpl(FillMode uplo, CholeskyFactorizeImpl(uplo, n, A, lda, workspace, workspace_size, info.data(), si); #ifndef EL_RELEASE - gpu_blas_impl::InfoT host_info; - Copy1DToHost(info.data(), &host_info, 1, si); + gpu_lapack_impl::InfoT host_info; + gpu::Copy1DToHost(info.data(), &host_info, 1, si); Synchronize(si); - if (host_info > gpu_blas_impl::InfoT(0)) + if (host_info > gpu_lapack_impl::InfoT(0)) throw std::runtime_error("Cholesky: Matrix not HPD."); - else if (host_info < gpu::blas_impl::InfoT(0)) + else if (host_info < gpu_lapack_impl::InfoT(0)) throw std::runtime_error("Cholesky: A parameter is bad."); #endif // EL_RELEASE }