Beispiel #1
0
 internal CudaRAND(GPGPU gpu, curandRngType rng_type)
 {
     _gpu = gpu;
     if (IntPtr.Size == 8)
     {
         _driver = new CURANDDriver64();
     }
     else
     {
         _driver = new CURANDDriver32();
     }
 }
Beispiel #2
0
 internal CudaRAND(GPGPU gpu, curandRngType rng_type)
 {
     _gpu = gpu;
     if (IntPtr.Size == 8)
     {
         _driver = new CURANDDriver64();
     }
     else
     {
         _driver = new CURANDDriver32();
     }
 }