summaryrefslogtreecommitdiff
path: root/src/cuda-sim
diff options
context:
space:
mode:
authorJin Wang <[email protected]>2014-11-15 02:09:24 -0500
committerJin Wang <[email protected]>2016-07-06 02:17:17 -0400
commita31392370bc7b23e115160b170e95b117597ebc4 (patch)
tree1a12298a5058574812617dc50ad3a3a19b81edf2 /src/cuda-sim
parent9c0384c1626205b4a9ed97f998b3d4d8e7758198 (diff)
ADD: add stats for kernel launching and complete cycle
Diffstat (limited to 'src/cuda-sim')
-rw-r--r--src/cuda-sim/cuda_device_runtime.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuda-sim/cuda_device_runtime.cc b/src/cuda-sim/cuda_device_runtime.cc
index df2653e..1b8c8d9 100644
--- a/src/cuda-sim/cuda_device_runtime.cc
+++ b/src/cuda-sim/cuda_device_runtime.cc
@@ -176,6 +176,7 @@ void gpgpusim_cuda_launchDeviceV2(const ptx_instruction * pI, ptx_thread_info *
//create child kernel_info_t and index it with parameter_buffer address
device_grid = new kernel_info_t(config.grid_dim, config.block_dim, device_kernel_entry);
+ device_grid->launch_cycle = gpu_sim_cycle;
kernel_info_t & parent_grid = thread->get_kernel();
DEV_RUNTIME_REPORT("child kernel launched by " << parent_grid.name() << ", cta (" <<
thread->get_ctaid().x << ", " << thread->get_ctaid().y << ", " << thread->get_ctaid().z <<
@@ -184,7 +185,6 @@ void gpgpusim_cuda_launchDeviceV2(const ptx_instruction * pI, ptx_thread_info *
device_grid->set_parent(&parent_grid, thread->get_ctaid(), thread->get_tid());
device_launch_op = device_launch_operation_t(device_grid, NULL);
device_kernel_param_mem = device_grid->get_param_memory(); //kernel param
-
size_t param_start_address = 0;
//copy in word
for(unsigned n = 0; n < device_kernel_arg_size; n += 4) {