summaryrefslogtreecommitdiff
path: root/src/cuda-sim
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-12 00:02:57 -0400
committerMengchi Zhang <[email protected]>2019-07-12 00:02:57 -0400
commit524c7e2ff37bba3ec60706605b34c6e354f928f1 (patch)
tree223f78b0a1f9ea484d84a0c76832ec27e4f17005 /src/cuda-sim
parent0f5f90ebd896b807270abfae2cd7634733654668 (diff)
Move g_max_total_param_size
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim')
-rw-r--r--src/cuda-sim/cuda_device_runtime.cc1
-rw-r--r--src/cuda-sim/cuda_device_runtime.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/cuda-sim/cuda_device_runtime.cc b/src/cuda-sim/cuda_device_runtime.cc
index 326a1c5..dc3adc3 100644
--- a/src/cuda-sim/cuda_device_runtime.cc
+++ b/src/cuda-sim/cuda_device_runtime.cc
@@ -5,7 +5,6 @@
#include <iostream>
#include <map>
-unsigned long long g_max_total_param_size = 0;
#if (CUDART_VERSION >= 5000)
diff --git a/src/cuda-sim/cuda_device_runtime.h b/src/cuda-sim/cuda_device_runtime.h
index 5927b54..f37849b 100644
--- a/src/cuda-sim/cuda_device_runtime.h
+++ b/src/cuda-sim/cuda_device_runtime.h
@@ -43,12 +43,14 @@ class cuda_device_runtime {
public:
cuda_device_runtime( gpgpu_context* ctx ) {
g_total_param_size = 0;
+ g_max_total_param_size = 0;
gpgpu_ctx = ctx;
}
unsigned long long g_total_param_size;
std::map<void *, device_launch_config_t> g_cuda_device_launch_param_map;
std::list<device_launch_operation_t> g_cuda_device_launch_op;
unsigned g_kernel_launch_latency;
+ unsigned long long g_max_total_param_size;
// backward pointer
class gpgpu_context* gpgpu_ctx;
#if (CUDART_VERSION >= 5000)