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

Yang, Rong R rong.r.yang at intel.com
Wed Dec 28 10:26:52 UTC 2016


Pushed.

> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> He Junyan
> Sent: Wednesday, December 28, 2016 17:56
> To: beignet at lists.freedesktop.org
> Subject: Re: [Beignet] [PATCH] Runtime: return
> CL_INVALID_EVENT_WAIT_LIST if not event in the wait list.
> 
> 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
> 
> 
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list