summaryrefslogtreecommitdiff
path: root/libopencl/opencl_runtime_api.cc
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-08 14:21:08 -0400
committerMengchi Zhang <[email protected]>2019-07-08 14:21:08 -0400
commit98bb2046a70715c8599561ca78425a7ff99ce53b (patch)
treed0595ce385cf3179d947c1d18c1a9b9380d7929b /libopencl/opencl_runtime_api.cc
parentb3e786e3d8d720217f36a214e9b5be9a19ab9dd2 (diff)
Move cp_count
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libopencl/opencl_runtime_api.cc')
-rw-r--r--libopencl/opencl_runtime_api.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc
index 03ec80c..d302ff8 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -877,6 +877,8 @@ clEnqueueNDRangeKernel(cl_command_queue command_queue,
const cl_event * event_wait_list,
cl_event * event) CL_API_SUFFIX__VERSION_1_0
{
+ gpgpu_context *ctx;
+ ctx = GPGPU_Context();
int _global_size[3];
int zeros[3] = { 0, 0, 0};
printf("\n\n\n");
@@ -956,7 +958,7 @@ clEnqueueNDRangeKernel(cl_command_queue command_queue,
}
kernel_info_t *grid = gpgpu_opencl_ptx_sim_init_grid(kernel->get_implementation(),params,GridDim,BlockDim,gpu);
if ( g_ptx_sim_mode )
- gpgpu_opencl_ptx_sim_main_func( grid );
+ ctx->func_sim->gpgpu_opencl_ptx_sim_main_func( grid );
else
gpgpu_opencl_ptx_sim_main_perf( grid );
return CL_SUCCESS;