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.

120 Module Documentation3.24 Execution ControlFunctions• CUresult cuFuncGetAttribute (int ∗pi, CUfunction_attribute attrib, CUfunction func)Returns information about a function.• CUresult cuFuncSetBlockShape (CUfunction func, int x, int y, int z)Sets the block-dimensions for the function.• CUresult cuFuncSetSharedSize (CUfunction func, unsigned int bytes)Sets the dynamic shared-memory size for the function.• CUresult cuLaunch (CUfunction func)Launches a <strong>CUDA</strong> function.• CUresult cuLaunchGrid (CUfunction func, int grid_width, int grid_height)Launches a <strong>CUDA</strong> function.• CUresult cuLaunchGridAsync (CUfunction func, int grid_width, int grid_height, CUstream hStream)Launches a <strong>CUDA</strong> function.• CUresult cuParamSetf (CUfunction func, int offset, float value)Adds a floating-point parameter to the function’s argument list.• CUresult cuParamSeti (CUfunction func, int offset, unsigned int value)Adds an integer parameter to the function’s argument list.• CUresult cuParamSetSize (CUfunction func, unsigned int numbytes)Sets the parameter size for the function.• CUresult cuParamSetTexRef (CUfunction func, int texunit, CUtexref pTexRef)Adds a texture-reference to the function’s argument list.• CUresult cuParamSetv (CUfunction func, int offset, void ∗ptr, unsigned int numbytes)Adds arbitrary data to the function’s argument list.3.24.1 Detailed DescriptionThis section describes the execution control functions of the low-level <strong>CUDA</strong> driver application programming interface.3.24.2 Function Documentation3.24.2.1 CUresult cuFuncGetAttribute (int ∗ pi, CUfunction_attribute attrib, CUfunction func)Returns in ∗pi the integer value of the attribute attrib on the kernel given by func. The supported attributes are:Generated 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!