SWDEV-364604 - Add support for hipEventDisableSystemFence

Change-Id: I1a6451c873fb22729ac61e4e80f8531251e990f0


[ROCm/clr commit: 7fc5ae2226]
This commit is contained in:
Saleel Kudchadker
2023-01-20 15:35:25 -08:00
والد 24bf83f808
کامیت 9fdbbe53dc
3فایلهای تغییر یافته به همراه33 افزوده شده و 12 حذف شده
@@ -388,11 +388,18 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, uint32_t globalWorkSizeX,
}
}
command->enqueue();
if (stopEvent != nullptr) {
hip::Event* eStop = reinterpret_cast<hip::Event*>(stopEvent);
if (eStop->flags & hipEventDisableSystemFence) {
command->setEventScope(amd::Device::kCacheStateIgnore);
} else {
command->setEventScope(amd::Device::kCacheStateSystem);
}
// Enqueue Dispatch and bind the stop event
command->enqueue();
eStop->BindCommand(*command, false);
} else {
command->enqueue();
}
if (command->status() == CL_INVALID_OPERATION) {