11.01.2014 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

144 Module Documentation<br />

4.29.2.3 cuFuncSetSharedSize (CUfunction hfunc, unsigned int bytes)<br />

Sets through bytes the amount of dynamic shared memory that will be available to each thread block when the kernel<br />

given by hfunc is launched.<br />

Parameters:<br />

hfunc - Kernel to specify dynamic shared-memory size for<br />

bytes - Dynamic shared-memory size per thread in bytes<br />

Returns:<br />

Note:<br />

<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-<br />

ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_HANDLE, <strong>CUDA</strong>_ERROR_INVALID_VALUE<br />

See also:<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cuFuncSetBlockShape, cuFuncGetAttribute, cuParamSetSize, cuParamSeti, cuParamSetf, cuParamSetv, cu-<br />

ParamSetTexRef, cuLaunch, cuLaunchGrid, cuLaunchGridAsync<br />

4.29.2.4 cuLaunch (CUfunction f)<br />

Invokes the kernel f on a 1 x 1 x 1 grid of blocks. The block contains the number of threads specified by a previous<br />

call to cuFuncSetBlockShape().<br />

Parameters:<br />

f - Kernel to launch<br />

Returns:<br />

Note:<br />

<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-<br />

ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_LAUNCH_FAILED,<br />

<strong>CUDA</strong>_ERROR_LAUNCH_OUT_OF_RESOURCES, <strong>CUDA</strong>_ERROR_LAUNCH_TIMEOUT, <strong>CUDA</strong>_-<br />

ERROR_LAUNCH_INCOMPATIBLE_TEXTURING<br />

See also:<br />

Note that this function may also return error codes from previous, asynchronous launches.<br />

cuFuncSetBlockShape, cuFuncSetSharedSize, cuFuncGetAttribute, cuParamSetSize, cuParamSetf, cuParamSeti,<br />

cuParamSetv, cuParamSetTexRef, cuLaunchGrid, cuLaunchGridAsync<br />

4.29.2.5 cuLaunchGrid (CUfunction f, int grid_width, int grid_height)<br />

Invokes the kernel f on a grid_width x grid_height grid of blocks. Each block contains the number of threads<br />

specified by a previous call to cuFuncSetBlockShape().<br />

Generated 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!