summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-sim.cc
diff options
context:
space:
mode:
authorJin Wang <[email protected]>2014-11-16 01:27:47 -0500
committerJin Wang <[email protected]>2016-07-06 02:17:18 -0400
commit60fa05d4de0f3c926f9ab4f687b5d0748ec19285 (patch)
tree49cf9665cf19bef4b798f64c7c7f9a0452dd4aec /src/gpgpu-sim/gpu-sim.cc
parentb70a5a69fa14cc01f707b910f8f021e36067922f (diff)
ADD: add kernel launching latency from stream to distributor
Diffstat (limited to 'src/gpgpu-sim/gpu-sim.cc')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index a9da1c9..7fb9ab3 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -443,6 +443,12 @@ void gpgpu_sim_config::reg_options(option_parser_t opp)
&Trace::sampling_memory_partition, "The memory partition which is printed using MEMPART_DPRINTF. Default -1 (i.e. all)",
"-1");
ptx_file_line_stats_options(opp);
+
+ //Jin: kernel launch latency
+ extern unsigned g_kernel_launch_latency;
+ option_parser_register(opp, "-gpgpu_kernel_launch_latency", OPT_INT32,
+ &g_kernel_launch_latency, "Kernel launch latency in cycles. Default: 0",
+ "0");
}
/////////////////////////////////////////////////////////////////////////////