mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Removed exceptions from destructors.
This commit is contained in:
parent
133a8897a0
commit
a703e9f7bd
@ -90,7 +90,7 @@ CuVector<T>::CuVector(const CuVector<T>& other)
|
|||||||
template <class T>
|
template <class T>
|
||||||
CuVector<T>::~CuVector()
|
CuVector<T>::~CuVector()
|
||||||
{
|
{
|
||||||
OPM_CUDA_SAFE_CALL(cudaFree(m_dataOnDevice));
|
OPM_CUDA_WARN_IF_ERROR(cudaFree(m_dataOnDevice));
|
||||||
}
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
@ -98,6 +98,6 @@ CuSparseResource<T>::~CuSparseResource()
|
|||||||
{
|
{
|
||||||
// TODO: This should probably not use this macro since it will disguise the
|
// TODO: This should probably not use this macro since it will disguise the
|
||||||
// proper name of the function being called.
|
// 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
|
||||||
|
Loading…
Reference in New Issue
Block a user