mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
Align sync buffer address to max atomic type size
Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6ece3534e8
commit
cd3930251e
@@ -9,7 +9,7 @@
|
||||
|
||||
template <typename KernelT>
|
||||
void NEO::SyncBufferHandler::prepareForEnqueue(size_t workGroupsCount, KernelT &kernel) {
|
||||
auto requiredSize = workGroupsCount;
|
||||
auto requiredSize = alignUp(workGroupsCount, CommonConstants::maximalSizeOfAtomicType);
|
||||
std::lock_guard<std::mutex> guard(this->mutex);
|
||||
|
||||
bool isCurrentBufferFull = (usedBufferSize + requiredSize > bufferSize);
|
||||
|
||||
Reference in New Issue
Block a user