summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx-stats.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-08-24 08:39:28 -0800
committerTor Aamodt <[email protected]>2010-08-24 08:39:28 -0800
commit4624b9f95fcdb0e3fa31d6aa1b5a2c1bd4d39536 (patch)
treecc8b0d00e641920a9ec783c0161455d601c507d9 /src/cuda-sim/ptx-stats.cc
parent7858517a1e387572e1223eb186f2721458e6bbb3 (diff)
integrate wilson's bug fix for cycle counting
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7257]
Diffstat (limited to 'src/cuda-sim/ptx-stats.cc')
-rw-r--r--src/cuda-sim/ptx-stats.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cuda-sim/ptx-stats.cc b/src/cuda-sim/ptx-stats.cc
index df95960..567c62b 100644
--- a/src/cuda-sim/ptx-stats.cc
+++ b/src/cuda-sim/ptx-stats.cc
@@ -65,7 +65,7 @@
#include "../option_parser.h"
#include <stdio.h>
#include <map>
-#include <unordered_map>
+#include "../tr1_hash_map.h"
// external dependencies
extern function_info *g_func_info;
@@ -147,7 +147,12 @@ public:
unsigned long long warp_divergence; // number of warp divergence occured at this instruction
};
-typedef std::unordered_map<ptx_file_line, ptx_file_line_stats, hash_ptx_file_line> ptx_file_line_stats_map_t;
+#if (tr1_hash_map_ismap == 1)
+typedef tr1_hash_map<ptx_file_line, ptx_file_line_stats> ptx_file_line_stats_map_t;
+#else
+typedef tr1_hash_map<ptx_file_line, ptx_file_line_stats, hash_ptx_file_line> ptx_file_line_stats_map_t;
+#endif
+
static ptx_file_line_stats_map_t ptx_file_line_stats_tracker;
// output statistics to a file