summaryrefslogtreecommitdiff
path: root/src/abstract_hardware_model.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-11 23:29:21 -0400
committerMengchi Zhang <[email protected]>2019-07-11 23:29:21 -0400
commit0f5f90ebd896b807270abfae2cd7634733654668 (patch)
treec67eca2e69f3e175cf5df419162ca0da5712771c /src/abstract_hardware_model.cc
parent2f22ddb07752bc956063f6548d4bc26a6ae066f2 (diff)
Move g_kernel_launch_latency
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/abstract_hardware_model.cc')
-rw-r--r--src/abstract_hardware_model.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/abstract_hardware_model.cc b/src/abstract_hardware_model.cc
index 0f4291d..450087b 100644
--- a/src/abstract_hardware_model.cc
+++ b/src/abstract_hardware_model.cc
@@ -693,7 +693,6 @@ void warp_inst_t::completed( unsigned long long cycle ) const
//Jin: CDP support
bool g_cdp_enabled;
-unsigned g_kernel_launch_latency;
unsigned kernel_info_t::m_next_uid = 1;
@@ -717,7 +716,7 @@ kernel_info_t::kernel_info_t( dim3 gridDim, dim3 blockDim, class function_info *
m_parent_kernel = NULL;
//Jin: launch latency management
- m_launch_latency = g_kernel_launch_latency;
+ m_launch_latency = entry->gpgpu_ctx->device_runtime->g_kernel_launch_latency;
volta_cache_config_set=false;
m_NameToCudaArray = nameToCudaArray;