local copy of row in solver

This commit is contained in:
2019-12-10 21:01:09 -05:00
parent 2696b7b217
commit 1be4066758

View File

@@ -47,7 +47,9 @@ struct Solver {
} }
__device__ __device__
void operator()(Row &row) { void operator()(Row &drow) {
Row row = drow;
if (row.r - row.l <= 0) { if (row.r - row.l <= 0) {
return; return;
} }
@@ -67,6 +69,8 @@ struct Solver {
row.r--; row.r--;
row.to = next; row.to = next;
} }
drow = row;
if (row.r - row.l <= 0) { if (row.r - row.l <= 0) {
int gen = c_rels[row.rel].gens[row.l & 1]; int gen = c_rels[row.rel].gens[row.l & 1];