Is there any other method to test whether the system has this capability? We need to check it when user create a context, and then set the CL_DEVICE_HOST_UNIFIED_MEMORY according to whether we have this capability rather than set this bit statically.
> -----Original Message----- > From: Beignet [mailto:[email protected]] On Behalf Of > Zhenyu Wang > Sent: Friday, November 7, 2014 1:43 PM > To: Zhigang Gong > Cc: Guo Yejun; [email protected] > Subject: Re: [Beignet] [PATCH V2 1/3] support CL_MEM_USE_HOST_PTR with > userptr for cl buffer > > On 2014.11.07 11:51:08 +0800, Zhigang Gong wrote: > > I have one major comment, what if the running system doesn't support > userptr? > > We may need to check whether we can use userptr feature at runtime > > rather than compile time, right? > > It's already handled by libdrm interface that if you run old kernel without > userptr support, you won't get bo alloc from libdrm, as in current method just > fallback to copy case. > > -- > Open Source Technology Center, Intel ltd. > > $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827 _______________________________________________ Beignet mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/beignet
