summaryrefslogtreecommitdiff
path: root/src/gpgpusim_entrypoint.h
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2019-05-30 13:53:59 -0400
committerMahmoud <[email protected]>2019-05-30 13:53:59 -0400
commit876504e46d942a851a26792b395e307e2849c16e (patch)
tree84f3c15cc7957725b9864691ccc614f3658b2dba /src/gpgpusim_entrypoint.h
parent1eee682a940c572ddf37d0b194c97d917017c03f (diff)
adding new params to gpgpu-sim strut
Diffstat (limited to 'src/gpgpusim_entrypoint.h')
-rw-r--r--src/gpgpusim_entrypoint.h28
1 files changed, 27 insertions, 1 deletions
diff --git a/src/gpgpusim_entrypoint.h b/src/gpgpusim_entrypoint.h
index eacb2d7..e29159b 100644
--- a/src/gpgpusim_entrypoint.h
+++ b/src/gpgpusim_entrypoint.h
@@ -36,11 +36,37 @@
extern time_t g_simulation_starttime;
-struct GPU_ctx {
+struct GPGPUsim_ctx {
+
+ GPGPUsim_ctx() {
+ g_sim_active = false;
+ g_sim_done = true;
+ break_limit = false;
+ g_sim_lock = PTHREAD_MUTEX_INITIALIZER;
+
+ sg_argc = 3;
+ sg_argv = {"", "-config","gpgpusim.config"};
+ }
struct gpgpu_ptx_sim_arg *grid_params;
+ sem_t g_sim_signal_start;
+ sem_t g_sim_signal_finish;
+ sem_t g_sim_signal_exit;
+ time_t g_simulation_starttime;
+ pthread_t g_simulation_thread;
+
+ class gpgpu_sim_config *g_the_gpu_config;
+ class gpgpu_sim *g_the_gpu;
+ class stream_manager *g_stream_manager;
+
+ int sg_argc;
+ const char *sg_argv[3];
+ pthread_mutex_t g_sim_lock;
+ bool g_sim_active;
+ bool g_sim_done;
+ bool break_limit;
};