diff options
author | Zhigang Gong <zhigang.gong@intel.com> | 2015-04-10 09:54:49 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2015-04-10 16:21:38 +0800 |
commit | 4c530f94ee4e016e32997bb60f7f74589301b412 (patch) | |
tree | f1abd2bb2e14216efeeda9b5c75dd5af83dc208c /src/cl_event.h | |
parent | ee2c51cddd03c8d22c38612ec1bc40637d84b22d (diff) | |
download | beignet-4c530f94ee4e016e32997bb60f7f74589301b412.tar.gz |
runtime: Enhance the error handling when flush gpgpu command queue.
Beignet uses drm_intel_gem_bo_context_exec() to flush command queue to
linux drm driver layer. We need to check the return value of that function,
as it may fail when the application uses very large array.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
Reviewed-by: "Yang, Rong R" <rong.r.yang@intel.com>
Diffstat (limited to 'src/cl_event.h')
-rw-r--r-- | src/cl_event.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cl_event.h b/src/cl_event.h index 9bb2ac87..e3cd2b2f 100644 --- a/src/cl_event.h +++ b/src/cl_event.h @@ -103,6 +103,6 @@ cl_int cl_event_insert_user_event(user_event** p_u_ev, cl_event event); /* remove the user event */ cl_int cl_event_remove_user_event(user_event** p_u_ev, cl_event event); /* flush the event's pending gpgpu batch buffer and notify driver this gpgpu event has been flushed. */ -void cl_event_flush(cl_event event); +cl_int cl_event_flush(cl_event event); #endif /* __CL_EVENT_H__ */ |