[Beignet] [PATCH] Runtime: return CL_INVALID_EVENT_WAIT_LIST if not event in the wait list.

He Junyan junyan.he at inbox.com
Wed Dec 28 09:55:45 UTC 2016


Thanks for catching that bug.

On Wed, Dec 28, 2016 at 06:47:01PM +0800, Yang Rong wrote:
> Date: Wed, 28 Dec 2016 18:47:01 +0800
> From: Yang Rong <rong.r.yang at intel.com>
> To: beignet at lists.freedesktop.org
> Cc: Meng Mengmeng <mengmeng.meng at intel.com>, Yang Rong
>  <rong.r.yang at intel.com>
> Subject: [Beignet] [PATCH] Runtime: return CL_INVALID_EVENT_WAIT_LIST if
>  not event in the wait list.
> X-Mailer: git-send-email 2.1.4
> 
> From: Meng Mengmeng <mengmeng.meng at intel.com>
> 
> Signed-off-by: Yang Rong <rong.r.yang at intel.com>
> ---
>  src/cl_event.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/cl_event.c b/src/cl_event.c
> index 8173578..644a21f 100644
> --- a/src/cl_event.c
> +++ b/src/cl_event.c
> @@ -546,7 +546,7 @@ cl_event_check_waitlist(cl_uint num_events_in_wait_list, const cl_event *event_w
>      /* check the event and context */
>      for (i = 0; i < num_events_in_wait_list; i++) {
>        if (!CL_OBJECT_IS_EVENT(event_wait_list[i])) {
> -        err = CL_INVALID_EVENT;
> +        err = CL_INVALID_EVENT_WAIT_LIST;
>          break;
>        }
>  
> -- 
> 2.1.4
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet




More information about the Beignet mailing list