From 922f1fe3f1f32f3ddfe9ebc513f74d980251f93a Mon Sep 17 00:00:00 2001 From: "Yuhsiang M. Tsai" Date: Tue, 3 Mar 2020 09:15:33 +0100 Subject: [PATCH] fix sonarcloud warning --- benchmark/utils/cuda_linops.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/benchmark/utils/cuda_linops.hpp b/benchmark/utils/cuda_linops.hpp index acbc5af7153..29d435c82b2 100644 --- a/benchmark/utils/cuda_linops.hpp +++ b/benchmark/utils/cuda_linops.hpp @@ -56,6 +56,8 @@ class CuspBase : public gko::LinOp { public: cusparseMatDescr_t get_descr() const { return this->descr_.get(); } + // Return shared pointer not plain pointer such that CuspGenericSpMV uses + // gko::Array to allocate buffer. std::shared_ptr get_gpu_exec() const { return gpu_exec_; @@ -571,6 +573,10 @@ class CuspGenericCsr } } + CuspGenericCsr(const CuspGenericCsr &other) = delete; + + CuspGenericCsr &operator=(const CuspGenericCsr &other) = default; + protected: void apply_impl(const gko::LinOp *b, gko::LinOp *x) const override { @@ -643,6 +649,10 @@ class CuspGenericCoo } } + CuspGenericCoo(const CuspGenericCoo &other) = delete; + + CuspGenericCoo &operator=(const CuspGenericCoo &other) = default; + protected: void apply_impl(const gko::LinOp *b, gko::LinOp *x) const override {