I have 3 threads A, B, and C.
Thread A creates a context. Can’t I simultaneously use this context created by A, inside thread B and C. I tried some samples and looks like it fails. Isn’t there any way to share a context between multiple threads simultaneously(that is without the popping and pushing)?
But I am confused as to why we have cuCtxAttach(). My understanding was that multiple threads can attach to any context using cuCtxAttach and use it irrespective of whether that same context is used simultaneously in some other thread. Can someone explain the use of this function to me?
Thanks for taking time for this.
There was another thread similar to this, but the question was unanswered