sizeUsed doesn't have to be atomic.

Linear stream is always being updated under mutex.
Massive improvement for whole zeCommandListAppendLaunchKernel +20%.

Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek 2022-09-30 16:10:13 +00:00 committed by Compute-Runtime-Automation
parent 2cb4cc3278
commit e6daa207ad
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class LinearStream {
}
protected:
std::atomic<size_t> sizeUsed{0};
size_t sizeUsed = 0;
size_t maxAvailableSpace{0};
void *buffer{nullptr};
GraphicsAllocation *graphicsAllocation{nullptr};