Skip to content

Commit

Permalink
fix sonarcloud warning
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Mar 3, 2020
1 parent 3d84951 commit 922f1fe
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions benchmark/utils/cuda_linops.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const gko::CudaExecutor> get_gpu_exec() const
{
return gpu_exec_;
Expand Down Expand Up @@ -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
{
Expand Down Expand Up @@ -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
{
Expand Down

0 comments on commit 922f1fe

Please sign in to comment.