If I declare a variable:
define SIZE = 900; // width and height of an image
float ** abc;
So if I want to allocate the memory for it on GPU, should I allocate it like this?
cudaMalloc(&abc, SIZE * SIZE * sizeof(float));
Because I got a warning: integer operation result is out of range.
If I declare it like this:
cudaMalloc(&abc, SIZE * sizeof(float));
Then it it fine, I dont know whether with array 2 dimension, what should I allocate?
Thanks in advance.