Library/ManagedCuda/CudaPageLockedHostMemory3D.cs
/// <summary>
/// Returns the CUdeviceptr for pinned host memory mapped to device memory space. Only valid if context is created with flag <see cref="CUCtxFlags.MapHost"/>
/// </summary>
/// <returns>Device Pointer</returns>
Returns the CUdeviceptr for pinned host memory mapped to device memory space. Only valid if context is created with flag
Returns the CUdeviceptr for pinned host memory mapped to device memory space . Only valid if context is created with flag
public CUdeviceptr GetDevicePointer()
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            CUdeviceptr ptr = new CUdeviceptr();
            res = DriverAPINativeMethods.MemoryManagement.cuMemHostGetDevicePointer_v2(ref ptr, _intPtr, 0);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemHostGetDevicePointer", res));
            if (res != CUResult.Success) throw new CudaException(res);
            return ptr;
        }
public CUdeviceptr GetDevicePointer ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUdeviceptr ptr = new CUdeviceptr ( ) ; res = DriverAPINativeMethods . MemoryManagement . cuMemHostGetDevicePointer_v2 ( ref ptr , _intPtr , 0 ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return ptr ; }
Returns the CUdeviceptr for pinned host memory mapped to device memory space.
Returns the CUdeviceptr for pinned host memory mapped to device memory space .
None