HIP: Heterogenous-computing Interface for Portability
Functions
Launch API to support the triple-chevron syntax

Functions

hipError_t hipConfigureCall (dim3 gridDim, dim3 blockDim, size_t sharedMem __dparm(0), hipStream_t stream __dparm(0))
 Configure a kernel launch. More...
 
hipError_t hipSetupArgument (const void *arg, size_t size, size_t offset)
 Set a kernel argument. More...
 
hipError_t hipLaunchByPtr (const void *func)
 Launch a kernel. More...
 

Detailed Description

----------------------------------------------------------------------------------------------—

Function Documentation

◆ hipConfigureCall()

hipError_t hipConfigureCall ( dim3  gridDim,
dim3  blockDim,
size_t sharedMem   __dparm0,
hipStream_t stream   __dparm
)

Configure a kernel launch.

Parameters
[in]gridDimgrid dimension specified as multiple of blockDim.
[in]blockDimblock dimensions specified in work-items
[in]sharedMemAmount of dynamic shared memory to allocate for this kernel. The kernel can access this with HIP_DYNAMIC_SHARED.
[in]streamStream where the kernel should be dispatched. May be 0, in which case the default stream is used with associated synchronization rules.
Returns
hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue

◆ hipLaunchByPtr()

hipError_t hipLaunchByPtr ( const void *  func)

Launch a kernel.

Parameters
[in]funcKernel to launch.
Returns
hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue

◆ hipSetupArgument()

hipError_t hipSetupArgument ( const void *  arg,
size_t  size,
size_t  offset 
)

Set a kernel argument.

Returns
hipSuccess, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue
Parameters
[in]argPointer the argument in host memory.
[in]sizeSize of the argument.
[in]offsetOffset of the argument on the argument stack.