12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.24 Execution Control 125Returns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUESee also:Note that this function may also return error codes from previous, asynchronous launches.cuFuncSetBlockShape, cuFuncSetSharedSize, cuFuncGetAttribute, cuParamSetf, cuParamSeti, cuParamSetv, cu-ParamSetTexRef, cuLaunch, cuLaunchGrid, cuLaunchGridAsync3.24.2.10 CUresult cuParamSetTexRef (CUfunction func, int texunit, CUtexref pTexRef)Makes the <strong>CUDA</strong> array or linear memory bound to the texture reference pTexRef available to a device program as atexture. In this version of <strong>CUDA</strong>, the texture-reference must be obtained via cuModuleGetTexRef() and the texunitparameter must be set to CU_PARAM_TR_DEFAULT.Parameters:func - Kernel to add texture-reference totexunit - Texture unit (must be CU_PARAM_TR_DEFAULT)pTexRef - Texture-reference to add to argument listReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUESee also:Note that this function may also return error codes from previous, asynchronous launches.cuFuncSetBlockShape, cuFuncSetSharedSize, cuFuncGetAttribute, cuParamSetSize, cuParamSetf, cuParamSeti,cuParamSetv, cuLaunch, cuLaunchGrid, cuLaunchGridAsync3.24.2.11 CUresult cuParamSetv (CUfunction func, int offset, void ∗ ptr, unsigned int numbytes)Copies an arbitrary amount of data (specified in numbytes) from ptr into the parameter space of the kernel correspondingto func. offset is a byte offset.Parameters:func - Kernel to add data tooffset - Offset to add data to argument listptr - Pointer to arbitrary datanumbytes - Size of data to copy in bytesGenerated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!