Commit b62a757b authored by Adam P. Goucher's avatar Adam P. Goucher

Bugfix

parent 7f31ac87
......@@ -47,6 +47,7 @@ __global__ void copyhashes_C1(uint64_cu *multiverse, uint32_cu *univec, uint64_c
b = ((b & 0x00ff) << 32) | ((b & 0xff00) << 16);
}
#ifdef SKIP_18_GENS
// Advance by 18 generations:
__shared__ uint64_cu tmp1[64];
__shared__ uint64_cu tmp2[64];
......@@ -73,6 +74,7 @@ __global__ void copyhashes_C1(uint64_cu *multiverse, uint32_cu *univec, uint64_c
ADVANCE_TILE_64(b, b, tmp1, tmp2)
ADVANCE_TILE_64(b, b, tmp1, tmp2)
ADVANCE_TILE_64(b, b, tmp1, tmp2)
#endif
// Save into multiverse:
multiverse[threadnum + 64] = b;
......
......@@ -27,6 +27,7 @@ def create_rule(rulestring):
uint64_cu pt4 = ((tmp)[u] ^ (tmp)[d]) ^ (sh ^ sv); \\
uint64_cu xc3 = ((tmp)[u] | (tmp)[d]) ^ (sh | sv); \\
b = pt4 & xc3 & (pt8 | a); \\\n}\n\n''')
f.write('#define SKIP_18_GENS 1\n\n')
with open('iterators_%s.h' % rulestring, 'w') as f:
f.write('#pragma once\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment