@@ -74,12 +74,12 @@ hipError_t Event::synchronize() {
7474 auto hip_device = g_devices[deviceId ()];
7575 // Check HW status of the ROCcrl event. Note: not all ROCclr modes support HW status
7676 static constexpr bool kWaitCompletion = true ;
77- if (!hip_device->devices ()[0 ]->IsHwEventReady (*event_, kWaitCompletion , flags )) {
77+ if (!hip_device->devices ()[0 ]->IsHwEventReady (*event_, kWaitCompletion , flags_ )) {
7878 if (event_->HwEvent () != nullptr ) {
7979 amd::Command* command = nullptr ;
80- hipError_t status = recordCommand (command, event_->command ().queue (), flags );
80+ hipError_t status = recordCommand (command, event_->command ().queue (), flags_ );
8181 command->enqueue ();
82- hip_device->devices ()[0 ]->IsHwEventReady (command->event (), kWaitCompletion , flags );
82+ hip_device->devices ()[0 ]->IsHwEventReady (command->event (), kWaitCompletion , flags_ );
8383 command->release ();
8484 } else {
8585 event_->awaitCompletion ();
@@ -93,7 +93,7 @@ bool Event::awaitEventCompletion() {
9393}
9494
9595bool EventDD::awaitEventCompletion () {
96- return g_devices[deviceId ()]->devices ()[0 ]->IsHwEventReady (*event_, true , flags );
96+ return g_devices[deviceId ()]->devices ()[0 ]->IsHwEventReady (*event_, true , flags_ );
9797}
9898
9999hipError_t Event::elapsedTime (Event& eStop, float & ms) {
@@ -104,7 +104,7 @@ hipError_t Event::elapsedTime(Event& eStop, float& ms) {
104104 return hipErrorInvalidHandle;
105105 }
106106
107- if (flags & hipEventDisableTiming) {
107+ if (flags_ & hipEventDisableTiming) {
108108 return hipErrorInvalidHandle;
109109 }
110110
@@ -120,7 +120,7 @@ hipError_t Event::elapsedTime(Event& eStop, float& ms) {
120120 return hipErrorInvalidHandle;
121121 }
122122
123- if ((flags | eStop.flags ) & hipEventDisableTiming) {
123+ if ((flags_ | eStop.flags_ ) & hipEventDisableTiming) {
124124 return hipErrorInvalidHandle;
125125 }
126126
@@ -224,7 +224,7 @@ hipError_t Event::streamWait(hipStream_t stream, uint flags) {
224224hipError_t Event::recordCommand (amd::Command*& command, amd::HostQueue* stream,
225225 uint32_t ext_flags ) {
226226 if (command == nullptr ) {
227- int32_t releaseFlags = ((ext_flags == 0 ) ? flags : ext_flags) &
227+ int32_t releaseFlags = ((ext_flags == 0 ) ? flags_ : ext_flags) &
228228 (hipEventReleaseToDevice | hipEventReleaseToSystem |
229229 hipEventDisableSystemFence);
230230 if (releaseFlags & hipEventDisableSystemFence) {
0 commit comments