GPUOcelot
Functions

Execution Control [DEPRECATED]

Execution Control
Collaboration diagram for Execution Control [DEPRECATED]:

Functions

CUresult CUDAAPI cuParamSetTexRef (CUfunction hfunc, int texunit, CUtexref hTexRef)
 Adds a texture-reference to the function's argument list.

Detailed Description

This section describes the deprecated execution control functions of the low-level CUDA driver application programming interface.


Function Documentation

CUresult CUDAAPI cuParamSetTexRef ( CUfunction  hfunc,
int  texunit,
CUtexref  hTexRef 
)

Adds a texture-reference to the function's argument list.

Deprecated:

Makes the CUDA array or linear memory bound to the texture reference hTexRef available to a device program as a texture. In this version of CUDA, the texture-reference must be obtained via cuModuleGetTexRef() and the texunit parameter must be set to CU_PARAM_TR_DEFAULT.

Parameters:
hfunc- Kernel to add texture-reference to
texunit- Texture unit (must be CU_PARAM_TR_DEFAULT)
hTexRef- Texture-reference to add to argument list
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
Deprecated:

Makes the CUDA array or linear memory bound to the texture reference hTexRef available to a device program as a texture. In this version of CUDA, the texture-reference must be obtained via cuModuleGetTexRef() and the texunit parameter must be set to CU_PARAM_TR_DEFAULT.

Parameters:
hfunc- Kernel to add texture-reference to
texunit- Texture unit (must be CU_PARAM_TR_DEFAULT)
hTexRef- Texture-reference to add to argument list
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines