Skip to content

Commit

Permalink
Resolve the cmake/clang-format conflicts, hopefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
hummingtree committed Jan 17, 2025
1 parent dcad5c8 commit d8adfa2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
8 changes: 6 additions & 2 deletions lib/block_transpose.in.cu
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ namespace quda
void launch_span_nColor(v_t &V, cvector_ref<b_t> &B, bool from_to_non_rel, IntList<nColor, N...>)
{
if (B[0].Ncolor() == nColor) {
IntList<@QUDA_MULTIGRID_MRHS_LIST @> nVecs;
// clang-format off
IntList<@QUDA_MULTIGRID_MRHS_LIST@> nVecs;
// clang-format on
launch_span_nVec<v_t, b_t, vFloat, bFloat, nSpin, nColor>(V, B, from_to_non_rel, nVecs);
} else {
IntList<N...> nColors_remaining;
Expand All @@ -152,7 +154,9 @@ namespace quda

if (V.Nspin() == nSpin) {
if constexpr (is_enabled_spin(nSpin)) {
IntList<@QUDA_MULTIGRID_NC_NVEC_LIST @> nColors;
// clang-format off
IntList<@QUDA_MULTIGRID_NC_NVEC_LIST@> nColors;
// clang-format on
launch_span_nColor<v_t, b_t, vFloat, bFloat, nSpin>(V, B, from_to_non_rel, nColors);
} else {
errorQuda("nSpin = %d not instantiated", nSpin);
Expand Down
5 changes: 4 additions & 1 deletion lib/dslash_coarse.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,11 @@ namespace quda
if (dslash) { BlockTransposeForward(v_inA, inA_offseted); }
if (clover) { BlockTransposeForward(v_inB, inB_offseted); }

// clang-format off
IntList<@QUDA_MULTIGRID_NVEC_LIST@> nColors;
// clang-format on
ApplyCoarse<true>(v_out, v_inA, v_inB, *Y_, *X_, kappa, parity, dslash, clover, dagger, commDim,
halo_precision, IntList<@QUDA_MULTIGRID_NVEC_LIST @>());
halo_precision, nColors);

BlockTransposeBackward(v_out, out_offseted);
}
Expand Down
6 changes: 4 additions & 2 deletions lib/prolongator.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ namespace quda
auto v_out = create_color_spinor_copy(out, nVec, csOrder);
BlockTransposeForward(v_in, in);

IntList<@QUDA_MULTIGRID_MRHS_LIST @> nvecs;
ProlongateMma2<fineColor, coarseColor>(v_out, v_in, V, fine_to_coarse, spin_map, parity, nvecs);
// clang-format off
IntList<@QUDA_MULTIGRID_MRHS_LIST@> nVecs;
// clang-format on
ProlongateMma2<fineColor, coarseColor>(v_out, v_in, V, fine_to_coarse, spin_map, parity, nVecs);

bool to_non_rel = (out.Nspin() == 4) && (out[0].GammaBasis() == QUDA_UKQCD_GAMMA_BASIS);
BlockTransposeBackward(v_out, out, to_non_rel);
Expand Down
6 changes: 4 additions & 2 deletions lib/restrictor.in.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ namespace quda
bool from_non_rel = (in.Nspin() == 4) && (in[0].GammaBasis() == QUDA_UKQCD_GAMMA_BASIS);
BlockTransposeForward(v_in, in, from_non_rel);

IntList<@QUDA_MULTIGRID_MRHS_LIST @> nvecs;
RestrictMma2<fineColor, coarseColor>(v_out, v_in, V, fine_to_coarse, coarse_to_fine, spin_map, parity, nvecs);
// clang-format off
IntList<@QUDA_MULTIGRID_MRHS_LIST@> nVecs;
// clang-format on
RestrictMma2<fineColor, coarseColor>(v_out, v_in, V, fine_to_coarse, coarse_to_fine, spin_map, parity, nVecs);

BlockTransposeBackward(v_out, out);
};
Expand Down

0 comments on commit d8adfa2

Please sign in to comment.