gpu-compute: Make headTailMap a std::unordered_map
There is no reason that the headTailMap needs to be sorted, so let's use a std::unordered_map. Change-Id: I18641b893352c18ec86e3775c8947a05a6c6547d Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/29930 Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com> Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
committed by
Anthony Gutierrez
parent
5c95e6b678
commit
bbab876c32
@@ -981,7 +981,7 @@ class ComputeUnit : public ClockedObject
|
||||
// hold the time of the arrival of the first cache block related to
|
||||
// a particular GPUDynInst. This is used to calculate the difference
|
||||
// between the first and last chace block arrival times.
|
||||
std::map<GPUDynInstPtr, Tick> headTailMap;
|
||||
std::unordered_map<GPUDynInstPtr, Tick> headTailMap;
|
||||
};
|
||||
|
||||
#endif // __COMPUTE_UNIT_HH__
|
||||
|
||||
Reference in New Issue
Block a user