occa icon indicating copy to clipboard operation
occa copied to clipboard

Add support a stream to synchronize for a specific event

Open deukhyun opened this issue 4 years ago • 3 comments

Currently only stream synchronization mechanisms available are ones equivalent to cuStreamSynchronize and cuEventSynchronize. It would be nice to have the one equivalent to cuStreamWaitEvent which can be useful to make multi-stream application more efficient.

deukhyun avatar Sep 09 '21 01:09 deukhyun

For Metal, these might be useful: MTLEvent encodeSignalEvent encodeWaitForEvent

See also Synchronizing Events Within a Single Device. I'm not volunteering to write this part, though, since I have no way to test it.

noelchalmers avatar May 10 '23 19:05 noelchalmers

I appreciate the comments. I don't have environment available for testing Metal as well, but perhaps it might be a good first step to get some build/test instruction updated from anyone running OCCA on the environment if possible (unless it's already available and I missed it). That would probably make things easier for anyone to jump-in and volunteer - including myself :)

deukhyun-cha avatar May 10 '23 20:05 deukhyun-cha