Asynchronous GPU OperationΒΆ

This document is coming soon. In the meantime, consider this code excerpt, which queues an asynchronous GPU copy using cupy streams.

with endpoint.tensor as volume:
    # perform enclosed operations in vortex's CUDA stream
    with as stream:

        # queue asynchronous copy to CPU
        next_frame = volume[chunk].copy()

        # synchronize a Python's cupy stream with vortex's CUDA stream