Hi, All
I am writting a OpenCL program with pocl on Parallella, a zynq(cortex-A9) base
device.
The problem is when I try to use the get_global_id(0) as a ulong, it returns a
strange value.
I try the same kernel on my desktop with AMD's OpenCL SDK, it works fine.
Can anyone help? Is there any limitation when I use pocl to do this?
Here is my kernel code
__kernel void search(__global unsigned char* block, volatile __global uint*
output) {
printf("[OCL_KNL]: gid = 0x%08x\n", (uint)get_global_id(0));
printf("[OCL_KNL]: (ulong)gid = 0x%08lx\n", (ulong)get_global_id(0));
}
Here is the output
[OCL_KNL]: (ulong)gid = 0xb170f526b1f519ee
[OCL_KNL]: gid = 0x00000000
[OCL_KNL]: (ulong)gid = 0xb170f526b1f519ee
[OCL_KNL]: gid = 0x00000001
[OCL_KNL]: (ulong)gid = 0xb170f526b1f519ee
[OCL_KNL]: gid = 0x00000002
[OCL_KNL]: (ulong)gid = 0xb170f526b1f519ee
........------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel