mirror of
https://github.com/stevenrobertson/cuburn.git
synced 2025-02-05 11:40:04 -05:00
Open primes.bin in binary mode.
This commit is contained in:
parent
6144601259
commit
20520d2f69
@ -47,7 +47,7 @@ __device__ float mwc_next_11(mwc_st &st) {
|
|||||||
rand = np.random
|
rand = np.random
|
||||||
|
|
||||||
# Load raw big-endian u32 multipliers from primes.bin.
|
# Load raw big-endian u32 multipliers from primes.bin.
|
||||||
with open('primes.bin') as primefp:
|
with open('primes.bin', 'rb') as primefp:
|
||||||
dt = np.dtype(np.uint32).newbyteorder('B')
|
dt = np.dtype(np.uint32).newbyteorder('B')
|
||||||
mults = np.frombuffer(primefp.read(), dtype=dt)
|
mults = np.frombuffer(primefp.read(), dtype=dt)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user