summaryrefslogtreecommitdiff
path: root/libopencl
diff options
context:
space:
mode:
authorMengchi Zhang <[email protected]>2019-07-01 16:23:33 -0400
committerMengchi Zhang <[email protected]>2019-07-01 16:23:33 -0400
commitcb678c3670de4a435a3260ed80dc476da3860082 (patch)
tree99b062689fec2edc94c4af9e10efae9686b24c40 /libopencl
parent3ced1e68b56c8dfae3bd98e0ede6241e31cefaa2 (diff)
Move g_debug_ir_generation and GPGPUSim_Init
Signed-off-by: Mengchi Zhang <[email protected]>
Diffstat (limited to 'libopencl')
-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 50a02fa..e91e2e0 100644
--- a/libopencl/opencl_runtime_api.cc
+++ b/libopencl/opencl_runtime_api.cc
@@ -648,7 +648,9 @@ class _cl_device_id *GPGPUSim_Init()
{
static _cl_device_id *the_device = NULL;
if( !the_device ) {
- gpgpu_sim *the_gpu = gpgpu_ptx_sim_init_perf();
+ gpgpu_context *ctx;
+ ctx = GPGPU_Context();
+ gpgpu_sim *the_gpu = ctx->gpgpu_ptx_sim_init_perf();
the_device = new _cl_device_id(the_gpu);
}
start_sim_thread(2);