6.27. 表面引用管理 [已弃用]
本节介绍底层CUDA驱动程序应用程序编程接口的表面引用管理功能。
Functions
- CUresult cuSurfRefGetArray ( CUarray* phArray, CUsurfref hSurfRef )
- Passes back the CUDA array bound to a surface reference.
- CUresult cuSurfRefSetArray ( CUsurfref hSurfRef, CUarray hArray, unsigned int Flags )
- Sets the CUDA array for a surface reference.
Functions
- CUresult cuSurfRefGetArray ( CUarray* phArray, CUsurfref hSurfRef )
-
返回绑定到表面引用的CUDA数组。
参数
- phArray
- - Surface reference handle
- hSurfRef
- - Surface reference handle
返回
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
已弃用
描述
Returns in *phArray the CUDA array bound to the surface reference hSurfRef, or returns CUDA_ERROR_INVALID_VALUE if the surface reference is not bound to any CUDA array.另请参阅:
- CUresult cuSurfRefSetArray ( CUsurfref hSurfRef, CUarray hArray, unsigned int Flags )
-
为表面引用设置CUDA数组。
参数
- hSurfRef
- - Surface reference handle
- hArray
- - CUDA array handle
- Flags
- - set to 0
返回
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
已弃用
描述
Sets the CUDA array hArray to be read and written by the surface reference hSurfRef. Any previous CUDA array state associated with the surface reference is superseded by this function. Flags must be set to 0. The CUDA_ARRAY3D_SURFACE_LDST flag must have been set for the CUDA array. Any CUDA array previously bound to hSurfRef is unbound.另请参阅: