Skip to content

Commit

Permalink
Print the nVec used only in debug verbosity.
Browse files Browse the repository at this point in the history
  • Loading branch information
hummingtree committed Jan 7, 2025
1 parent af4c9a0 commit 49c0a58
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/dslash_coarse.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ namespace quda
}
int instantiated_nVec = instantiated_nVec_to_use(out.size());
size_t size = out.size();
printfQuda("nVec/out.size() = %d/%lu\n", instantiated_nVec, size);
if (getVerbosity() >= QUDA_DEBUG_VERBOSE) {
printfQuda("Dslash coarse nVec/out.size() = %d/%lu\n", instantiated_nVec, size);
}
for (size_t offset = 0; offset < size; offset += instantiated_nVec) {
cvector_ref<ColorSpinorField> out_offseted{out.begin() + offset, out.begin() + std::min(offset + instantiated_nVec, size)};
cvector_ref<const ColorSpinorField> inA_offseted{inA.begin() + offset, inA.begin() + std::min(offset + instantiated_nVec, size)};
Expand Down
4 changes: 3 additions & 1 deletion lib/multigrid.in.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ namespace quda {
}
int instantiated_nVec = instantiated_nVec_to_use(out.size());
size_t size = out.size();
printfQuda("divide_and_conquer nVec/out.size() = %d/%lu\n", instantiated_nVec, size);
if (getVerbosity() >= QUDA_DEBUG_VERBOSE) {
printfQuda("MG divide_and_conquer nVec/out.size() = %d/%lu\n", instantiated_nVec, size);
}
for (size_t offset = 0; offset < size; offset += instantiated_nVec) {
cvector_ref<ColorSpinorField> out_offseted{out.begin() + offset, out.begin() + std::min(offset + instantiated_nVec, size)};
cvector_ref<const ColorSpinorField> in_offseted{in.begin() + offset, in.begin() + std::min(offset + instantiated_nVec, size)};
Expand Down

0 comments on commit 49c0a58

Please sign in to comment.