[Beignet] OpenCV program defines clashing with ocl_stdlib.h

Song, Ruiling ruiling.song at intel.com
Mon Aug 4 20:26:40 PDT 2014


Hi Tony,

Thanks for reporting the problem.
Currently I don't see a simple fix. We are now working on separate the compilation of user kernel and built-in (built-in functions will be compiled offline).
After that, the problem will disappear.

Thanks!
Ruiling
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Moore, Anthony W
Sent: Saturday, August 02, 2014 12:25 AM
To: beignet at lists.freedesktop.org
Subject: [Beignet] OpenCV program defines clashing with ocl_stdlib.h

Hello,

I'm using OpenCV 3.0 and running some of the OpenCL performance tests and was having trouble building some of the kernels. The problem is the define 'T'  on the build command line (-D T=float -D cn=1 -D convertToT=noconvert -D INTEL_DEVICE) is clashing with a 'float T[13]' found in ocl_stdlib.tmp.h causing syntax errors. I've made modifications (/T/__T/, /cn/__cn/) to the template header file and I'm able to compile now but wanted to share the problem and see how this should be handled.

thanks
Tony


_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet


More information about the Beignet mailing list