コード例 #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);