Hi,

On Wed, 18 Jun 2014 09:30:36 -0400
Erik Schnetter <[email protected]> wrote:

> The tests for OpenCL C properties should be run with OpenCL C code, not with 
> C code. That is, the respective autoconf test files should have the extension 
> .cl (not .c), and should be compiled with "clang -x cl". This should give us 
> the correct type sizes, for all types.

That is actually the case; see line 934 in configure.ac:

if [echo "constant int test[sizeof(long)==8?1:-1]={1};" | $CLANG
$HOST_CLANG_FLAGS -S -x cl - ]

This sets the _CL_DISABLE_LONG ac variable.

Anyway, the _CL_DISABLE_LONG is unrelated to SIZEOF_* stuff, kraiskil
was a bit mistaken here.

Regards,
-- mb


------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to