diff options
| author | tgrogers <[email protected]> | 2019-08-26 14:56:00 -0400 |
|---|---|---|
| committer | tgrogers <[email protected]> | 2019-08-26 14:56:00 -0400 |
| commit | fd91575e7dcc40653ea0279ef33d845d1d473ffa (patch) | |
| tree | 759a1a2ac29e137a6541d998656be9c86d426136 /src/intersim2/gputrafficmanager.cpp | |
| parent | 841bb925e7ff06d7165f14fe2d1fce6561ab29b9 (diff) | |
| parent | 0df569774615120c76fb5f139f8698175a722293 (diff) | |
Merge branch 'dev' of github.com:purdue-aalp/gpgpu-sim_distribution into dev
Diffstat (limited to 'src/intersim2/gputrafficmanager.cpp')
| -rw-r--r-- | src/intersim2/gputrafficmanager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/intersim2/gputrafficmanager.cpp b/src/intersim2/gputrafficmanager.cpp index bf422d6..6897a22 100644 --- a/src/intersim2/gputrafficmanager.cpp +++ b/src/intersim2/gputrafficmanager.cpp @@ -105,7 +105,7 @@ void GPUTrafficManager::_RetireFlit( Flit *f, int dest ) if(f->head) { head = f; } else { - map<int, Flit *>::iterator iter = _retired_packets[f->cl].find(f->pid); + map<unsigned long long, Flit *>::iterator iter = _retired_packets[f->cl].find(f->pid); assert(iter != _retired_packets[f->cl].end()); head = iter->second; _retired_packets[f->cl].erase(iter); @@ -195,8 +195,8 @@ void GPUTrafficManager::_GeneratePacket(int source, int stype, int cl, int time, // Flit::FlitType packet_type = Flit::ANY_TYPE; int size = packet_size; //input size - int pid = _cur_pid++; - assert(_cur_pid); + unsigned long long pid = _cur_pid++; + assert(_cur_pid > 0); int packet_destination = dest; bool record = false; bool watch = gWatchOut && (_packets_to_watch.count(pid) > 0); |
