Library/ManagedCuda/CudaContext.cs
/// <summary>
/// Returns the total device memory in bytes
/// </summary>
/// <returns></returns>
Returns the total device memory in bytes
Returns the total device memory in bytes
public SizeT GetTotalDeviceMemorySize()
		{
			if (disposed) throw new ObjectDisposedException(this.ToString());
			CUResult res;
			SizeT size = 0, free = 0;
			res = DriverAPINativeMethods.MemoryManagement.cuMemGetInfo_v2(ref free, ref size);
			Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemGetInfo", res));
			if (res != CUResult.Success) throw new CudaException(res);
			return size;
		}
public SizeT GetTotalDeviceMemorySize ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUResult res ; SizeT size = 0 , free = 0 ; res = DriverAPINativeMethods . MemoryManagement . cuMemGetInfo_v2 ( ref free , ref size ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return size ; }
Returns the total device memory in bytes
Returns the total device memory in bytes
None