Skip to content

Commit

Permalink
use node_id before incremented
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Feb 21, 2024
1 parent 296be30 commit ccc6a9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gpgpu-sim/local_interconnect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ void xbar_router::iSLIP_Advance() {
if (_packet.output_deviceID == dest) {
out_buffers[_packet.output_deviceID].push(_packet);
in_buffers[node_id].pop();
if (in_buffers[node_id].empty()) {
node_set.erase(node_id);
}
if (verbose)
printf("%d : cycle %llu : send req from %d to %d\n", m_id, cycles,
node_id, dest - _n_shader);
Expand All @@ -247,9 +250,6 @@ void xbar_router::iSLIP_Advance() {
}

reqs++;
if (in_buffers[node_id].empty()) {
node_set.erase(node_id);
}
break;
}
it++;
Expand Down

0 comments on commit ccc6a9b

Please sign in to comment.