On 26/02/2014 21:56, Anti_Tenzor wrote:
> Hi,
> 
> 1. I was able to compile ocl-icd (many thanks to Vincent).
> Then I specified environment variables OCL_ICD_DEBUG=8 and 
> OCL_ICD_VENDORS=/etc/OpenCL/vendors/amdocl64.icd

OCL_ICD_DEBUG is a bitmask :
       OCL_ICD_DEBUG
           If ocl-icd has been compiled with debug support, you can set this 
environment variable to a value where each bit display some kind of
           informations. Defined values are:

           ·   1: warnings (enabled by default if debug support is present and 
OCL_ICD_DEBUG is not set)

           ·   2: informative messages

           ·   4: entering/exiting for some OpenCL functions

           ·   8: dump of the internal structure of loaded ICDs

If I remember, 2 allow to see where ICD are searched and which one are tried to
be loaded.

> Now when I start my application, it runs smoothly with a lot of debugging 
> info. In this output there are a lot of messages "dump_platform: 
> clUnknownXXX=(nil)".
> Maybe this part of log will be interesting to Vincent:
> 
> ocl-icd(ocl_icd_loader_gen.c:1687): dump_platform:                            
>  clUnknown120=0x7f84e4f89c23 [(nil)/(nil)]
> ocl-icd(ocl_icd_loader_gen.c:1688): dump_platform:                            
>  clUnknown121=(nil) [(nil)/(nil)]
> ocl-icd(ocl_icd_loader_gen.c:1689): dump_platform:                            
>  clUnknown122=(nil) [(nil)/(nil)]
> ocl-icd(ocl_icd_loader.c:389): _find_and_check_platforms: Supported 
> extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices
> ocl-icd(ocl_icd_loader.c:404): _find_and_check_platforms: Extension suffix: 
> AMD
> ocl-icd(ocl_icd_loader.c:408): _find_and_check_platforms: Profile: 
> FULL_PROFILE
> ocl-icd(ocl_icd_loader.c:414): _find_and_check_platforms: Version: OpenCL 1.2 
> AMD-APP (1124.2)
> ocl-icd(ocl_icd_loader.c:419): _find_and_check_platforms: Name: AMD 
> Accelerated Parallel Processing
> ocl-icd(ocl_icd_loader.c:424): _find_and_check_platforms: Vendor: Advanced 
> Micro Devices, Inc.
> ocl-icd(ocl_icd_loader.c:60): dump_vendor_icd: after looking for platforms 
> 0x2863fa0={ num=-396530024, first=32644, handle=0x2864cd0, f=0x7f84e3a4f880}
> 
> 
> Now I'm pretty sure that ocl-icd works and that it correctly use AMD's 
> implementation (at least with help of environment variables).
> 
> 
> 2. Now there are bad news for pocl ;-)
> When I specify OCL_ICD_VENDORS=/etc/OpenCL/vendors/pocl.icd  (which points to 
> existing file /usr/lib/libpocl.so.1.2.0),
> I receive an error when I query available platforms. It returns error code: 
> "CL_PLATFORM_NOT_FOUND_KHR".
> 
> I think this means that for some strange reason libpocl does not like ocl-icd 
> (in my environment)...
> Oh! I'll try to recompile pocl now with new libOpencCL.so created by ocl-icd!

As Pekka said, I think that ocl-icd tries to load the pocl ICD but fails for
any reason.
Please, try this latter case with OCL_ICD_DEBUG set to 2 (or even 15)
and, if messages are not clear, send the output to me.

  Regards,
    Vincent


> BR,
> Oleg.


-- 
Vincent Danjean          Adresse: Laboratoire LIG - Bât. INRIA Rhône-Alpes
Téléphone:  +33 4 76 61 55 10            655 avenue de l'Europe
Fax:        +33 4 76 61 52 52            Montbonnot Saint Martin
Email: [email protected]           38334 Saint-Ismier cedex

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