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
@jet-c-21
You need to create contexts for each engine you want to load. You can do this with: cfx = cuda.Device(0).make_context()
and then wrap all your code which handles data and execution with: cfx.push() and cfx.pop()
When I try to load the engine in a process, the engine predictor will not be loaded and the process will end directly.
And when I try to load the engine in a thread, I got following error:
pycuda._driver.LogicError: explicit_context_dependent failed: invalid device context - no currently active context?
The text was updated successfully, but these errors were encountered: