From looking at the latest and greatest discussions regarding multi gpu and multi thread, I’m trying to figure out if it’ll be possible to create multiple context running in parallel from the same thread? I have a serialized version which works perfectly, but before seperating it further into an additional 2 threads and deal with syncing the threads, I wanted to get an idea if this is feasible.
Something like this:
cuCtxCreate(&ctx1, 0, dev);
… do cuda stuff on gpu0
cuCtxCreate(&ctx2, 0, dev);
… do cuda stuff on gpu1
Of course I might have omitted some ctx steps.
Will something like this run concurrently? Will it run at all?