Post
Topic
Board Mining (Altcoins)
Re: [ANN] ccminer 1.8.1 with sia, lyra2 and lbry boost - opensource (tpruvot)
by
Schleicher
on 25/08/2016, 16:08:06 UTC
While mining lbry, I'm seeing this error:

GPU #0: an illegal memory access was encountered

It isn't every GPU, and it varies if I reboot.  Some GPUs do mine; at first 3, then only 1.

Any idea offhand what's causing this? 
If you are using a 32bit build, then you can get an integer overflow in this line:
Code:
CUDA_SAFE_CALL(cudaMalloc(&d_hash[thr_id], (size_t) 64 * throughput));
64*throughput doesn't fit in a 32bit integer when you are using a high intensity.
Depending on the compiler options the cast to size_t doesn't always help since it can be 32bit too.