diff options
| author | Mengchi Zhang <[email protected]> | 2019-07-11 16:56:29 -0400 |
|---|---|---|
| committer | Mengchi Zhang <[email protected]> | 2019-07-11 17:07:57 -0400 |
| commit | 2f22ddb07752bc956063f6548d4bc26a6ae066f2 (patch) | |
| tree | 49d69f4b633757ed73c0a00456db6109f1d5da14 | |
| parent | af2db5edde62aae1b3b0c1691e1ae879aa69d9fa (diff) | |
Fix symbols
Signed-off-by: Mengchi Zhang <[email protected]>
| -rw-r--r-- | libcuda/gpgpu_context.h | 4 | ||||
| -rw-r--r-- | src/cuda-sim/cuda_device_runtime.h | 10 |
2 files changed, 6 insertions, 8 deletions
diff --git a/libcuda/gpgpu_context.h b/libcuda/gpgpu_context.h index 3c9f87c..c0b250a 100644 --- a/libcuda/gpgpu_context.h +++ b/libcuda/gpgpu_context.h @@ -16,9 +16,7 @@ class gpgpu_context { ptx_parser = new ptx_recognizer(this); the_gpgpusim = new GPGPUsim_ctx(this); func_sim = new cuda_sim(this); -#if (CUDART_VERSION >= 5000) device_runtime = new cuda_device_runtime(this); -#endif } // global list symbol_table *g_global_allfiles_symbol_table; @@ -29,9 +27,7 @@ class gpgpu_context { ptx_recognizer* ptx_parser; GPGPUsim_ctx* the_gpgpusim; cuda_sim* func_sim; -#if (CUDART_VERSION >= 5000) cuda_device_runtime* device_runtime; -#endif // member function list void cuobjdumpParseBinary(unsigned int handle); class symbol_table *gpgpu_ptx_sim_load_ptx_from_string( const char *p, unsigned source_num ); diff --git a/src/cuda-sim/cuda_device_runtime.h b/src/cuda-sim/cuda_device_runtime.h index b49d0eb..a6303b9 100644 --- a/src/cuda-sim/cuda_device_runtime.h +++ b/src/cuda-sim/cuda_device_runtime.h @@ -1,8 +1,7 @@ +#ifndef __cuda_device_runtime_h__ +#define __cuda_device_runtime_h__ //Jin: cuda_device_runtime.h //Defines CUDA device runtime APIs for CDP support -#if (CUDART_VERSION >= 5000) -#pragma once - class device_launch_config_t { public: @@ -51,11 +50,14 @@ class cuda_device_runtime { std::list<device_launch_operation_t> g_cuda_device_launch_op; // backward pointer class gpgpu_context* gpgpu_ctx; +#if (CUDART_VERSION >= 5000) +#pragma once 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); 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(); +#endif }; -#endif +#endif /* __cuda_device_runtime_h__ */ |
