summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim
diff options
context:
space:
mode:
authorJin Wang <[email protected]>2016-07-06 05:18:44 -0400
committerJin Wang <[email protected]>2016-07-06 05:18:44 -0400
commit2af85e353bccad8c8536c1d5f039361884b96872 (patch)
tree9e84ba2452ddd0d8e76dbf38318312b9c8d715a4 /src/gpgpu-sim
parent9f958e424f2fc952970794efc7647ceae1674d97 (diff)
ADD: add knob to enable CDP in gpgpusim config
Diffstat (limited to 'src/gpgpu-sim')
-rw-r--r--src/gpgpu-sim/gpu-sim.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gpgpu-sim/gpu-sim.cc b/src/gpgpu-sim/gpu-sim.cc
index 02c9c09..0b4b2f6 100644
--- a/src/gpgpu-sim/gpu-sim.cc
+++ b/src/gpgpu-sim/gpu-sim.cc
@@ -449,6 +449,10 @@ void gpgpu_sim_config::reg_options(option_parser_t opp)
option_parser_register(opp, "-gpgpu_kernel_launch_latency", OPT_INT32,
&g_kernel_launch_latency, "Kernel launch latency in cycles. Default: 0",
"0");
+ extern bool g_cdp_enabled;
+ option_parser_register(opp, "-gpgpu_cdp_enabled", OPT_BOOL,
+ &g_cdp_enabled, "Turn on CDP",
+ "0");
}
/////////////////////////////////////////////////////////////////////////////