From 4f5a8129ae5db22fae30696fb0724a76ccbc8ffa Mon Sep 17 00:00:00 2001 From: rcxpony Date: Sat, 15 Mar 2025 19:54:15 +0500 Subject: [PATCH] fixes --- sources/main.cu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]);