ComputeSynchronizeStream Method |
Block the host thread until all work previously enqueued on the stream/queue completes.
Namespace:
Zivid.NET
Assembly:
ZividCoreNET (in ZividCoreNET.dll) Version: 2.18.0.0
Syntaxpublic static void SynchronizeStream(
StreamOrQueue streamOrQueue
)
Public Shared Sub SynchronizeStream (
streamOrQueue As StreamOrQueue
)
public:
static void SynchronizeStream(
StreamOrQueue streamOrQueue
)
Parameters
- streamOrQueue
- Type: Zivid.NETStreamOrQueue
Remarks
Equivalent to cudaStreamSynchronize on CUDA builds and clFinish on OpenCL builds. Call this on
the same stream/queue passed to DeviceArray.CopyToHost before reading the destination buffer.
See Also