diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-03 02:44:08 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-03 02:44:08 -0400 |
| commit | 71eaa4e7b4aba49efef39391f3e1bb3a7e4e1529 (patch) | |
| tree | 6284a884045b8f2c6b7ef115388c27deae7b69fc /libcuda | |
| parent | 3600ed5c59adafe40840524d19f622aa25e60dd6 (diff) | |
Connect gpgpu_context and GPGPUsim_ctx
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libcuda')
| -rw-r--r-- | libcuda/gpgpu_context.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h index dd8b51d..69341be 100644 --- a/libcuda/gpgpu_context.h +++ b/libcuda/gpgpu_context.h @@ -3,6 +3,7 @@ #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: @@ -11,6 +12,7 @@ class gpgpu_context { api = new cuda_runtime_api(); ptxinfo = new ptxinfo_data(); ptx_parser = new ptx_recognizer(); + the_gpgpusim = new GPGPUsim_ctx(this); } // global list symbol_table *g_global_allfiles_symbol_table; @@ -18,6 +20,7 @@ class gpgpu_context { 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 ); |
