Library/ManagedCuda/CudaPageLockedHostMemory3DFixedTypes.cs
/// <summary>
/// Passes back the flags that were specified when allocating the pinned host buffer
/// </summary>
/// <returns></returns>
Passes back the flags that were specified when allocating the pinned host buffer
Passes back the flags that were specified when allocating the pinned host buffer
public CUMemHostAllocFlags GetAllocFlags()
        {
            if (disposed) throw new ObjectDisposedException(this.ToString());
            CUMemHostAllocFlags flags = new CUMemHostAllocFlags();
            res = DriverAPINativeMethods.MemoryManagement.cuMemHostGetFlags(ref flags, _intPtr);
            Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "cuMemHostGetDevicePointer", res));
            if (res != CUResult.Success) throw new CudaException(res);
            return flags;
        }
public CUMemHostAllocFlags GetAllocFlags ( ) { if ( disposed ) throw new ObjectDisposedException ( this . ToString ( ) ) ; CUMemHostAllocFlags flags = new CUMemHostAllocFlags ( ) ; res = DriverAPINativeMethods . MemoryManagement . cuMemHostGetFlags ( ref flags , _intPtr ) ; Debug . WriteLine ( String . Format ( " " , DateTime . Now , " " , res ) ) ; if ( res != CUResult . Success ) throw new CudaException ( res ) ; return flags ; }
Passes back the flags that were specified when allocating the pinned host buffer
Passes back the flags that were specified when allocating the pinned host buffer
None