I am trying to allocate a large amount of memory on GPU using cudaMalloc: cudaMalloc((void**)&count_d, N*sizeof(long));
with
unsigned long N = 999999999L;
I got an error message an that place so the question is if I am allocating too much memory or am doing something else wrong.
The error message what I get :
CUDA error : an illegal memory access was encountered (77)