jrprice / ocl_icd_wrapper Goto Github PK
View Code? Open in Web Editor NEWOpenCL ICD wrapper for implementations that don't support the ICD extension.
License: BSD 2-Clause "Simplified" License
OpenCL ICD wrapper for implementations that don't support the ICD extension.
License: BSD 2-Clause "Simplified" License
This would be exactly what I was looking for, except that it doesn't work for me on OS X 10.9.5 .
After having gotten it to build, ocl-icd
rejects the Apple ICD:
> env OCL_ICD_DEBUG=7 clinfo
ocl-icd(ocl_icd_loader.c:856): __initClIcd: Reading icd list from '/opt/local/etc/OpenCL/vendors'
ocl-icd(ocl_icd_loader.c:201): _find_num_icds: return: 2/0x2
ocl-icd(ocl_icd_loader.c:242): _open_driver: Considering file '/opt/local/etc/OpenCL/vendors/AppleCL.icd'
ocl-icd(ocl_icd_loader.c:216): _load_icd: Loading ICD '/opt/local/lib/AppleCL/libocl_icd_wrapper.dylib'
ocl-icd(ocl_icd_loader.c:220): _load_icd: ICD[0] loaded
ocl-icd(ocl_icd_loader.c:274): _open_driver: return: 1/0x1
ocl-icd(ocl_icd_loader.c:242): _open_driver: Considering file '/opt/local/etc/OpenCL/vendors/pocl.icd'
ocl-icd(ocl_icd_loader.c:216): _load_icd: Loading ICD '/opt/local/lib/pocl/libpocl.2.12.0.dylib'
ocl-icd(ocl_icd_loader.c:220): _load_icd: ICD[1] loaded
ocl-icd(ocl_icd_loader.c:274): _open_driver: return: 2/0x2
ocl-icd(ocl_icd_loader.c:287): _open_drivers: return: 2/0x2
ocl-icd(ocl_icd_loader.c:444): _find_and_check_platforms: Checking ICD 0/2
ocl-icd(ocl_icd_loader.c:292): _get_function_addr: Looking for function clGetExtensionFunctionAddress
ocl-icd(ocl_icd_loader.c:310): _get_function_addr: return: 4466486368/0x10a392c60
ocl-icd(ocl_icd_loader.c:292): _get_function_addr: Looking for function clIcdGetPlatformIDsKHR
ocl-icd(ocl_icd_loader.c:310): _get_function_addr: return: 4466486144/0x10a392b80
ocl-icd(ocl_icd_loader.c:292): _get_function_addr: Looking for function clGetPlatformInfo
ocl-icd(ocl_icd_loader.c:301): _get_function_addr: Missing function 'clGetPlatformInfo' in ICD, should be skipped
ocl-icd(ocl_icd_loader.c:310): _get_function_addr: return: 140735489009106/0x7fff88d465d2
ocl-icd(ocl_icd_loader.c:499): _find_and_check_platforms: Try to load 1 platforms
ocl-icd(ocl_icd_loader.c:315): _allocate_platforms: Requesting allocation for 1 platforms
ocl-icd(ocl_icd_loader.c:325): _allocate_platforms: return: 1/0x1
ocl-icd(ocl_icd_loader.c:506): _find_and_check_platforms: Checking platform 0
ocl-icd(ocl_icd_loader.c:151): _clerror2string: return: CL_INVALID_PLATFORM
ocl-icd(ocl_icd_loader.c:335): _malloc_clGetPlatformInfo: Error CL_INVALID_PLATFORM while requesting extensions in platform 0x7fdd82521840
ocl-icd(ocl_icd_loader.c:540): _find_and_check_platforms: Skipping platform 0
The invalid platform return doesn't come from the wrapper, as far as I can tell.
Anyone still here who's interested to think along?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.