mirror of
				https://github.com/stevenrobertson/cuburn.git
				synced 2025-11-03 18:00:55 -05:00 
			
		
		
		
	Open primes.bin in binary mode.
This commit is contained in:
		@ -47,7 +47,7 @@ __device__ float mwc_next_11(mwc_st &st) {
 | 
			
		||||
            rand = np.random
 | 
			
		||||
 | 
			
		||||
        # 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')
 | 
			
		||||
            mults = np.frombuffer(primefp.read(), dtype=dt)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user