public static final class Cuda.Stream extends Object implements AutoCloseable
Constructor and Description |
---|
Stream(boolean isNonBlocking)
Create a new CUDA stream
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
long |
getStream() |
void |
sync()
Block the thread to wait until all pending work on this stream completes.
|
String |
toString() |
void |
waitOn(Cuda.Event event)
Have this stream not execute new work until the work recorded in event completes.
|
public Stream(boolean isNonBlocking)
isNonBlocking
- whether stream should be non-blocking with respect to the default streampublic void waitOn(Cuda.Event event)
event
- the event to wait on.public long getStream()
public void sync()
public void close()
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.