summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/addrdec.cc
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2012-07-26 03:22:53 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:48:52 -0700
commit9a0e4e4a776a963c9950dc3dcd0d23ee0739b755 (patch)
tree70c6f73230fe8fcfdd0fd2a3a7eb525e1f145b80 /src/gpgpu-sim/addrdec.cc
parent1c7ed16cc28f1d740ac7abc773eb4016d49fcba4 (diff)
Clean up the unordered_map fallback support.
- Now there is only one macro for all use of unordered_map in the code. - Moving all instances of gcc/cuda version detection into a single file. - Adding a warning when the fallback is triggered. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 13542]
Diffstat (limited to 'src/gpgpu-sim/addrdec.cc')
-rw-r--r--src/gpgpu-sim/addrdec.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgpu-sim/addrdec.cc b/src/gpgpu-sim/addrdec.cc
index 868696d..9b2f339 100644
--- a/src/gpgpu-sim/addrdec.cc
+++ b/src/gpgpu-sim/addrdec.cc
@@ -331,7 +331,11 @@ void linear_to_raw_address_translation::sweep_test() const
{
new_addr_type sweep_range = 16 * 1024 * 1024;
+#if tr1_hash_map_ismap == 1
+ typedef tr1_hash_map<addrdec_t, new_addr_type> history_map_t;
+#else
typedef tr1_hash_map<addrdec_t, new_addr_type, hash_addrdec_t> history_map_t;
+#endif
history_map_t history_map;
for (new_addr_type raw_addr = 4; raw_addr < sweep_range; raw_addr += 4) {