Remove incorrect code.

- we always need to flush the cache.
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>

Change-Id: I348d04649b8c01a6fb9ec29a15fd0a77f0b2aec2
This commit is contained in:
Michal Mrozek 2020-09-07 14:31:23 +02:00 committed by sys_ocldev
parent abacd69def
commit b9b01c09bc
1 changed files with 1 additions and 3 deletions

View File

@ -167,9 +167,7 @@ ze_result_t EventImp::hostEventSetValue(uint32_t eventVal) {
UNRECOVERABLE_IF(hostAddr == nullptr);
memcpy_s(static_cast<void *>(hostAddr), sizeof(uint32_t), static_cast<void *>(&eventVal), sizeof(uint32_t));
if (!this->signalScope) {
NEO::CpuIntrinsics::clFlush(hostAddr);
}
NEO::CpuIntrinsics::clFlush(hostAddr);
return ZE_RESULT_SUCCESS;
}