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
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!
BR,
Oleg.
------------------------------------------------------------------------------
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