summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-15 13:31:36 -0400
committerMengchi Zhang <[email protected]>2019-07-15 13:31:36 -0400
commit36aaec0a30445533f04aaf6b55c5ef135e20484a (patch)
treeaa47ed8140bc6d7388bd6afeab59b33705744b3b /libcuda
parentbd170826a00fe1ea1960ff2e23247ed3f980547b (diff)
Move ptx_line_stats_filename and enable_ptx_file_line_stats
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/gpgpu_context.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h
index 1e20c62..337ebb2 100644
--- a/libcuda/gpgpu_context.h
+++ b/libcuda/gpgpu_context.h
@@ -6,6 +6,7 @@
#include "../src/gpgpusim_entrypoint.h"
#include "../src/cuda-sim/cuda-sim.h"
#include "../src/cuda-sim/cuda_device_runtime.h"
+#include "../src/cuda-sim/ptx-stats.h"
class gpgpu_context {
public:
@@ -21,6 +22,7 @@ class gpgpu_context {
the_gpgpusim = new GPGPUsim_ctx(this);
func_sim = new cuda_sim(this);
device_runtime = new cuda_device_runtime(this);
+ stats = new ptx_stats(this);
}
// global list
symbol_table *g_global_allfiles_symbol_table;
@@ -36,6 +38,7 @@ class gpgpu_context {
GPGPUsim_ctx* the_gpgpusim;
cuda_sim* func_sim;
cuda_device_runtime* device_runtime;
+ ptx_stats* stats;
// member function list
void cuobjdumpParseBinary(unsigned int handle);
class symbol_table *gpgpu_ptx_sim_load_ptx_from_string( const char *p, unsigned source_num );