summaryrefslogtreecommitdiff
path: root/libopencl
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-09 14:32:24 -0400
committerMengchi Zhang <[email protected]>2019-07-09 14:32:24 -0400
commitcda7a145b9e28eff0f3e9ac8197c2b6215755fc8 (patch)
tree130b10d0f93ece2e531b1fab9a8bd80729566461 /libopencl
parent5b015d4347c4945de5a6a7b0559e67e3824d76d6 (diff)
Move g_ptx_kernel_count
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libopencl')
-rw-r--r--libopencl/opencl_runtime_api.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopencl/opencl_runtime_api.cc b/libopencl/opencl_runtime_api.cc
index d302ff8..0a6eb3e 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -956,7 +956,7 @@ clEnqueueNDRangeKernel(cl_command_queue command_queue,
gpgpu_ptx_sim_memcpy_symbol( "%_global_launch_offset", zeros, 3 * sizeof(int), 0, 1, gpu );
gpgpu_ptx_sim_memcpy_symbol( "%_global_block_offset", zeros, 3 * sizeof(int), 0, 1, gpu );
}
- kernel_info_t *grid = gpgpu_opencl_ptx_sim_init_grid(kernel->get_implementation(),params,GridDim,BlockDim,gpu);
+ kernel_info_t *grid = ctx->func_sim->gpgpu_opencl_ptx_sim_init_grid(kernel->get_implementation(),params,GridDim,BlockDim,gpu);
if ( g_ptx_sim_mode )
ctx->func_sim->gpgpu_opencl_ptx_sim_main_func( grid );
else