summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-03 14:54:16 -0400
committerMengchi Zhang <[email protected]>2019-07-03 14:54:16 -0400
commit60c38b0f77378eb111e88f632702d19dc3746cc7 (patch)
tree36ce48f9e23cd20797b765c04b4161b08edf8398 /libcuda
parentcb60ae4893086175fee49dc6088d46665a7f088b (diff)
Remove g_filename
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/gpgpu_context.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h
index 69341be..d819559 100644
--- a/libcuda/gpgpu_context.h
+++ b/libcuda/gpgpu_context.h
@@ -10,12 +10,13 @@ class gpgpu_context {
gpgpu_context() {
g_global_allfiles_symbol_table = NULL;
api = new cuda_runtime_api();
- ptxinfo = new ptxinfo_data();
- ptx_parser = new ptx_recognizer();
+ ptxinfo = new ptxinfo_data(this);
+ ptx_parser = new ptx_recognizer(this);
the_gpgpusim = new GPGPUsim_ctx(this);
}
// global list
symbol_table *g_global_allfiles_symbol_table;
+ const char *g_filename;
// objects pointers for each file
cuda_runtime_api* api;
ptxinfo_data* ptxinfo;