public cudaError GetDeviceProperties(ref cudaDeviceProp prop, int device) { try { return cudaGetDeviceProperties(ref prop, device); } catch (DllNotFoundException) { return cudaGetDevicePropertiesPrev(ref prop, device); } }
public static extern cudaError cudaGetDevicePropertiesPrev(ref cudaDeviceProp prop, int device);
public static extern cudaError cudaChooseDevice(ref int device, ref cudaDeviceProp prop);