hipstreamaddcallback Interface Reference

hipstreamaddcallback Interface Reference#

HIPFORT API Reference: hipfort::hipstreamaddcallback Interface Reference
hipfort::hipstreamaddcallback Interface Reference

Adds a callback to be called on the host after all currently enqueued items in the stream have completed. More...

Public Member Functions

integer(kind(hipsuccess)) function hipstreamaddcallback_ (stream, callback, userData, flags)
 

Detailed Description

Adds a callback to be called on the host after all currently enqueued items in the stream have completed.

For each hipStreamAddCallback call, a callback will be executed exactly once. The callback will block later work in the stream until it is finished.

Parameters
[in]stream- Stream to add callback to
[in]callback- The function to call once preceding stream operations are complete
[in]userData- User specified data to be passed to the callback function
[in]flags- Reserved for future use, must be 0
Returns
hipSuccess, hipErrorInvalidHandle, hipErrorNotSupported
See also
hipStreamCreate, hipStreamCreateWithFlags, hipStreamQuery, hipStreamSynchronize, hipStreamWaitEvent, hipStreamDestroy, hipStreamCreateWithPriority

Member Function/Subroutine Documentation

◆ hipstreamaddcallback_()

integer(kind(hipsuccess)) function hipfort::hipstreamaddcallback::hipstreamaddcallback_ ( type(c_ptr), value  stream,
type(c_funptr), value  callback,
type(c_ptr), value  userData,
integer(c_int), value  flags 
)

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