hipmoduleoccupancymaxpotentialblocksizewithflags Interface Reference

hipmoduleoccupancymaxpotentialblocksizewithflags Interface Reference#

HIPFORT API Reference: hipfort::hipmoduleoccupancymaxpotentialblocksizewithflags Interface Reference
hipfort::hipmoduleoccupancymaxpotentialblocksizewithflags Interface Reference

determine the grid and block sizes to achieves maximum occupancy for a kernel More...

Public Member Functions

integer(kind(hipsuccess)) function hipmoduleoccupancymaxpotentialblocksizewithflags_ (gridsize, blocksize, f, dynsharedmemperblk, blocksizelimit, flags)
 

Detailed Description

determine the grid and block sizes to achieves maximum occupancy for a kernel

Parameters
[out]gridSizeminimum grid size for maximum potential occupancy
[out]blockSizeblock size for maximum potential occupancy
[in]fkernel function for which occupancy is calulated
[in]dynSharedMemPerBlkdynamic shared memory usage (in bytes) intended for each block
[in]blockSizeLimitthe maximum block size for the kernel, use 0 for no limit
[in]flagsExtra flags for occupancy calculation (only default supported)

Please note, HIP does not support kernel launch with total work items defined in dimension with size gridDim x blockDim >= 2^32.

Returns
hipSuccess, hipErrorInvalidValue

Member Function/Subroutine Documentation

◆ hipmoduleoccupancymaxpotentialblocksizewithflags_()

integer(kind(hipsuccess)) function hipfort::hipmoduleoccupancymaxpotentialblocksizewithflags::hipmoduleoccupancymaxpotentialblocksizewithflags_ ( integer(c_int)  gridsize,
integer(c_int)  blocksize,
type(c_ptr), value  f,
integer(c_size_t), value  dynsharedmemperblk,
integer(c_int), value  blocksizelimit,
integer(c_int), value  flags 
)

The documentation for this interface was generated from the following file: