12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

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

Create successful ePaper yourself

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

3.24 Execution Control 123grid_width - Width of grid in blocksgrid_height - Height of grid in blocksReturns: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_VALUE, <strong>CUDA</strong>_ERROR_LAUNCH_-INCOMPATIBLE_TEXTURINGSee also:Note that this function may also return error codes from previous, asynchronous launches.cuFuncSetBlockShape, cuFuncSetSharedSize, cuFuncGetAttribute, cuParamSetSize, cuParamSetf, cuParamSeti,cuParamSetv, cuParamSetTexRef, cuLaunch, cuLaunchGridAsync3.24.2.6 CUresult cuLaunchGridAsync (CUfunction func, int grid_width, int grid_height, CUstreamhStream)Invokes the kernel func on a grid_width x grid_height grid of blocks. Each block contains the number ofthreads specified by a previous call to cuFuncSetBlockShape().cuLaunchGridAsync() can optionally be associated to a stream by passing a non-zero hStream argument.Parameters:func - Kernel to launchgrid_width - Width of grid in blocksgrid_height - Height of grid in blockshStream - Stream identifierReturns: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_VALUE, <strong>CUDA</strong>_ERROR_LAUNCH_-INCOMPATIBLE_TEXTURINGSee also:Note that this function may also return error codes from previous, asynchronous launches.cuFuncSetBlockShape, cuFuncSetSharedSize, cuFuncGetAttribute, cuParamSetSize, cuParamSetf, cuParamSeti,cuParamSetv, cuParamSetTexRef, cuLaunch, cuLaunchGrid3.24.2.7 CUresult cuParamSetf (CUfunction func, int offset, float value)Sets a floating-point parameter that will be specified the next time the kernel corresponding to func will be invoked.offset is a byte offset.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!