It looks like there's an issue with libOpenCL on the Yocto builds, I can't get 
it to compile any kernels which work correctly under LTIB.

On 2013-05-30, at 11:34 PM, Sébastien Taylor <[email protected]> wrote:

> Running the same code under the LTIB BSP I am getting the compiler errors so 
> this is specific to the version in Yocto 1.4.  I'll dig more to see library 
> version differences.
> 
> In terms of the error, it was complaining about the const sampler_t outside 
> the function.
> 
> 
> On 2013-05-30, at 9:10 PM, Sébastien Taylor <[email protected]> wrote:
> 
>> I am unable to find the source code for the Vivante SDK OpenCL samples.  I 
>> am having issues with the most basic of kernels failing to build with the 
>> error CL_BUILD_PROGRAM_FAILURE and clGetProgramBuildInfo with 
>> CL_PROGRAM_BUILD_LOG is returning an empty string.  I have tested this code 
>> against the Mac OpenCL Framework and it works correctly, to my knowledge I 
>> am not using any unsupported features for the Embedded Profile.  Are there 
>> any known issues with the Vivante CL compiler completely failing to return 
>> error logs?  I've included the basic .cl which is failing to compile.
>> 
>> 
>> const sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE | CLK_ADDRESS_NONE | 
>> CLK_FILTER_NEAREST;
>> 
>> __kernel void copy(__read_only image2d_t sourceImage,
>>                  __write_only image2d_t targetImage,
>>                  const uint width, const uint height)
>> {
>>   const uint gx = get_global_id(0);
>>   const uint gy = get_global_id(1);
>> 
>>   if (gx >= width || gy >= height)
>>       return;
>> 
>>   int2 imageuv = (int2)(gx, gy);
>>   float4 pixel = read_imagef(sourceImage, sampler, imageuv);
>>   write_imagef(targetImage, imageuv, pixel);
>> }
>> 
> 

_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Reply via email to