summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/gpgpu_context.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h
index dd8b51d..d819559 100644
--- a/libcuda/gpgpu_context.h
+++ b/libcuda/gpgpu_context.h
@@ -3,21 +3,25 @@
#include "cuda_api_object.h"
#include "../src/cuda-sim/ptx_loader.h"
#include "../src/cuda-sim/ptx_parser.h"
+#include "../src/gpgpusim_entrypoint.h"
class gpgpu_context {
public:
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;
ptx_recognizer* ptx_parser;
+ GPGPUsim_ctx* the_gpgpusim;
// member function list
void cuobjdumpParseBinary(unsigned int handle);
class symbol_table *gpgpu_ptx_sim_load_ptx_from_string( const char *p, unsigned source_num );