Skip to content

Commit

Permalink
fix some issues with the debug build (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
benson31 authored Jan 13, 2021
1 parent d97687e commit 0196941
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/hydrogen/blas/GPU_BLAS_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 0196941

Please sign in to comment.