Am Sun, 05 Oct 2014 18:57:40 +0300 Pekka Jääskeläinen <[email protected]> schrieb:
> On 10/05/2014 06:02 PM, O. Hartmann wrote:
> > How can I disable POCL picking up the OpenCL headers provided by the
> > sources and
> > picking the headers installed on the system?
>
> I don't think there is a build option to do this at the moment easily.
>
> The other way around used to be a problem: A too old or plain broken
> cl.h was included from the system and pocl could not be built as 1.2
> (and, in the future, 2.0) headers were assumed.
>
> You can try adding -I/usr/include (or wherever your system CL/cl.h is)
> to the beginning of libpocl_la_CPPFLAGS in Makefile.am of /lib/CL to
> get started.
>
> --
> --Pekka
All right, following your advice, I had to patch a lot of Makefile.am.
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_object_type image_type;
size_t image_width;
size_t image_height;
size_t image_depth;
size_t image_array_size;
size_t image_row_pitch;
size_t image_slice_pitch;
cl_uint num_mip_levels;
cl_uint num_samples;
cl_mem buffer;
} cl_image_desc;
and in CL 2.0
typedef struct _cl_image_desc {
cl_mem_object_type image_type;
size_t image_width;
size_t image_height;
size_t image_depth;
size_t image_array_size;
size_t image_row_pitch;
size_t image_slice_pitch;
cl_uint num_mip_levels;
cl_uint num_samples;
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?
Regards,
Oliver
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
