aboutsummaryrefslogtreecommitdiff
path: root/src/gpgpusim_entrypoint.h
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-03 20:54:01 -0400
committerGitHub <[email protected]>2019-07-03 20:54:01 -0400
commitce63582472e027107783b81be40b2429bd8e8f73 (patch)
tree36ce48f9e23cd20797b765c04b4161b08edf8398 /src/gpgpusim_entrypoint.h
parentc7b8987b313602bf0c3a6edb4830bfba3aa083ae (diff)
parent60c38b0f77378eb111e88f632702d19dc3746cc7 (diff)
Merge pull request #21 from echoedit/dev
Dev
Diffstat (limited to 'src/gpgpusim_entrypoint.h')
-rw-r--r--src/gpgpusim_entrypoint.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gpgpusim_entrypoint.h b/src/gpgpusim_entrypoint.h
index a443151..dfb82d0 100644
--- a/src/gpgpusim_entrypoint.h
+++ b/src/gpgpusim_entrypoint.h
@@ -34,11 +34,11 @@
#include <time.h>
//extern time_t g_simulation_starttime;
+class gpgpu_context;
-
-struct GPGPUsim_ctx {
-
- GPGPUsim_ctx() {
+class GPGPUsim_ctx {
+ public:
+ GPGPUsim_ctx(gpgpu_context* ctx) {
g_sim_active = false;
g_sim_done = true;
break_limit = false;
@@ -49,6 +49,7 @@ struct GPGPUsim_ctx {
g_stream_manager=NULL;
the_cude_device=NULL;
the_context=NULL;
+ gpgpu_ctx = ctx;
}
//struct gpgpu_ptx_sim_arg *grid_params;
@@ -65,6 +66,7 @@ struct GPGPUsim_ctx {
struct _cuda_device_id *the_cude_device;
struct CUctx_st* the_context;
+ gpgpu_context* gpgpu_ctx;
pthread_mutex_t g_sim_lock;