mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Wait on all tiles when clearing allocation list
Related-To: NEO-6244 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
cdb7287816
commit
a51b385e80
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "shared/source/utilities/cpuintrinsics.h"
|
||||
|
||||
#include "shared/source/helpers/ptr_math.h"
|
||||
|
||||
#include <atomic>
|
||||
#include <cstdint>
|
||||
|
||||
@@ -17,6 +19,7 @@ std::atomic<uint32_t> pauseCounter(0u);
|
||||
|
||||
volatile uint32_t *pauseAddress = nullptr;
|
||||
uint32_t pauseValue = 0u;
|
||||
uint32_t pauseOffset = 0u;
|
||||
} // namespace CpuIntrinsicsTests
|
||||
|
||||
namespace NEO {
|
||||
@@ -30,6 +33,7 @@ void pause() {
|
||||
CpuIntrinsicsTests::pauseCounter++;
|
||||
if (CpuIntrinsicsTests::pauseAddress != nullptr) {
|
||||
*CpuIntrinsicsTests::pauseAddress = CpuIntrinsicsTests::pauseValue;
|
||||
CpuIntrinsicsTests::pauseAddress = ptrOffset(CpuIntrinsicsTests::pauseAddress, CpuIntrinsicsTests::pauseOffset);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user