On 19.01.2017 16:18, web wrote:
> Hi, All
>
> I have installed both coprthr and pocl on Parallella, a zynq(cortex-A9) base 
> device.
> My question is how do I know which OpenCL platform do I used when I compile 
> my program'

> my compile command is
> gcc main.c -O3 -lm -D DEVICE=CL_DEVICE_TYPE_CPU -lOpenCL -fopenmp -I . -o main

You are using the libOpenCL.so on your system.
This might be coprthr, pocl or an ICD loader.

In your case it seems to be an ICD loader, as you are seeing several 
clPlatforms in your program.

 > There is a strange output coprthr-1.6.2 (Freewill) at the very beginning of 
 > my program

I'm guessing this is debug output from some initialization function in coprthr. 
Since you use an ICD,
both OpenCL implementations are loaded at your programs start, and some code 
from coprthr is executed.
But if you use the pocl platformID in your code, then pocl is used, not coprthr.


cheers,
kalle

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