hiplaunchcooperativekernel Interface Reference#
hipfort::hiplaunchcooperativekernel Interface Reference
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra, where thread blocks can cooperate and synchronize as they execute More...
Public Member Functions | |
integer(kind(hipsuccess)) function | hiplaunchcooperativekernel_ (f, gridDim, blockDimX, kernelParams, sharedMemBytes, stream) |
Detailed Description
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelparams or extra, where thread blocks can cooperate and synchronize as they execute
- Parameters
-
[in] f Kernel to launch. [in] gridDim Grid dimensions specified as multiple of blockDim. [in] blockDim Block dimensions specified in work-items [in] kernelParams A list of kernel arguments [in] sharedMemBytes Amount of dynamic shared memory to allocate for this kernel. The HIP-Clang compiler provides support for extern shared declarations. [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, hipInvalidDevice, hipErrorNotInitialized, hipErrorInvalidValue, hipErrorCooperativeLaunchTooLarge
Member Function/Subroutine Documentation
◆ hiplaunchcooperativekernel_()
integer(kind(hipsuccess)) function hipfort::hiplaunchcooperativekernel::hiplaunchcooperativekernel_ | ( | type(c_ptr), value | f, |
type(dim3), value | gridDim, | ||
type(dim3), value | blockDimX, | ||
type(c_ptr) | kernelParams, | ||
integer(c_int), value | sharedMemBytes, | ||
type(c_ptr), value | stream | ||
) |
The documentation for this interface was generated from the following file: