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.

146 Module Documentation<br />

4.29.2.7 cuParamSetf (CUfunction hfunc, int offset, float value)<br />

Sets a floating-point parameter that will be specified the next time the kernel corresponding to hfunc will be invoked.<br />

offset is a byte offset.<br />

Parameters:<br />

hfunc - Kernel to add parameter to<br />

offset - Offset to add parameter to argument list<br />

value - Value of parameter<br />

Returns:<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<br />

Note:<br />

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

See also:<br />

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

cuParamSetTexRef, cuLaunch, cuLaunchGrid, cuLaunchGridAsync<br />

4.29.2.8 cuParamSeti (CUfunction hfunc, int offset, unsigned int value)<br />

Sets an integer parameter that will be specified the next time the kernel corresponding to hfunc will be invoked.<br />

offset is a byte offset.<br />

Parameters:<br />

hfunc - Kernel to add parameter to<br />

offset - Offset to add parameter to argument list<br />

value - Value of parameter<br />

Returns:<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<br />

Note:<br />

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

See also:<br />

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

cuParamSetTexRef, cuLaunch, cuLaunchGrid, cuLaunchGridAsync<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!