I am new with Cuda, and I’d like to know why I get this error:
What I am trying to do is just to give values to an array. On the device:
tid+=blockDim.x * gridDim.x;
If TAM is 10485760 (10MB) it works fine, but if I tried with 100MB I get this error:
cudaSafeCall() Runtime API error in file xxx, line 155 : the launch timed out and was terminated.
A is one of the parameters I give to the function, so I thought it would be global memory, but the GPU has 4 GB of global memory…
Anyone could explain me what is happening?, isn’t it global memory?.
Another doubt. If I want to declare a variable in the device without passing it as an argument of the function, i declare it outside the device and host function with device. For example:
device float B[TAM]
Is that correct??.
Thank you so much, and sorry for my poor english.