summaryrefslogtreecommitdiff
path: root/libcuda/gpgpu_context.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcuda/gpgpu_context.h')
-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;