kkraus14 commented on issue #36103: URL: https://github.com/apache/arrow/issues/36103#issuecomment-1593435572
I'm not sure if an event is the right thing for Buffers. In addition to being able to synchronize, device buffers are often managed in a stream ordered fashion. I.E. allocated and more importantly freed asynchronously from a CPU perspective with the ordering being handled via CUDA streams. I.E. RMM (libcudf's memory manager) has a couple of stream APIs associated to its `device_buffer` class as well as a private stream member which gets used in its destructor for deallocating. https://github.com/rapidsai/rmm/blob/0c08dd585031f58e2a9dcfbba5608cce10c423b2/include/rmm/device_buffer.hpp#L374-L400 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
