public static String stringFor ( int k ) { switch ( k ) { case cudaMemAdviseSetReadMostly : return "cudaMemAdviseSetReadMostly" ; case cudaMemAdviseUnsetReadMostly : return "cudaMemAdviseUnsetReadMostly" ; case cudaMemAdviseSetPreferredLocation : return "cudaMemAdviseSetPreferredLocation" ; case cudaMemAdviseUnsetPreferredLocation : return "cudaMemAdviseUnsetPreferredLocation" ; case cudaMemAdviseSetAccessedBy : return "cudaMemAdviseSetAccessedBy" ; case cudaMemAdviseUnsetAccessedBy : return "cudaMemAdviseUnsetAccessedBy" ; } return "INVALID cudaMemoryAdvise: " + k ; }
Returns the String identifying the given cudaMemoryAdvise