示例#1
0
 public cudaError GetDeviceProperties(ref cudaDeviceProp prop, int device)
 {
     try
     {
         return cudaGetDeviceProperties(ref prop, device);
     }
     catch (DllNotFoundException)
     {
         return cudaGetDevicePropertiesPrev(ref prop, device);
     }
 }
示例#2
0
 public static extern cudaError cudaGetDevicePropertiesPrev(ref cudaDeviceProp prop, int device);
示例#3
0
 public static extern cudaError cudaChooseDevice(ref int device, ref cudaDeviceProp prop);