CUDA Context vs Streams vs MPS: Process Isolation, Concurrency, and Multi-Tenancy
How CUDA contexts, streams, and MPS compare: a context is a per-process container of GPU state, a stream is an in-order queue inside a context, and MPS lets multiple processes share a single GPU concurrently. Three layers, three different problems.
