You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since CUDA is used under the hood, I'd be useful to know what is happening to the calling thread's CUDA context. Is the .dll creating it's own context and pushing/popping it? Could we add a way to just use the calling thread's CUDA context instead?
The text was updated successfully, but these errors were encountered:
Renderstream on nvidia systems currently uses a mix of the CUDA runtime API and the CUDA driver API, and so will submit kernels and allocate memory/streams on the default runtime context (created implicitly with cudaSetDevice(0)), which will be set as the current driver context using cuCtxSetCurrent(). If there is already a default context active then we should reuse it.
We haven't had an issue so far where we've conflicted with another use of CUDA in the host application (or needed to use a specific device) but we're aware of the potential issues and we'd definitely be willing to make changes if one arose.
We run on multi-GPU systems, so using cudaSetDevice(0) can cause issues for sure. If you can just use the current context that I have setup then that's be easiest. In that case the documentation should suggest that CUDA be setup before calling init(), if the host process uses CUDA.
Since CUDA is used under the hood, I'd be useful to know what is happening to the calling thread's CUDA context. Is the .dll creating it's own context and pushing/popping it? Could we add a way to just use the calling thread's CUDA context instead?
The text was updated successfully, but these errors were encountered: