private static cudaOccError cudaOccFuncAttributesCheck(cudaOccFuncAttributes attributes)
{
// Verify function attributes
//
if (attributes.maxThreadsPerBlock <= 0 ||
attributes.numRegs < 0) { // Compiler may choose not to use
// any register (empty kernels,
// etc.)
return cudaOccError.ErrorInvalidInput;
}
return cudaOccError.None;
}