private static cudaOccPartitionedGCConfig cudaOccPartitionedGCExpected(
cudaOccDeviceProp properties,
cudaOccFuncAttributes attributes)
{
cudaOccPartitionedGCSupport gcSupport;
cudaOccPartitionedGCConfig gcConfig;
gcSupport = cudaOccPartitionedGlobalCachingModeSupport(properties);
gcConfig = attributes.partitionedGCConfig;
if (gcSupport == cudaOccPartitionedGCSupport.NotSupported) {
gcConfig = cudaOccPartitionedGCConfig.Off;
}
if (cudaOccPartitionedGCForced(properties)) {
gcConfig = cudaOccPartitionedGCConfig.On;
}
return gcConfig;
}