Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Returns numerical values that correspond to the least and greatest stream priorities.<para/>
/// Returns in <c>leastPriority</c> and <c>greatestPriority</c> the numerical values that correspond
/// to the least and greatest stream priorities respectively. Stream priorities
/// follow a convention where lower numbers imply greater priorities. The range of
/// meaningful stream priorities is given by [<c>greatestPriority</c>, <c>leastPriority</c>].
/// If the user attempts to create a stream with a priority value that is
/// outside the meaningful range as specified by this API, the priority is
/// automatically clamped down or up to either <c>leastPriority</c> or <c>greatestPriority</c>
/// respectively. See ::cuStreamCreateWithPriority for details on creating a
/// priority stream.
/// A NULL may be passed in for <c>leastPriority</c> or <c>greatestPriority</c> if the value
/// is not desired.
/// This function will return '0' in both <c>leastPriority</c> and <c>greatestPriority</c> if
/// the current context's device does not support stream priorities
/// (see ::cuDeviceGetAttribute).
/// </summary>
/// <param name="leastPriority">Pointer to an int in which the numerical value for least
/// stream priority is returned</param>
/// <param name="greatestPriority">Pointer to an int in which the numerical value for greatest stream priority is returned</param>
Returns numerical values that correspond to the least and greatest stream priorities.
Returns numerical values that correspond to the least and greatest stream priorities .
public void GetStreamPriorityRange(ref int leastPriority, ref int greatestPriority)
		{
			CUResult res = DriverAPINativeMethods.ContextManagement.cuCtxGetStreamPriorityRange(ref leastPriority, ref greatestPriority);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxGetStreamPriorityRange", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public void GetStreamPriorityRange ( ref int leastPriority , ref int greatestPriority ) { CUResult res = DriverAPINativeMethods . ContextManagement . cuCtxGetStreamPriorityRange ( ref leastPriority , ref greatestPriority ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Returns numerical values that correspond to the least and greatest stream priorities.
Returns numerical values that correspond to the least and greatest stream priorities .
int
ref
leastPriority
Pointer to an int in which the numerical value for least
stream priority is returned
Pointer to an int in which the numerical value for least stream priority is returned
greatestPriority
Pointer to an int in which the numerical value for greatest stream priority is returned
Pointer to an int in which the numerical value for greatest stream priority is returned