public static String stringFor ( int n ) { switch ( n ) { case CU_CTX_SCHED_AUTO : return "CU_CTX_SCHED_AUTO" ; case CU_CTX_SCHED_SPIN : return "CU_CTX_SCHED_SPIN" ; case CU_CTX_SCHED_YIELD : return "CU_CTX_SCHED_YIELD" ; case CU_CTX_BLOCKING_SYNC : return "CU_CTX_BLOCKING_SYNC" ; case CU_CTX_MAP_HOST : return "CU_CTX_MAP_HOST" ; case CU_CTX_LMEM_RESIZE_TO_MAX : return "CU_CTX_LMEM_RESIZE_TO_MAX" ; case CU_CTX_FLAGS_MASK : return "[CU_CTX_FLAGS_MASK]" ; case CU_CTX_SCHED_MASK : return "[CU_CTX_SCHED_MASK]" ; } return "INVALID CUctx_flags: " + n ; }
Returns the String identifying the given CUctx_flags