summaryrefslogtreecommitdiff
path: root/src/gpgpusim_entrypoint.h
diff options
context:
space:
mode:
authorMahmoud <[email protected]>2019-05-30 18:28:15 -0400
committerMahmoud <[email protected]>2019-05-30 18:28:15 -0400
commited9f0e6b2a99840e9649551825a40a04e236dcd9 (patch)
tree1840987c3e43edd75df14892fb1977e0d114275b /src/gpgpusim_entrypoint.h
parent876504e46d942a851a26792b395e307e2849c16e (diff)
adding new values to gpu context
Diffstat (limited to 'src/gpgpusim_entrypoint.h')
-rw-r--r--src/gpgpusim_entrypoint.h24
1 files changed, 19 insertions, 5 deletions
diff --git a/src/gpgpusim_entrypoint.h b/src/gpgpusim_entrypoint.h
index e29159b..2ad0fdf 100644
--- a/src/gpgpusim_entrypoint.h
+++ b/src/gpgpusim_entrypoint.h
@@ -46,9 +46,15 @@ struct GPGPUsim_ctx {
sg_argc = 3;
sg_argv = {"", "-config","gpgpusim.config"};
+
+ g_the_gpu_config=NULL;
+ g_the_gpu=NULL;
+ g_stream_manager=NULL;
+ the_cude_device=NULL;
+ the_context=NULL;
}
- struct gpgpu_ptx_sim_arg *grid_params;
+ //struct gpgpu_ptx_sim_arg *grid_params;
sem_t g_sim_signal_start;
sem_t g_sim_signal_finish;
@@ -60,19 +66,27 @@ struct GPGPUsim_ctx {
class gpgpu_sim *g_the_gpu;
class stream_manager *g_stream_manager;
+ struct _cuda_device_id *the_cude_device;
+ struct CUctx_st* the_context;
+
+
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;
+ pthread_mutex_t g_sim_lock;
+ bool g_sim_active;
+ bool g_sim_done;
+ bool break_limit;
};
class gpgpu_sim *gpgpu_ptx_sim_init_perf();
void start_sim_thread(int api);
+class gpgpu_sim* g_the_gpu();
+struct GPGPUsim_ctx* GPGPUsim_ctx_ptr();
+class stream_manager* g_stream_manager();
+
int gpgpu_opencl_ptx_sim_main_perf( kernel_info_t *grid );
int gpgpu_opencl_ptx_sim_main_func( kernel_info_t *grid );