public static final class Cuda.Event extends Object implements AutoCloseable
Constructor and Description |
---|
Event()
Create an event that is as fast as possible, timing is disabled and no blockingSync.
|
Event(boolean enableTiming,
boolean blockingSync)
Create an event to be used for CUDA synchronization.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
hasCompleted()
Check to see if the event has completed or not.
|
void |
record()
Captures the contents of the default stream at the time of this call.
|
void |
record(Cuda.Stream stream)
Captures the contents of stream at the time of this call.
|
void |
sync()
Block the thread to wait for the event to complete.
|
String |
toString() |
public Event()
public Event(boolean enableTiming, boolean blockingSync)
enableTiming
- true if the event should record timing information.blockingSync
- true if event should use blocking synchronization.
A host thread that calls sync() to wait on an event created with this
flag will block until the event actually completes.public boolean hasCompleted()
public void record(Cuda.Stream stream)
stream
- the stream to record the state of.public void record()
public void sync()
public void close()
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.