private static int cudaOccSubPartitionsPerMultiprocessor(cudaOccDeviceProp properties)
{
switch(properties.computeMajor)
{
//case 1: return 1;
case 2: return 2;
case 3: return 4;
case 5: return 4;
case 6: return 4;
default: throw new CudaOccupancyException(cudaOccError.ErrorUnknownDevice);
}
}