Exemplo n.º 1
0
 public cudaError GetDeviceProperties(ref cudaDeviceProp prop, int device)
 {
     try
     {
         return cudaGetDeviceProperties(ref prop, device);
     }
     catch (DllNotFoundException)
     {
         return cudaGetDevicePropertiesPrev(ref prop, device);
     }
 }
Exemplo n.º 2
0
 public static extern cudaError cudaGetDevicePropertiesPrev(ref cudaDeviceProp prop, int device);
Exemplo n.º 3
0
 public static extern cudaError cudaChooseDevice(ref int device, ref cudaDeviceProp prop);