cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

DFYX
Journeyman III

write_imagef causes build to fail

write_imagef causes "Error: Undeclared function index 1028"

I just tried to run the QtOpenCL examples on Windows 7 x64, ATI Radeon HD4850, Catalyst 11.9, APP SDK 2.5 x64, MS Visual Studio 2008. Every kernel that contains a call to write_imagef causes an error in clBuildProgram. In case of the attached example it's "Error: Undeclared function index 1028". Replacing it with write_imagei leads to no error.

__kernel void fillRectWithColor (__write_only image2d_t dstImage, int offsetX, int offsetY, int limitX, int limitY, float4 color) { int x = get_global_id(0) + offsetX; int y = get_global_id(1) + offsetY; if (x < limitX && y < limitY) write_imagef(dstImage, (int2)(x, y), color); }

0 Likes
3 Replies
himanshu_gautam
Grandmaster

Hi,

Are you trying to do read for a write_only image? That is not possible

0 Likes

HD4XXX does not support images. I've reported this issue to the correct developer.
0 Likes

Is there a list that shows which features are supported by which card? Preferably divided into "supported", "not supported by hardware" and "not yet supported by driver" or something like that.

0 Likes