/** * Partitioned global caching mode support */ private static cudaOccPartitionedGCSupport cudaOccPartitionedGlobalCachingModeSupport(cudaOccDeviceProp properties) { cudaOccPartitionedGCSupport limit = cudaOccPartitionedGCSupport.NotSupported; if ((properties.computeMajor == 5 && (properties.computeMinor == 2 || properties.computeMinor == 3)) || properties.computeMajor == 6) { limit = cudaOccPartitionedGCSupport.Supported; } if (properties.computeMajor == 6 && properties.computeMinor == 0) { limit = cudaOccPartitionedGCSupport.NotSupported; } return(limit); }
/////////////////////////////////////////////// // Occupancy calculation Functions // /////////////////////////////////////////////// private static bool cudaOccPartitionedGCForced(cudaOccDeviceProp properties) { cudaOccPartitionedGCSupport gcSupport = cudaOccPartitionedGlobalCachingModeSupport(properties); return(gcSupport == cudaOccPartitionedGCSupport.AlwaysOn); }