diff options
| author | Jin Wang <[email protected]> | 2014-10-18 23:07:53 -0400 |
|---|---|---|
| committer | Jin Wang <[email protected]> | 2016-07-05 09:05:36 -0400 |
| commit | 582106ec595bb7745db092f2f4aa2b0fb9521b16 (patch) | |
| tree | 8622510691992e4bb4802f60a80a3e9ba8c07127 /src/gpgpusim_entrypoint.cc | |
| parent | 70e02ee5283cb96f0edcb46a15edf0ab6e1d0697 (diff) | |
MOD: add child kernel stream and scheduling support
Diffstat (limited to 'src/gpgpusim_entrypoint.cc')
| -rw-r--r-- | src/gpgpusim_entrypoint.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpgpusim_entrypoint.cc b/src/gpgpusim_entrypoint.cc index 6ba38eb..31f3a41 100644 --- a/src/gpgpusim_entrypoint.cc +++ b/src/gpgpusim_entrypoint.cc @@ -127,6 +127,15 @@ void *gpgpu_sim_thread_concurrent(void*) if(g_stream_manager->operation(&sim_cycles) && !g_the_gpu->active()) break; + //functional simulation + if( g_the_gpu->is_functional_sim()) { + kernel_info_t * kernel = g_the_gpu->get_functional_kernel(); + assert(kernel); + gpgpu_cuda_ptx_sim_main_func(*kernel); + g_the_gpu->finish_functional_sim(kernel); + } + + //performance simulation if( g_the_gpu->active() ) { g_the_gpu->cycle(); sim_cycles = true; |
