hipeventcreatewithflags Interface Reference

hipeventcreatewithflags Interface Reference#

HIPFORT API Reference: hipfort::hipeventcreatewithflags Interface Reference
hipfort::hipeventcreatewithflags Interface Reference

Create an event with the specified flags. More...

Public Member Functions

integer(kind(hipsuccess)) function hipeventcreatewithflags_ (event, flags)
 

Detailed Description

Create an event with the specified flags.



Parameters
[out]event- Returns the newly created event.
[in]flags- Flags to control event behavior. Valid values are hipEventDefault, hipEventBlockingSync, hipEventDisableTiming, hipEventInterprocess hipEventDefault : Default flag. The event will use active synchronization and will support timing. Blocking synchronization provides lowest possible latency at the expense of dedicating a CPU to poll on the event. hipEventBlockingSync : The event will use blocking synchronization : if hipEventSynchronize is called on this event, the thread will block until the event completes. This can increase latency for the synchroniation but can result in lower power and more resources for other CPU threads. hipEventDisableTiming : Disable recording of timing information. Events created with this flag would not record profiling data and provide best performance if used for synchronization. hipEventInterprocess : The event can be used as an interprocess event. hipEventDisableTiming flag also must be set when hipEventInterprocess flag is set. hipEventDisableSystemFence : Disable acquire and release system scope fence. This may improve performance but device memory may not be visible to the host and other devices if this flag is set.
Returns
hipSuccess, hipErrorNotInitialized, hipErrorInvalidValue, hipErrorLaunchFailure, hipErrorOutOfMemory
See also
hipEventCreate, hipEventSynchronize, hipEventDestroy, hipEventElapsedTime

Member Function/Subroutine Documentation

◆ hipeventcreatewithflags_()

integer(kind(hipsuccess)) function hipfort::hipeventcreatewithflags::hipeventcreatewithflags_ ( type(c_ptr)  event,
integer(c_int), value  flags 
)

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