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