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