Commit 512ca0b0 authored by Doak, Peter W.'s avatar Doak, Peter W.
Browse files

fix a warning for CPU only

parent 34785300
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -315,7 +315,7 @@ void Vector<ScalarType, device_name, Allocator>::setAsync(const Container& rhs,
}

template <typename ScalarType, DeviceType device_name, class Allocator>
void Vector<ScalarType, device_name, Allocator>::setToZeroAsync(const util::GpuStream& stream) {
void Vector<ScalarType, device_name, Allocator>::setToZeroAsync(const util::GpuStream& stream [[maybe_unused]]) {
  // TODO: implement in copy.hpp.
#ifdef DCA_HAVE_GPU
  checkRC(cudaMemsetAsync(data_, 0, size_ * sizeof(ScalarType), stream));
+1 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ struct WalkerWrapperSubmatrix : public WalkerSelector<Parameters, device_t, Real

  }

  // This purposefully shadows
  void doStep(const int n_steps_to_delay) {
    BaseClass::doStep(n_steps_to_delay);
  }