Skip to content

Commit

Permalink
Fix clang warning
Browse files Browse the repository at this point in the history
  • Loading branch information
maddyscientist committed Mar 23, 2024
1 parent f0c71f6 commit 9414d4a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions include/color_spinor_field_order.h
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,7 @@ namespace quda
GhostNOrder() = default;
GhostNOrder(const GhostNOrder &) = default;
GhostNOrder(const ColorSpinorField &, int = 1, Float ** = 0) { }
GhostNOrder &operator=(const GhostNOrder &) = default;
};

template <typename Float, int Ns, int Nc, int N, bool spin_project, bool huge_alloc>
Expand Down Expand Up @@ -1085,6 +1086,8 @@ namespace quda
resetGhost(ghost_ ? (void **)ghost_ : a.Ghost());
}

GhostNOrder &operator=(const GhostNOrder &) = default;

void resetGhost(void *const *ghost_) const
{
for (int dim = 0; dim < 4; dim++) {
Expand Down
6 changes: 3 additions & 3 deletions lib/evec_project.cu
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ namespace quda
apply(device::get_default_stream());
}

void apply(const qudaStream_t &stream)
void apply(const qudaStream_t &stream) override
{
TuneParam tp = tuneLaunch(*this, getTuning(), getVerbosity());
EvecProjectionArg<Float, nColor> arg(x, y);
launch<EvecProjection>(result, tp, stream, arg);
}

long long flops() const { return 8 * x.size() * y.size() * x.Nspin() * x.Ncolor() * x.Volume(); }
long long bytes() const { return x.Bytes() * y.size() + y.Bytes() * x.size(); }
long long flops() const override { return 8 * x.size() * y.size() * x.Nspin() * x.Ncolor() * x.Volume(); }
long long bytes() const override { return x.Bytes() * y.size() + y.Bytes() * x.size(); }
};

void evecProjectLaplace3D(std::vector<Complex> &result, cvector_ref<const ColorSpinorField> &x,
Expand Down

0 comments on commit 9414d4a

Please sign in to comment.