79213853

Date: 2024-11-22 06:26:34
Score: 0.5
Natty:
Report link

Problem was not enough memory in state array for thread/block size

    curandState * d_state;  
    cudaMalloc(&d_state, 195075 * sizeof(curandState) );

    __global__ void k_initRand(curandState *state, uint64_t seed){
        int tid = threadIdx.x + blockIdx.x * blockDim.x;
        curand_init(seed, tid, 0, &state[tid]);

    }

Out of bounds error was garbling the printf() data

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: bigcodeszzer