Skip to content

Commit

Permalink
fix bound check bug in queue stealing
Browse files Browse the repository at this point in the history
Change-Id: I7b422a1cb584d3a04f4dd62152ed4c12c8aad33f
  • Loading branch information
scchan committed Aug 9, 2019
1 parent 5d5b425 commit 346267d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hsa/mcwamp_hsa.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2267,7 +2267,7 @@ class HSADevice final : public KalmarDevice
// Second pass, try steal from a ROCR queue associated with an HCC queue, but with no active tasks
{
std::lock_guard<std::mutex> lg(rocrQueuesMutex);
for (int p = priority_low; priority >= priority_high; --p) {
for (int p = priority_low; p >= priority_high; --p) {
auto& rqueues = rocrQueues[p];
for (auto it = rqueues.begin(); it != rqueues.end(); ++it) {
auto rq = *it;
Expand Down

0 comments on commit 346267d

Please sign in to comment.