diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-11 11:01:27 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-11 11:01:27 -0400 |
| commit | 8019833f6c9d9552c70739dc2bf45e53655666ec (patch) | |
| tree | 0e4b32437b5a72fd3920774e473ece11a5ad6261 /src/cuda-sim/cuda_device_runtime.h | |
| parent | bfd493e03d52def57152bc9195c88eef8d0a2580 (diff) | |
Move g_total_param_size
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'src/cuda-sim/cuda_device_runtime.h')
| -rw-r--r-- | src/cuda-sim/cuda_device_runtime.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cuda-sim/cuda_device_runtime.h b/src/cuda-sim/cuda_device_runtime.h index 851fed2..dd908ae 100644 --- a/src/cuda-sim/cuda_device_runtime.h +++ b/src/cuda-sim/cuda_device_runtime.h @@ -3,7 +3,6 @@ #if (CUDART_VERSION >= 5000) #pragma once -void gpgpusim_cuda_getParameterBufferV2(const ptx_instruction * pI, ptx_thread_info * thread, const function_info * target_func); void gpgpusim_cuda_launchDeviceV2(const ptx_instruction * pI, ptx_thread_info * thread, const function_info * target_func); void gpgpusim_cuda_streamCreateWithFlags(const ptx_instruction * pI, ptx_thread_info * thread, const function_info * target_func); #endif @@ -14,10 +13,13 @@ class gpgpu_context; class cuda_device_runtime { public: cuda_device_runtime( gpgpu_context* ctx ) { + g_total_param_size = 0; gpgpu_ctx = ctx; } + unsigned long long g_total_param_size; // backward pointer class gpgpu_context* gpgpu_ctx; + void gpgpusim_cuda_getParameterBufferV2(const ptx_instruction * pI, ptx_thread_info * thread, const function_info * target_func); void launch_all_device_kernels(); void launch_one_device_kernel(); }; |
