blob: dd908ae01fbd142194b893ab52854dd32fed0c31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
//Jin: cuda_device_runtime.h
//Defines CUDA device runtime APIs for CDP support
#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);
#endif
#if (CUDART_VERSION >= 5000)
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();
};
#endif
|