SWDEV-364604 - Add support for hipEventDisableSystemFence
Change-Id: I1a6451c873fb22729ac61e4e80f8531251e990f0
[ROCm/clr commit: 7fc5ae2226]
This commit is contained in:
@@ -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) {
|
||||
|
||||
مرجع در شماره جدید
Block a user