diff options
| author | Mahmoud <[email protected]> | 2019-05-30 18:28:15 -0400 |
|---|---|---|
| committer | Mahmoud <[email protected]> | 2019-05-30 18:28:15 -0400 |
| commit | ed9f0e6b2a99840e9649551825a40a04e236dcd9 (patch) | |
| tree | 1840987c3e43edd75df14892fb1977e0d114275b /src/gpgpusim_entrypoint.cc | |
| parent | 876504e46d942a851a26792b395e307e2849c16e (diff) | |
adding new values to gpu context
Diffstat (limited to 'src/gpgpusim_entrypoint.cc')
| -rw-r--r-- | src/gpgpusim_entrypoint.cc | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index c8770e2..de937b0 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -41,8 +41,6 @@ struct GPGPUsim_ctx* the_gpgpusim = NULL; -static void print_simulation_time(); - struct GPGPUsim_ctx* GPGPUsim_ctx_ptr(){ if(the_gpgpusim == NULL) the_gpgpusim = new GPGPUsim_ctx(); @@ -50,6 +48,16 @@ struct GPGPUsim_ctx* GPGPUsim_ctx_ptr(){ return the_gpgpusim; } +class gpgpu_sim* g_the_gpu() { + return GPGPUsim_ctx_ptr()->g_the_gpu; +} + +class stream_manager* g_stream_manager() { + return GPGPUsim_ctx_ptr()->g_stream_manager; +} + +static void print_simulation_time(); + void *gpgpu_sim_thread_sequential(void*) { // at most one kernel running at a time |
