diff options
| author | Amruth <[email protected]> | 2018-04-11 20:17:43 +0000 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2018-04-11 20:17:43 +0000 |
| commit | c980c7557b3c60857bea13fde868366b32f93cef (patch) | |
| tree | 71f42cea67f61498377205b52e2e0daecfc3836b /src/cuda-sim/cuda_device_runtime.cc | |
| parent | a17c466a9578f983c48704495566df5a373ff6ba (diff) | |
| parent | 90a0a1e4093df69505d0ffc0b08eedc9d0355ac3 (diff) | |
Merged in amruth_s/apr2_gpgpusim (pull request #3)
Support for CDP and minor bug fixes
Diffstat (limited to 'src/cuda-sim/cuda_device_runtime.cc')
| -rw-r--r-- | src/cuda-sim/cuda_device_runtime.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cuda-sim/cuda_device_runtime.cc b/src/cuda-sim/cuda_device_runtime.cc index 4a8ffe5..b399133 100644 --- a/src/cuda-sim/cuda_device_runtime.cc +++ b/src/cuda-sim/cuda_device_runtime.cc @@ -177,6 +177,20 @@ void gpgpusim_cuda_launchDeviceV2(const ptx_instruction * pI, ptx_thread_info * //device_grid = op.grid; device_kernel_entry = config.entry; DEV_RUNTIME_REPORT("find device kernel " << device_kernel_entry->get_name()); + + //PDOM analysis is done for Parent kernel but not for child kernel. + if (device_kernel_entry->is_pdom_set()) { + printf("GPGPU-Sim PTX: PDOM analysis already done for %s \n", device_kernel_entry->get_name().c_str() ); + } else { + printf("GPGPU-Sim PTX: finding reconvergence points for \'%s\'...\n", device_kernel_entry->get_name().c_str() ); + /* + * Some of the instructions like printf() gives the gpgpusim the wrong impression that it is a function call. + * As printf() doesnt have a body like functions do, doing pdom analysis for printf() causes a crash. + */ + if (device_kernel_entry->get_function_size() >0) + device_kernel_entry->do_pdom(); + device_kernel_entry->set_pdom(); + } //copy data in parameter_buffer to device kernel param memory unsigned device_kernel_arg_size = device_kernel_entry->get_args_aligned_size(); |
