Am Sun, 05 Oct 2014 11:47:45 +0200
Vincent Danjean <[email protected]> schrieb:

> On 05/10/2014 11:32, O. Hartmann wrote:
> > Am Sun, 05 Oct 2014 11:21:23 +0200
> > Vincent Danjean <[email protected]> schrieb:
> > 
> >> On 05/10/2014 10:17, Vincent Danjean wrote:
> >>> On 05/10/2014 09:42, Pekka Jääskeläinen wrote:
> >>>> On 10/04/2014 08:52 PM, O. Hartmann wrote:
> >>>>> ^ ; /usr/local/include/ocl_icd.h:930:11: error: unknown type name
> >>>>> 'cl_pipe_properties'; did you mean 'cl_context_properties'? const
> >>>>> cl_pipe_properties * /* properties */, ^~~~~~~~~~~~~~~~~~ 
> >>>>> cl_context_properties
> >>>>
> >>>> This is an ocl_icd.h issue. It refers to OpenCL 2.0 types while you 
> >>>> probably
> >>>> have 1.1 or 1.2 cl.h.
> >>>
> >>> Indeed, ocl-icd added support for OpenCL 2.0 since the 2.2.0 release.
> >> [...]
> >>> PS: in fact, perhaps entries must simply by garded by CL_VERSION_X_Y
> >>> macro, so that ocl_icd.h adapt itself to OpenCL headers used at build 
> >>> time.
> >>
> >> I just implemented that and releases 2.2.2. Please, check if this correctly
> >> fix your problem.
> >>
> >>   Regards,
> >>     Vincent
> 
> > Heia, this was fast!
> 
>   :-)
> 
>   I needed to fix this problem for Debian as there is good probability
> that only 1.2 OpenCL headers will be shipped with the next stable Debian.
> 
>   That said, reading your other mails, if you use 2.0 OpenCL headers,
> you should not have problems with any ocl_icd.h.
> You can check if you use 2.0 headers by adding in your code
> (or in pocl code, just to test) something like :
> #ifdef CL_VERSION_2_0
> # warning using 2.0 OpenCL headers
> #else
> #  error not using 2.0 OpenCL headers (probably 1.2)
> #endif
> 
>   Regards,
>     Vincent

When I define via CPPFLAGS -DCL_VERSION_2_0 and recompile POCL, the compiler 
drops at the
very same error I started this thread:

In file included from pocl_topology.c:24:
In file included from ../../../../lib/CL/pocl_cl.h:36:
In file included from ../../../../lib/CL/pocl_icd.h:39:
/usr/local/include/ocl_icd.h:33:34: warning: unknown warning group '-Wcpp', 
ignored
[-Wunknown-pragmas] #  pragma GCC diagnostic ignored "-Wcpp"
                                 ^
/usr/local/include/ocl_icd.h:1315:11: error: unknown type name 
'cl_queue_properties'; did
you mean 'cl_context_properties'? const cl_queue_properties *    /* properties 
*/,
          ^~~~~~~~~~~~~~~~~~~
          cl_context_properties

Having that, I checked the headers in /usr/loccal/include/CL/ and they are 2.0. 
So, since
the compiler complains about missing declarartions, I guess the POCL 
environment picks up
the wrong header files. Avoiding the -D flag makes POCL compile, but I have 
first
manually patch ocl_icd.h as I mentioned the bug earlier in the thread.


How can I disable POCL picking up the OpenCL headers provided by the sources 
and picking
the headers installed on the system?

Regards,
Oliver

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to