Hi, Pekka, Vincent,

1. It is written in ocl-icd documentation, that this variable may point to 
specific vendor. Obviously enough it should use this single vendor in this case.


2. $ ldd /usr/lib/libpocl.so.1.2.0
does not show any broken dependencies.


3. I start to think that maybe it is some ocl-icd <--> pocl interoperability 
issue.
My first call to OpenCL is  clGetPlatformIDs(0, null, handlesLength);

And this call (in case of pocl) always returns error code 
CL_PLATFORM_NOT_FOUND_KHR with handlesLength==0

It also returns this error and zero in handlesLength even when I call  
clGetPlatformIDs(1, handles, handlesLength);

What is important is that there is no message from ocl-icd in debug mode on 
console!
When I use original AMD's implementation, ocl-icd prints following as the very 
first line:

> ocl-icd(ocl_icd_loader.c:60): dump_vendor_icd: before looking for platforms 
> 0x2863fa0={ num=-396530024, first=32644, handle=0x2864cd0, 
> f=0x747365542f6e6942}

But it does not print anything in case of POCL.


Thank you in advance,
Oleg.



Среда, 26 февраля 2014, 23:25 +02:00 от Pekka 
Jääskeläinen<[email protected]>:
>On 02/26/2014 10:56 PM, Anti_Tenzor wrote:
>> When I specify OCL_ICD_VENDORS=/etc/OpenCL/vendors/pocl.icd
>
>IIRC this should point to the _directory_ containing ICD files,
>not the ICD file. I do not know why it works for your AMD though.
>
>Another reason it can fail is that your libpocl.so for some
>reason has unresolved symbols. E.g., trying to link to LLVM
>which cannot be found by the ld.so. Use the 'nm' or 'ldd' tools
>to debug.
>
>-- 
>--Pekka
>

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
pocl-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pocl-devel

Reply via email to