Made CuSparseMatrix non-copyable.

This commit is contained in:
Kjetil Olsen Lye 2023-03-29 16:14:52 +02:00
parent 67f94ce8a3
commit 42b6a74ce5

View File

@ -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();