Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Binds this CUDA context to the calling CPU thread
/// </summary>
Binds this CUDA context to the calling CPU thread
Binds this CUDA context to the calling CPU thread
public void SetCurrent()
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUResult res;
			res = DriverAPINativeMethods.ContextManagement.cuCtxSetCurrent(_context);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxSetCurrent", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
		}
public void SetCurrent ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; res = DriverAPINativeMethods . ContextManagement . cuCtxSetCurrent ( _context ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; }
Binds this CUDA context to the calling CPU thread
Binds this CUDA context to the calling CPU thread