Removed exceptions from destructors.

This commit is contained in:
Kjetil Olsen Lye 2023-05-09 16:11:04 +02:00
parent 133a8897a0
commit a703e9f7bd
2 changed files with 3 additions and 3 deletions

View File

@ -90,7 +90,7 @@ CuVector<T>::CuVector(const CuVector<T>& other)
template <class T>
CuVector<T>::~CuVector()
{
OPM_CUDA_SAFE_CALL(cudaFree(m_dataOnDevice));
OPM_CUDA_WARN_IF_ERROR(cudaFree(m_dataOnDevice));
}
template <typename T>

View File

@ -98,6 +98,6 @@ CuSparseResource<T>::~CuSparseResource()
{
// TODO: This should probably not use this macro since it will disguise the
// proper name of the function being called.
OPM_CUSPARSE_SAFE_CALL(m_deleter(m_resource));
OPM_CUSPARSE_WARN_IF_ERROR(m_deleter(m_resource));
}
} // namespace Opm::cuistl::impl
} // namespace Opm::cuistl::detail