SWDEV-240806 - [hip-graph] Added functions updateEventWaitList and resetStatus

Change-Id: I6a753e9584bdacd39ee676466a884ec6b7859879


[ROCm/clr commit: c9c6bed022]
이 커밋은 다음에 포함됨:
Anusha GodavarthySurya 작성하고 Anusha Godavarthy Surya가 2021-04-20 09:43:40 -04:00를 커밋함
1 부모 823c7c456a
커밋 44e600b701
2 파일이 변경됨
+23

검색과 일치하는 파일 없음

+10
파일 보기
@@ -186,6 +186,9 @@ class Event : public RuntimeObject {
*/
bool setStatus(int32_t status, uint64_t timeStamp = 0);
//! Reset the status of the command for reuse
bool resetStatus(int32_t status);
//! Signal all threads waiting on this event.
void signal() {
ScopedLock lock(lock_);
@@ -269,6 +272,13 @@ class Command : public Event {
//! Return the list of events this command needs to wait on before dispatch
const EventWaitList& eventWaitList() const { return eventWaitList_; }
//! Update with the list of events this command needs to wait on before dispatch
void updateEventWaitList(const EventWaitList& waitList) {
for (auto event : waitList) {
eventWaitList_.push_back(event);
}
}
//! Return this command's OpenCL type.
cl_command_type type() const { return type_; }