cuda-python
cuda-python copied to clipboard
`Event` should provide an inverse lookup to its origin `Device`/`Context`
Follow-up of #487. Like CUDA streams, events today are also tied to a CUDA context, so it makes sense to offer the reverse link when an Event is created. This is particularly useful for bookkeeping, since unlike CUDA streams there is no driver/runtime API for querying the associated context.