Skip to content

Commit

Permalink
Merge branch 'feature/DD' into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
pittlerf committed Nov 6, 2024
2 parents 4041e67 + a7fe5bd commit f1b83a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions lib/gauge_field.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ namespace quda {
errorQuda("Cannot request a 12/8 reconstruct type without SU(3) link type");
if (param.reconstruct == QUDA_RECONSTRUCT_10 && param.link_type != QUDA_ASQTAD_MOM_LINKS)
errorQuda("10-reconstruction only supported with momentum links");
if (param.nFace > x[0] || param.nFace > x[1] || param.nFace > x[2] || param.nFace > x[3])
errorQuda("Halo depth %d is greater than local lattice x = {%d %d %d %d}", param.nFace, x[0], x[1], x[2], x[3]);

nColor = param.nColor;
nFace = param.nFace;
Expand Down
3 changes: 2 additions & 1 deletion tests/host_reference/staggered_dslash_reference.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ void staggeredDslashReference(real_t *res, const real_t *const *fatlink, const r
} // 4-d volume
}

void stag_dslash(ColorSpinorField &out, const GaugeField &fat_link, const GaugeField &long_link,
void stag_dslash(ColorSpinorField &out, const GaugeField &fat_link, const GaugeField &long_link_,
const ColorSpinorField &in, int oddBit, int daggerBit, QudaDslashType dslash_type)
{
// assert sPrecision and gPrecision must be the same
Expand All @@ -131,6 +131,7 @@ void stag_dslash(ColorSpinorField &out, const GaugeField &fat_link, const GaugeF

in.exchangeGhost(otherparity, nFace, daggerBit);

auto &long_link = dslash_type == QUDA_ASQTAD_DSLASH ? long_link_ : fat_link;
void *qdp_fatlink[] = {fat_link.data(0), fat_link.data(1), fat_link.data(2), fat_link.data(3)};
void *qdp_longlink[] = {long_link.data(0), long_link.data(1), long_link.data(2), long_link.data(3)};
void *ghost_fatlink[]
Expand Down
2 changes: 1 addition & 1 deletion tests/staggered_dslash_test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ struct StaggeredDslashTestWrapper {
GaugeFieldParam cpuLongParam(gauge_param, qdp_longlink);
cpuLongParam.order = QUDA_QDP_GAUGE_ORDER;
cpuLongParam.ghostExchange = QUDA_GHOST_EXCHANGE_PAD;
cpuLong = GaugeField(cpuLongParam);
if (dslash_type == QUDA_ASQTAD_DSLASH) cpuLong = GaugeField(cpuLongParam);

// Override link reconstruct as appropriate for staggered or asqtad
if (is_staggered(dslash_type)) {
Expand Down

0 comments on commit f1b83a0

Please sign in to comment.