This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

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
[in,out]eventReturns the newly created event.
[in]flagsFlags 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.
Warning
On AMD platform, hipEventInterprocess support is under development. Use of this flag will return an error.
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: