Atomic operations on different streams Is it safe?


Are atomic operations also atomic regarding different streams/kernels running at the same time? I know that I cannot assume that several streams will actually run concurrently, but if they do, will they perform atomic operations on global memory correctly?


Atomic operations are atomic regardless of when or in what context they are executed.