Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Gets the context's API version
/// </summary>
/// <returns>Version</returns>
Gets the context's API version
Gets the context ' s API version
public Version GetAPIVersionOfCurrentContext()
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			uint version = 0;
			CUResult res;
			res = DriverAPINativeMethods.ContextManagement.cuCtxGetApiVersion(_context, ref version);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuCtxGetApiVersion", res));
			if (res != CUResult.Success)
				throw new CudaException(res);
			return new Version((int)version / 1000, (int)version % 100);
		}
public Version GetAPIVersionOfCurrentContext ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; uint version = 0 ; CUResult res ; res = DriverAPINativeMethods . ContextManagement . cuCtxGetApiVersion ( _context , ref version ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return new Version ( ( int ) version / 1000 , ( int ) version % 100 ) ; }
Gets the context's API version
Gets the context ' s API version
None