Class CudaArray1D
An one dimensional CUDA array
Inheritance
Implements
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public class CudaArray1D : IDisposable
Constructors
| Improve this Doc View SourceCudaArray1D(CUarray)
Creates a new CUDA array from an existing CUarray. The CUarray won't be destroyed when disposing. Array properties are obtained by cuArrayGetDescriptor
Declaration
public CudaArray1D(CUarray cuArray)
Parameters
| Type | Name | Description |
|---|---|---|
| CUarray | cuArray |
CudaArray1D(CUarray, Boolean)
Creates a new CUDA array from an existing CUarray. Array properties are obtained by cuArrayGetDescriptor
Declaration
public CudaArray1D(CUarray cuArray, bool isOwner)
Parameters
| Type | Name | Description |
|---|---|---|
| CUarray | cuArray | |
| System.Boolean | isOwner | The cuArray will be destroyed while disposing, if the CudaArray is the owner |
CudaArray1D(CUArrayFormat, SizeT, CudaArray1DNumChannels)
Creates a new CUDA array.
Declaration
public CudaArray1D(CUArrayFormat format, SizeT size, CudaArray1DNumChannels numChannels)
Parameters
| Type | Name | Description |
|---|---|---|
| CUArrayFormat | format | |
| SizeT | size | |
| CudaArray1DNumChannels | numChannels |
Properties
| Improve this Doc View SourceArrayDescriptor
Returns the wrapped CUDAArrayDescriptor
Declaration
public CUDAArrayDescriptor ArrayDescriptor { get; }
Property Value
| Type | Description |
|---|---|
| CUDAArrayDescriptor |
CUArray
Returns the wrapped CUarray
Declaration
public CUarray CUArray { get; }
Property Value
| Type | Description |
|---|---|
| CUarray |
IsOwner
If the wrapper class instance is the owner of a CUDA handle, it will be destroyed while disposing.
Declaration
public bool IsOwner { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Width
Returns the array width in elements
Declaration
public SizeT Width { get; }
Property Value
| Type | Description |
|---|---|
| SizeT |
WidthInBytes
Returns the array width in bytes
Declaration
public SizeT WidthInBytes { get; }
Property Value
| Type | Description |
|---|---|
| SizeT |
Methods
| Improve this Doc View SourceCopyFromArray1DToArray1D(CudaArray1D, CudaArray1D, SizeT, SizeT, SizeT)
Copy data from array to array
Declaration
public static void CopyFromArray1DToArray1D(CudaArray1D dest, CudaArray1D source, SizeT aBytesToCopy, SizeT destOffset, SizeT sourceOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaArray1D | dest | Destination array |
| CudaArray1D | source | source array |
| SizeT | aBytesToCopy | Size of memory copy in bytes |
| SizeT | destOffset | Offset in bytes of destination array |
| SizeT | sourceOffset | Offset in bytes of source array |
CopyFromArray1DToDevice(CUdeviceptr, SizeT, SizeT)
Copy data from array to device
Declaration
public void CopyFromArray1DToDevice(CUdeviceptr dest, SizeT aBytesToCopy, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | dest | DevicePointer to copy data to |
| SizeT | aBytesToCopy | number of bytes to copy |
| SizeT | offsetInBytes | Offset in bytes of source array |
CopyFromArray1DToHost(char1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(char1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(char2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(char2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(char3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(char3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(char4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(char4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(cuDoubleComplex[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(cuDoubleComplex[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuDoubleComplex[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(cuDoubleReal[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(cuDoubleReal[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuDoubleReal[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(cuFloatComplex[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(cuFloatComplex[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuFloatComplex[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(cuFloatReal[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(cuFloatReal[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuFloatReal[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(dim3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(dim3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| dim3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(double1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(double1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| double1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(double2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(double2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| double2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(float1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(float1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(float2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(float2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(float3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(float3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(float4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(float4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(int1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(int1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(int2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(int2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(int3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(int3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(int4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(int4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(long1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(long1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(long2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(long2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(long3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(long3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(long4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(long4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(short1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(short1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(short2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(short2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(short3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(short3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(short4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(short4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uchar1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uchar1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uchar2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uchar2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uchar3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uchar3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uchar4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uchar4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uint1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uint1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uint2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uint2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uint3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uint3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(uint4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uint4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ulong1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ulong1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ulong2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ulong2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ulong3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ulong3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ulong4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ulong4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ushort1[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ushort1[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort1[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ushort2[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ushort2[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort2[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ushort3[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ushort3[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort3[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(ushort4[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ushort4[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort4[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(Byte[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(byte[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(Double[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(double[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(Int16[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(short[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int16[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(Int32[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(int[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(Int64[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(long[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(IntPtr, UInt32, SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(IntPtr dest, uint sizeInBytes, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | dest | Pointer to Destination data |
| System.UInt32 | sizeInBytes | Number of bytes to copy |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(SByte[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(sbyte[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.SByte[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(Single[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(float[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(UInt16[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ushort[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt16[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(UInt32[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(uint[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost(UInt64[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost(ulong[] dest, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt64[] | dest | Destination array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromArray1DToHost<T>(ref T, SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost<T>(ref T dest, SizeT offsetInBytes)
where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| T | dest | Destination pointer to host memory |
| SizeT | offsetInBytes | Offset in bytes of destination array |
Type Parameters
| Name | Description |
|---|---|
| T | T must be of value type, i.e. a struct |
CopyFromArray1DToHost<T>(T[], SizeT)
Copy data from array to host memory
Declaration
public void CopyFromArray1DToHost<T>(T[] dest, SizeT offsetInBytes)
where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | dest | Destination pointer to host memory |
| SizeT | offsetInBytes | Offset in bytes of destination array |
Type Parameters
| Name | Description |
|---|---|
| T | T must be of value type, i.e. a struct |
CopyFromArray1DToThis(CudaArray1D, SizeT, SizeT, SizeT)
Copy data from array to array
Declaration
public void CopyFromArray1DToThis(CudaArray1D source, SizeT aBytesToCopy, SizeT destOffset, SizeT sourceOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaArray1D | source | Destination array |
| SizeT | aBytesToCopy | Size of memory copy in bytes |
| SizeT | destOffset | Offset in bytes of destination array |
| SizeT | sourceOffset | Offset in bytes of source array |
CopyFromDeviceToArray1D(CUdeviceptr, SizeT, SizeT)
Copy data from device to array
Declaration
public void CopyFromDeviceToArray1D(CUdeviceptr source, SizeT aBytesToCopy, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| CUdeviceptr | source | DevicePointer to copy data from |
| SizeT | aBytesToCopy | number of bytes to copy |
| SizeT | offsetInBytes | Offset in bytes of source array |
CopyFromHostToArray1D(char1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(char1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(char2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(char2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(char3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(char3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(char4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(char4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| char4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(cuDoubleComplex[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(cuDoubleComplex[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuDoubleComplex[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(cuDoubleReal[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(cuDoubleReal[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuDoubleReal[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(cuFloatComplex[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(cuFloatComplex[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuFloatComplex[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(cuFloatReal[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(cuFloatReal[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| cuFloatReal[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(dim3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(dim3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| dim3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(double1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(double1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| double1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(double2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(double2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| double2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(float1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(float1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(float2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(float2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(float3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(float3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(float4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(float4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| float4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(int1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(int1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(int2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(int2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(int3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(int3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(int4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(int4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| int4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(long1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(long1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(long2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(long2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(long3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(long3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(long4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(long4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| long4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(short1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(short1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(short2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(short2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(short3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(short3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(short4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(short4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| short4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uchar1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uchar1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uchar2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uchar2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uchar3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uchar3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uchar4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uchar4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uchar4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uint1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uint1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uint2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uint2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uint3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uint3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(uint4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uint4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| uint4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ulong1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ulong1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ulong2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ulong2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ulong3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ulong3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ulong4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ulong4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ushort1[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ushort1[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort1[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ushort2[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ushort2[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort2[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ushort3[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ushort3[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort3[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(ushort4[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ushort4[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort4[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(Byte[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(byte[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(Double[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(double[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(Int16[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(short[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int16[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(Int32[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(int[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(Int64[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(long[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int64[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(IntPtr, SizeT, SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(IntPtr source, SizeT sizeInBytes, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.IntPtr | source | Pointer to source data |
| SizeT | sizeInBytes | Number of bytes to copy |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(SByte[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(sbyte[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.SByte[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(Single[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(float[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(UInt16[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ushort[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt16[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(UInt32[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(uint[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt32[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D(UInt64[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D(ulong[] source, SizeT offsetInBytes)
Parameters
| Type | Name | Description |
|---|---|---|
| System.UInt64[] | source | source array |
| SizeT | offsetInBytes | Offset in bytes of destination array |
CopyFromHostToArray1D<T>(T, SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D<T>(T source, SizeT offsetInBytes)
where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| T | source | source pointer to host memory |
| SizeT | offsetInBytes | Offset in bytes of destination array |
Type Parameters
| Name | Description |
|---|---|
| T | T must be of value type, i.e. a struct |
CopyFromHostToArray1D<T>(T[], SizeT)
Copy data from host to array memory
Declaration
public void CopyFromHostToArray1D<T>(T[] source, SizeT offsetInBytes)
where T : struct
Parameters
| Type | Name | Description |
|---|---|---|
| T[] | source | source pointer to host memory |
| SizeT | offsetInBytes | Offset in bytes of destination array |
Type Parameters
| Name | Description |
|---|---|
| T | T must be of value type, i.e. a struct |
CopyFromThisToArray1D(CudaArray1D, SizeT, SizeT, SizeT)
Copy data from array to array
Declaration
public void CopyFromThisToArray1D(CudaArray1D dest, SizeT aBytesToCopy, SizeT destOffset, SizeT sourceOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| CudaArray1D | dest | Destination array |
| SizeT | aBytesToCopy | Size of memory copy in bytes |
| SizeT | destOffset | Offset in bytes of destination array |
| SizeT | sourceOffset | Offset in bytes of source array |
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()