hipoccupancymaxpotentialblocksize Interface Reference

hipoccupancymaxpotentialblocksize Interface Reference#

HIPFORT API Reference: hipfort::hipoccupancymaxpotentialblocksize Interface Reference
hipfort::hipoccupancymaxpotentialblocksize Interface Reference

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

Public Member Functions

integer(kind(hipsuccess)) function hipoccupancymaxpotentialblocksize_ (gridSize, blockSize, f, dynSharedMemPerBlk, blockSizeLimit)
 

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
Returns
hipSuccess, hipInvalidDevice, hipErrorInvalidValue

Member Function/Subroutine Documentation

◆ hipoccupancymaxpotentialblocksize_()

integer(kind(hipsuccess)) function hipfort::hipoccupancymaxpotentialblocksize::hipoccupancymaxpotentialblocksize_ ( type(c_ptr), value  gridSize,
type(c_ptr), value  blockSize,
type(c_ptr), value  f,
integer(c_size_t), value  dynSharedMemPerBlk,
integer(c_int), value  blockSizeLimit 
)

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