cudaMalloc throwing error with CUT_SAFE_CALL

I get an error with this line…is there a size limit to what I can allocate? I have 2 GTX285 1G of memory.

I did the calculation and I only got it showing up as 78 kb I could have done that math wrong but I just cannot figure out why it won’t allocate the memory.

#define ATOM_LENGTH 10000

CUT_SAFE_CALL(cudaMalloc((void **)&d_alist_1,ATOM_LENGTH * sizeof(double)));


it does not seem to be related to the CUT_SAFE_CALL…

but if ATOM_LENGTH is greater than 3025 I get a “the launch timed out and was terminated” error