diff --git a/sources/main.cu b/sources/main.cu index 229fc44..811747e 100644 --- a/sources/main.cu +++ b/sources/main.cu @@ -59,10 +59,12 @@ __device__ __forceinline__ unsigned char getZeros(const unsigned char* v) noexce } return leadZeros; } -__global__ void initRandSeed(curandState* states, unsigned long seed) { +/* +__global__ void initRandSeed(curandState* states, const unsigned long seed) { int idx = blockIdx.x * blockDim.x + threadIdx.x; curand_init(seed, idx, 0, &states[idx]); } +*/ __global__ void initRand(curandState* rs) { int id = blockIdx.x * blockDim.x + threadIdx.x; curand_init(clock64() + id * 7919ULL, id, 0, &rs[id]);