[Beignet] [BUG] kernel fails at the backend
Matt Harvey
matthewharveys at gmail.com
Sat Oct 5 22:30:15 PDT 2013
Hi
I'm having trouble and was wondering if you guys had any insight. This
simple kernel:
__constant sampler_t sampler = CLK_NORMALIZED_COORDS_FALSE |
CLK_ADDRESS_CLAMP_TO_EDGE | CLK_FILTER_NEAREST;
__kernel void edge_detect(__read_only image2d_t image_in,
__write_only image2d_t image_out)
{
const int2 pos = { get_global_id(0), get_global_id(1) };
//make this a pass through
float4 data = read_imagef(image_in, sampler, pos);
write_imagef(image_out, pos, data);
}
Fails after compilation with this error message:
ASSERTION FAILED: arg != NULL
at file /media/matto/Programming/src/beignet/backend/src/ir/sampler.cpp,
function void gbe::ir::SamplerSet::append(gbe::ir::Register,
gbe::ir::Context*), line 60
Stack dump:
0. Running pass 'Function Pass Manager' on module '/tmp/fileB926yJ.ll'.
1. Running pass 'Gen Back-End' on function '@edge_detect'
This looks like a bug to me.
Any ideas?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/beignet/attachments/20131006/58e191a2/attachment.html>
More information about the Beignet
mailing list