SWDEV-439581 - hipEventBlockingSync flag for hip events

Change-Id: I0d7785a568f8007f82f999776a7ad23d0acc81b7


[ROCm/clr commit: a5a4b78606]
이 커밋은 다음에 포함됨:
Ajay 작성하고 Maneesh Gupta가 2024-05-28 06:31:10 +00:00를 커밋함
1 부모 24a3ca5f94
커밋 cea4f4290a
5 파일이 변경됨
+17 -9

검색과 일치하는 파일 없음

+3 -3
파일 보기
@@ -74,12 +74,12 @@ hipError_t Event::synchronize() {
auto hip_device = g_devices[deviceId()];
// Check HW status of the ROCcrl event. Note: not all ROCclr modes support HW status
static constexpr bool kWaitCompletion = true;
if (!hip_device->devices()[0]->IsHwEventReady(*event_, kWaitCompletion)) {
if (!hip_device->devices()[0]->IsHwEventReady(*event_, kWaitCompletion, flags)) {
if (event_->HwEvent() != nullptr) {
amd::Command* command = nullptr;
hipError_t status = recordCommand(command, event_->command().queue(), flags);
command->enqueue();
hip_device->devices()[0]->IsHwEventReady(command->event(), kWaitCompletion);
hip_device->devices()[0]->IsHwEventReady(command->event(), kWaitCompletion, flags);
command->release();
} else {
event_->awaitCompletion();
@@ -93,7 +93,7 @@ bool Event::awaitEventCompletion() {
}
bool EventDD::awaitEventCompletion() {
return g_devices[deviceId()]->devices()[0]->IsHwEventReady(*event_, true);
return g_devices[deviceId()]->devices()[0]->IsHwEventReady(*event_, true, flags);
}
hipError_t Event::elapsedTime(Event& eStop, float& ms) {