Added signal management which passes stress tests

Change-Id: I7e1660a8ca2c5ee580a91f76eae9a58ca49f0457
This commit is contained in:
Aditya Atluri
2016-09-08 14:52:51 -05:00
parent a52cb887c2
commit f03570d8cc
2 changed files with 29 additions and 3 deletions
+6
View File
@@ -431,6 +431,9 @@ public:
SIGSEQNUM _streamSigId; // Monotonically increasing unique signal id.
hc::accelerator_view _av;
std::vector<hc::completion_future*> _cfs;
};
@@ -468,6 +471,9 @@ typedef uint64_t SeqNum_t ;
void locked_waitEvent(hipEvent_t event);
void locked_recordEvent(hipEvent_t event);
void addCFtoStream(LockedAccessor_StreamCrit_t &crit, hc::completion_future* cf);
void waitOnAllCFs(LockedAccessor_StreamCrit_t &crit);
//---
// Use this if we already have the stream critical data mutex: