title: Alea GPU Memory Allocation Limit
body: <p>I am using Alea GPU with a GTX-1081ti, which has 11GB of global memory.</p>
  
  <p>When I use the <code>Alea Gpu.Default.Allocate</code> method to allocate memory on the GPU, when I get up near 3+ GB I get an "out of memory" error.</p>
  
  <p>My code is:</p>
  
  <pre><code>private static int Length = 2147000000;
  ...
  var gpu = Gpu.Default;    
  gpu.Allocate&lt;int&gt;(Length);
  </code></pre>
  
  <p>This should allocate about 8GB of GPU RAM, but it gives a CUDA out of memory exception. I've tried lower Length values, and based on the report from Task Manager the GPU Dedicated Memory only goes up to around 3 GB before it gets the error.</p>
  
  <p>However, when I do the same with raw CUDA code (outside of Alea), my limit is a bit over 80% of 11 GB, or almost 9 GB (since W10 limits the allocation).</p>
  
  <p>Does anyone know why I'm getting an "out of memory" error at only 3 GB?</p>
  
  <p>Thanks.</p>