Am Sun, 05 Oct 2014 20:53:36 +0200 Vincent Danjean <[email protected]> schrieb:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 05/10/2014 19:09, O. Hartmann wrote:
> > I guess now compilation picks up the correct headers as installed on
> > FreeBSD. But I
> > realise a strange error. Compilation drops at:
> >
> > clCreateImage.c:154:31: error: no member named 'buffer' in 'struct
> > _cl_image_desc'
> > mem->buffer = image_desc->buffer; ~~~~~~~~~~ ^
> >
> > Checking the struct _cl_image_desc in CL 1.2 CL/cl.h gives
> >
> > typedef struct _cl_image_desc {
> [...]
> > cl_mem buffer; } cl_image_desc;
> >
> > and in CL 2.0
> >
> > typedef struct _cl_image_desc {
> [...]
> > union { cl_mem buffer; cl_mem mem_object;
> > }; }
> > cl_image_desc;
> >
> > The struct member buffer is a union in CL 2.0. Can this be addressed
> > somehow?
>
> which compiler and which compiler version are you using.
> If I recall one of your previous message, if you use gcc, you use
> a old version:
> 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"
>
> Anonymous union or struct in union or struct is a GCC extention for
> a long time and they have been introduced in c11, so any recent
> compiler should support them.
>
> Regards,
> Vincent
>
> > Regards, Oliver
Well, is LLVM/CLANG 3.5.0 too old for this kind of construction?
I will investigate.
oh
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
