Class DriverAPINativeMethods.ArrayManagement
Combines all array management API calls
Inheritance
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public static class ArrayManagement
Methods
cuArray3DCreate_v2(ref CUarray, ref CUDAArray3DDescriptor)
Creates a CUDA array according to the CUDAArray3DDescriptor structure pAllocateArray and returns
a handle to the new CUDA array in pHandle.
Declaration
public static CUResult cuArray3DCreate_v2(ref CUarray pHandle, ref CUDAArray3DDescriptor pAllocateArray)
Parameters
| Type | Name | Description |
|---|---|---|
| CUarray | pHandle | Returned array |
| CUDAArray3DDescriptor | pAllocateArray | 3D array descriptor |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue, ErrorOutOfMemory, ErrorUnknown.
|
cuArray3DGetDescriptor_v2(ref CUDAArray3DDescriptor, CUarray)
Returns in pArrayDescriptor a descriptor containing information on the format and dimensions of the CUDA
array hArray. It is useful for subroutines that have been passed a CUDA array, but need to know the CUDA array
parameters for validation or other purposes.
This function may be called on 1D and 2D arrays, in which case the Height and/or Depth members of the descriptor struct will be set to 0.
Declaration
public static CUResult cuArray3DGetDescriptor_v2(ref CUDAArray3DDescriptor pArrayDescriptor, CUarray hArray)
Parameters
| Type | Name | Description |
|---|---|---|
| CUDAArray3DDescriptor | pArrayDescriptor | Returned 3D array descriptor |
| CUarray | hArray | 3D array to get descriptor of |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue, ErrorInvalidHandle.
|
cuArrayCreate_v2(ref CUarray, ref CUDAArrayDescriptor)
Creates a CUDA array according to the CUDAArrayDescriptor structure pAllocateArray and returns a
handle to the new CUDA array in pHandle.
Declaration
public static CUResult cuArrayCreate_v2(ref CUarray pHandle, ref CUDAArrayDescriptor pAllocateArray)
Parameters
| Type | Name | Description |
|---|---|---|
| CUarray | pHandle | Returned array |
| CUDAArrayDescriptor | pAllocateArray | Array descriptor |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue, ErrorOutOfMemory, ErrorUnknown.
|
cuArrayDestroy(CUarray)
Destroys the CUDA array hArray.
Declaration
public static CUResult cuArrayDestroy(CUarray hArray)
Parameters
| Type | Name | Description |
|---|---|---|
| CUarray | hArray | Array to destroy |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidHandle, ErrorArrayIsMapped.
|
cuArrayGetDescriptor_v2(ref CUDAArrayDescriptor, CUarray)
Returns in pArrayDescriptor a descriptor containing information on the format and dimensions of the CUDA
array hArray. It is useful for subroutines that have been passed a CUDA array, but need to know the CUDA array
parameters for validation or other purposes.
Declaration
public static CUResult cuArrayGetDescriptor_v2(ref CUDAArrayDescriptor pArrayDescriptor, CUarray hArray)
Parameters
| Type | Name | Description |
|---|---|---|
| CUDAArrayDescriptor | pArrayDescriptor | Returned array descriptor |
| CUarray | hArray | Array to get descriptor of |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized,
ErrorInvalidContext, ErrorInvalidValue, ErrorInvalidHandle.
|
cuMipmappedArrayCreate(ref CUmipmappedArray, ref CUDAArray3DDescriptor, UInt32)
Creates a CUDA mipmapped array according to the ::CUDA_ARRAY3D_DESCRIPTOR structure
pMipmappedArrayDesc and returns a handle to the new CUDA mipmapped array in pHandle.
numMipmapLevels specifies the number of mipmap levels to be allocated. This value is
clamped to the range [1, 1 + floor(log2(max(width, height, depth)))].
Declaration
public static CUResult cuMipmappedArrayCreate(ref CUmipmappedArray pHandle, ref CUDAArray3DDescriptor pMipmappedArrayDesc, uint numMipmapLevels)
Parameters
| Type | Name | Description |
|---|---|---|
| CUmipmappedArray | pHandle | Returned mipmapped array |
| CUDAArray3DDescriptor | pMipmappedArrayDesc | mipmapped array descriptor |
| System.UInt32 | numMipmapLevels | Number of mipmap levels |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized, ErrorInvalidContext, ErrorInvalidValue, ErrorOutOfMemory, ErrorUnknown. |
cuMipmappedArrayDestroy(CUmipmappedArray)
Destroys the CUDA mipmapped array hMipmappedArray.
Declaration
public static CUResult cuMipmappedArrayDestroy(CUmipmappedArray hMipmappedArray)
Parameters
| Type | Name | Description |
|---|---|---|
| CUmipmappedArray | hMipmappedArray | Mipmapped array to destroy |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized, ErrorInvalidContext, ErrorInvalidValue, ErrorInvalidHandle. |
cuMipmappedArrayGetLevel(ref CUarray, CUmipmappedArray, UInt32)
Returns in pLevelArray a CUDA array that represents a single mipmap level
of the CUDA mipmapped array hMipmappedArray.
Declaration
public static CUResult cuMipmappedArrayGetLevel(ref CUarray pLevelArray, CUmipmappedArray hMipmappedArray, uint level)
Parameters
| Type | Name | Description |
|---|---|---|
| CUarray | pLevelArray | Returned mipmap level CUDA array |
| CUmipmappedArray | hMipmappedArray | CUDA mipmapped array |
| System.UInt32 | level | Mipmap level |
Returns
| Type | Description |
|---|---|
| CUResult | CUDA Error Codes: Success, ErrorDeinitialized, ErrorNotInitialized, ErrorInvalidContext, ErrorInvalidValue, ErrorInvalidHandle. |