Class CudaPageLockedHostMemory3D_uint3
A variable located in page locked (pinned) host memory. Use this type of variabe for asynchronous memcpy.
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaPageLockedHostMemory3D_uint3 : IDisposable, IEnumerable<uint3>, IEnumerable
Constructors
| Improve this Doc View SourceCudaPageLockedHostMemory3D_uint3(SizeT, SizeT, SizeT)
Creates a new CudaPageLockedHostMemory3D_uint3 and allocates the memory on host. Using cuMemHostAlloc without flags.
Pitch is assumed to be width * sizeof(uint3). Using cuMemHostAlloc without flags.
Declaration
public CudaPageLockedHostMemory3D_uint3(SizeT width, SizeT height, SizeT depth)
Parameters
Type | Name | Description |
---|---|---|
SizeT | width | In elements |
SizeT | height | In elements |
SizeT | depth | In elements |
CudaPageLockedHostMemory3D_uint3(SizeT, SizeT, SizeT, CUMemHostAllocFlags)
Creates a new CudaPageLockedHostMemory3D_uint3 and allocates the memory on host. Using cuMemHostAlloc without flags.
Pitch is assumed to be width * sizeof(uint3). Using cuMemHostAlloc.
Declaration
public CudaPageLockedHostMemory3D_uint3(SizeT width, SizeT height, SizeT depth, CUMemHostAllocFlags allocFlags)
Parameters
Type | Name | Description |
---|---|---|
SizeT | width | In elements |
SizeT | height | In elements |
SizeT | depth | In elements |
CUMemHostAllocFlags | allocFlags |
CudaPageLockedHostMemory3D_uint3(SizeT, SizeT, SizeT, SizeT)
Creates a new CudaPageLockedHostMemory3D_uint3 and allocates the memory on host. Using cuMemHostAlloc without flags.
Declaration
public CudaPageLockedHostMemory3D_uint3(SizeT width, SizeT pitchInBytes, SizeT height, SizeT depth)
Parameters
Type | Name | Description |
---|---|---|
SizeT | width | In elements |
SizeT | pitchInBytes | Width including alignment in bytes |
SizeT | height | In elements |
SizeT | depth | In elements |
CudaPageLockedHostMemory3D_uint3(SizeT, SizeT, SizeT, SizeT, CUMemHostAllocFlags)
Creates a new CudaPageLockedHostMemory3D_uint3 and allocates the memory on host. Using cuMemHostAlloc
Declaration
public CudaPageLockedHostMemory3D_uint3(SizeT width, SizeT pitchInBytes, SizeT height, SizeT depth, CUMemHostAllocFlags allocFlags)
Parameters
Type | Name | Description |
---|---|---|
SizeT | width | In elements |
SizeT | pitchInBytes | Width including alignment in bytes |
SizeT | height | In elements |
SizeT | depth | In elements |
CUMemHostAllocFlags | allocFlags |
Properties
| Improve this Doc View SourceDepth
Depth in elements
Declaration
public SizeT Depth { get; }
Property Value
Type | Description |
---|---|
SizeT |
Height
Height in elements
Declaration
public SizeT Height { get; }
Property Value
Type | Description |
---|---|
SizeT |
Item[SizeT, SizeT, SizeT]
Access array per element.
Declaration
public uint3 this[SizeT x, SizeT y, SizeT z] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
SizeT | x | X-index in elements |
SizeT | y | Y-index in elements |
SizeT | z | Z-index in elements |
Property Value
Type | Description |
---|---|
uint3 |
PinnedHostPointer
Pointer to pinned host memory.
Declaration
public IntPtr PinnedHostPointer { get; }
Property Value
Type | Description |
---|---|
System.IntPtr |
Pitch
Pitch in bytes
Declaration
public SizeT Pitch { get; }
Property Value
Type | Description |
---|---|
SizeT |
SizeInBytes
Size in bytes
Declaration
public SizeT SizeInBytes { get; }
Property Value
Type | Description |
---|---|
SizeT |
TypeSize
Type size in bytes
Declaration
public SizeT TypeSize { get; }
Property Value
Type | Description |
---|---|
SizeT |
Width
Width in elements
Declaration
public SizeT Width { get; }
Property Value
Type | Description |
---|---|
SizeT |
Methods
| Improve this Doc View SourceAsyncCopyFromArray3D(CUarray, CUstream)
Asynchron copy 3D Array to host
Declaration
public void AsyncCopyFromArray3D(CUarray deviceArray, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CUarray | deviceArray | |
CUstream | stream |
AsyncCopyFromArray3D(CudaArray3D, CUstream)
Asynchron copy 3D Array to host
Declaration
public void AsyncCopyFromArray3D(CudaArray3D array, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CudaArray3D | array | |
CUstream | stream |
AsyncCopyFromDevice(CUdeviceptr, CUstream)
Asynchron copy device to host
Declaration
public void AsyncCopyFromDevice(CUdeviceptr devicePtr, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devicePtr | |
CUstream | stream |
AsyncCopyFromDevice(CudaDeviceVariable<uint3>, CUstream)
Asynchron copy device to host
Declaration
public void AsyncCopyFromDevice(CudaDeviceVariable<uint3> deviceVar, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<uint3> | deviceVar | |
CUstream | stream |
AsyncCopyToArray3D(CUarray, CUstream)
Asynchron copy host to 3D array
Declaration
public void AsyncCopyToArray3D(CUarray deviceArray, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CUarray | deviceArray | |
CUstream | stream |
AsyncCopyToArray3D(CudaArray3D, CUstream)
Asynchron copy host to 3D Array
Declaration
public void AsyncCopyToArray3D(CudaArray3D array, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CudaArray3D | array | |
CUstream | stream |
AsyncCopyToDevice(CUdeviceptr, CUstream)
Asynchron Copy host to device
Declaration
public void AsyncCopyToDevice(CUdeviceptr devicePtr, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devicePtr | |
CUstream | stream |
AsyncCopyToDevice(CudaDeviceVariable<uint3>, CUstream)
Asynchron Copy host to device
Declaration
public void AsyncCopyToDevice(CudaDeviceVariable<uint3> deviceVar, CUstream stream)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<uint3> | deviceVar | |
CUstream | stream |
Dispose()
Dispose
Declaration
public void Dispose()
Dispose(Boolean)
For IDisposable
Declaration
protected virtual void Dispose(bool fDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | fDisposing |
Finalize()
For dispose
Declaration
protected void Finalize()
GetAllocFlags()
Passes back the flags that were specified when allocating the pinned host buffer
Declaration
public CUMemHostAllocFlags GetAllocFlags()
Returns
Type | Description |
---|---|
CUMemHostAllocFlags |
GetDevicePointer()
Returns the CUdeviceptr for pinned host memory mapped to device memory space. Only valid if context is created with flag MapHost
Declaration
public CUdeviceptr GetDevicePointer()
Returns
Type | Description |
---|---|
CUdeviceptr | Device Pointer |
SynchronCopyFromArray3D(CUarray)
Synchron copy 3D Array to host
Declaration
public void SynchronCopyFromArray3D(CUarray deviceArray)
Parameters
Type | Name | Description |
---|---|---|
CUarray | deviceArray |
SynchronCopyFromArray3D(CudaArray3D)
Synchron copy 3D Array to host
Declaration
public void SynchronCopyFromArray3D(CudaArray3D array)
Parameters
Type | Name | Description |
---|---|---|
CudaArray3D | array |
SynchronCopyToArray3D(CUarray)
Synchron copy host to 3D array
Declaration
public void SynchronCopyToArray3D(CUarray deviceArray)
Parameters
Type | Name | Description |
---|---|---|
CUarray | deviceArray |
SynchronCopyToArray3D(CudaArray3D)
Synchron copy host to 3D Array
Declaration
public void SynchronCopyToArray3D(CudaArray3D array)
Parameters
Type | Name | Description |
---|---|---|
CudaArray3D | array |
SynchronCopyToDevice(CUdeviceptr)
Synchron copy host to device
Declaration
public void SynchronCopyToDevice(CUdeviceptr devicePtr)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devicePtr |
SynchronCopyToDevice(CudaDeviceVariable<uint3>)
Synchron copy host to device
Declaration
public void SynchronCopyToDevice(CudaDeviceVariable<uint3> devicePtr)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<uint3> | devicePtr |
SynchronCopyToHost(CUdeviceptr)
Synchron copy device to host
Declaration
public void SynchronCopyToHost(CUdeviceptr devicePtr)
Parameters
Type | Name | Description |
---|---|---|
CUdeviceptr | devicePtr |
SynchronCopyToHost(CudaDeviceVariable<uint3>)
Synchron copy device to host
Declaration
public void SynchronCopyToHost(CudaDeviceVariable<uint3> devicePtr)
Parameters
Type | Name | Description |
---|---|---|
CudaDeviceVariable<uint3> | devicePtr |
Explicit Interface Implementations
| Improve this Doc View SourceIEnumerable<uint3>.GetEnumerator()
Declaration
IEnumerator<uint3> IEnumerable<uint3>.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<uint3> |
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |