Skip to content

Commit

Permalink
QDPJIT parity only flopped on ODD parity
Browse files Browse the repository at this point in the history
  • Loading branch information
bjoo committed Oct 28, 2024
1 parent 6d3343b commit 4474826
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/kernels/copy_color_spinor.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ namespace quda
int ret_val = f.SiteOrder() == QUDA_ODD_EVEN_SITE_ORDER ? 1 : 0;

// Account for potential parity flip to access single parity subset QDP-JIT fields
if (f.FieldOrder() == QUDA_QDPJIT_FIELD_ORDER && f.SiteSubset() == QUDA_PARITY_SITE_SUBSET) {
// The Flip is only needed fir offsetting into Odd Parity Fields
if (f.FieldOrder() == QUDA_QDPJIT_FIELD_ORDER && f.SiteSubset() == QUDA_PARITY_SITE_SUBSET
&& f.SuggestedParity() == QUDA_ODD_PARITY) {
ret_val = 1 - ret_val;
}

Expand Down

0 comments on commit 4474826

Please sign in to comment.