private static cudaOccError cudaOccDevicePropCheck(cudaOccDeviceProp properties)
{
// Verify device properties
//
// Each of these limits must be a positive number.
//
// Compute capacity is checked during the occupancy calculation
//
if (properties.maxThreadsPerBlock <= 0 ||
properties.maxThreadsPerMultiProcessor <= 0 ||
properties.regsPerBlock <= 0 ||
properties.regsPerMultiprocessor <= 0 ||
properties.warpSize <= 0 ||
properties.sharedMemPerBlock <= 0 ||
properties.sharedMemPerMultiprocessor <= 0 ||
properties.numSms <= 0)
{
return cudaOccError.ErrorInvalidInput;
}
return cudaOccError.None;
}