From: Tony Gutierrez Date: Tue, 13 Aug 2019 18:15:16 +0000 (-0400) Subject: gpu-compute: Make headTailMap a std::unordered_map X-Git-Tag: v20.1.0.0~542 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bbab876c32a692b25e18e38e73c9a96f5abc5a5e;p=gem5.git 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 Maintainer: Anthony Gutierrez Tested-by: kokoro --- diff --git a/src/gpu-compute/compute_unit.hh b/src/gpu-compute/compute_unit.hh index 187cbc9d5..110097e0c 100644 --- a/src/gpu-compute/compute_unit.hh +++ b/src/gpu-compute/compute_unit.hh @@ -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 headTailMap; + std::unordered_map headTailMap; }; #endif // __COMPUTE_UNIT_HH__