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.

122 Module Documentation3.24.2.3 CUresult cuFuncSetSharedSize (CUfunction func, unsigned int bytes)Sets through bytes the amount of dynamic shared memory that will be available to each thread block when the kernelgiven by func is launched.Parameters:func - Kernel to specify dynamic shared-memory size forbytes - Dynamic shared-memory size per thread in bytesReturns: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_HANDLE, <strong>CUDA</strong>_ERROR_INVALID_VALUESee also:Note that this function may also return error codes from previous, asynchronous launches.cuFuncSetBlockShape, cuFuncGetAttribute, cuParamSetSize, cuParamSeti, cuParamSetf, cuParamSetv, cu-ParamSetTexRef, cuLaunch, cuLaunchGrid, cuLaunchGridAsync3.24.2.4 CUresult cuLaunch (CUfunction func)Invokes the kernel func on a 1 x 1 x 1 grid of blocks. The block contains the number of threads specified by aprevious call to cuFuncSetBlockShape().Parameters:func - Kernel to launchReturns: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, cuLaunchGrid, cuLaunchGridAsync3.24.2.5 CUresult cuLaunchGrid (CUfunction func, int grid_width, int grid_height)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().Parameters:func - Kernel to launchGenerated 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!