public static String stringFor ( int n ) { switch ( n ) { case cudaLimitStackSize : return "cudaLimitStackSize" ; case cudaLimitPrintfFifoSize : return "cudaLimitPrintfFifoSize" ; case cudaLimitMallocHeapSize : return "cudaLimitMallocHeapSize" ; case cudaLimitDevRuntimeSyncDepth : return "cudaLimitDevRuntimeSyncDepth" ; case cudaLimitDevRuntimePendingLaunchCount : return "cudaLimitDevRuntimePendingLaunchCount" ; case cudaLimitMaxL2FetchGranularity : return "cudaLimitMaxL2FetchGranularity" ; } return "INVALID cudaLimit: " + n ; }
Returns the String identifying the given cudaLimit