hipLaunchKernel

Function hipLaunchKernel 

Source
pub unsafe extern "C" fn hipLaunchKernel(
    function_address: *const c_void,
    numBlocks: dim3,
    dimBlocks: dim3,
    args: *mut *mut c_void,
    sharedMemBytes: usize,
    stream: hipStream_t,
) -> hipError_t
Expand description

@brief C compliant kernel launch API

@param [in] function_address - Kernel stub function pointer. @param [in] numBlocks - Number of blocks. @param [in] dimBlocks - Dimension of a block @param [in] args - Pointer of arguments passed to the kernel. If the kernel has multiple parameters, ‘args’ should be array of pointers, each points the corresponding argument. @param [in] sharedMemBytes - Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations. @param [in] stream - Stream where the kernel should be dispatched. May be 0, in which case th default stream is used with associated synchronization rules.

@returns #hipSuccess, #hipErrorInvalidValue