Hi, Pekka

I think it is a printf issue, I open an issue on github
https://github.com/pocl/pocl/issues/432

Please help. 
Thanks.


 
------------------ Original ------------------
From:  "Pekka Jääskeläinen"<[email protected]>;
Date:  Mon, Jan 23, 2017 02:54 PM
To:  "Portable Computing Language development 
discussion"<[email protected]>; 

Subject:  Re: [pocl-devel] Coverting size_t to ulong problem when using pocl

 
Hi,

Looks weird indeed. A couple of questions:

- Which version of LLVM you are using?
- Which version of pocl?
- Did you try the same code with x86_64?
- Are you sure it's not the printf() that's buggy? Can you print any ulong
on ARM successfully?

Please open an issue in github with these answered.

Thanks,
Pekka

On 01/21/2017 11:13 AM, web wrote:
> 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
> 

-- 
Pekka

------------------------------------------------------------------------------
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
------------------------------------------------------------------------------
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

Reply via email to