From 42b6a74ce52ba119ac7df59fdffe71cd72a9bf8d Mon Sep 17 00:00:00 2001 From: Kjetil Olsen Lye Date: Wed, 29 Mar 2023 16:14:52 +0200 Subject: [PATCH] Made CuSparseMatrix non-copyable. --- opm/simulators/linalg/cuistl/CuSparseMatrix.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/opm/simulators/linalg/cuistl/CuSparseMatrix.hpp b/opm/simulators/linalg/cuistl/CuSparseMatrix.hpp index 0a87d494c..7ab0d4231 100644 --- a/opm/simulators/linalg/cuistl/CuSparseMatrix.hpp +++ b/opm/simulators/linalg/cuistl/CuSparseMatrix.hpp @@ -67,7 +67,15 @@ public: size_t blockSize, size_t numberOfRows); - // TODO: Handle copy ctor and operator= + /** + * We don't want to be able to copy this for now (too much hassle in copying the cusparse resources) + */ + CuSparseMatrix(const CuSparseMatrix&) = delete; + + /** + * We don't want to be able to copy this for now (too much hassle in copying the cusparse resources) + */ + CuSparseMatrix& operator=(const CuSparseMatrix&) = delete; virtual ~CuSparseMatrix();