hipoccupancyavailabledynamicsmemperblock Interface Reference

hipoccupancyavailabledynamicsmemperblock Interface Reference#

HIPFORT API Reference: hipfort::hipoccupancyavailabledynamicsmemperblock Interface Reference
hipfort::hipoccupancyavailabledynamicsmemperblock Interface Reference

Returns dynamic shared memory available per block when launching numBlocks blocks on SM. More...

Public Member Functions

integer(kind(hipsuccess)) function hipoccupancyavailabledynamicsmemperblock_ (dynamicsmemsize, f, numblocks, blocksize)
 

Detailed Description

Returns dynamic shared memory available per block when launching numBlocks blocks on SM.

Returns in *dynamicSmemSize the maximum size of dynamic shared memory / to allow numBlocks blocks per SM.

Parameters
[out]dynamicSmemSizeReturned maximum dynamic shared memory.
[in]fKernel function for which occupancy is calculated.
[in]numBlocksNumber of blocks to fit on SM
[in]blockSizeSize of the block
Returns
hipSuccess, hipErrorInvalidDevice, hipErrorInvalidDeviceFunction, hipErrorInvalidValue, hipErrorUnknown

Member Function/Subroutine Documentation

◆ hipoccupancyavailabledynamicsmemperblock_()

integer(kind(hipsuccess)) function hipfort::hipoccupancyavailabledynamicsmemperblock::hipoccupancyavailabledynamicsmemperblock_ ( type(c_ptr), value  dynamicsmemsize,
type(c_ptr), value  f,
integer(c_int), value  numblocks,
integer(c_int), value  blocksize 
)

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