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