Results 1 to 5 of 5

Thread: Open-source libOpenCL.so

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    1

    Open-source libOpenCL.so

    I'm part of a group of developers of open-source library for volume data processing. We're using (amongs others) OpenCL for computations on GPUs. We're using openSUSE's Open Build Service (OBS) for creating packages for various Linux distributions. Our problem is that OpenCL drivers are proprietary and thus unavailable at OBS forcing us to omit OpenCL version of the library from building/packaging.

    Upon inspecting the OpenCL drivers present at our systems (from AMD & nVidia) we observed, that libOpenCL.so library contains just code for localising of ICD files installed in the system and redirecting the requests to library with real implementation (it seems to do only and just this).

    If this library (libOpenCL.so) was to be released as open-source, it would be possible to build and distribute OpenCL applications without need of any proprietary library or application. To execute the OpenCL application, some full-featured implementation of the OpenCL standard would be still necessary.

    My question is, whether it would be possible to open-source your code (just this one library - libOpenCL.so)? I have already written to the AMD and they replied that libOpenCL.so is owned by Khronos.

  2. #2
    Junior Member
    Join Date
    May 2012
    Posts
    1

    Re: Open-source libOpenCL.so

    We (the Open Grid Scheduler/Grid Engine http://gridscheduler.sourceforge.net/ project) were looking for the same thing, and we found that libOpenCL.so is based on the ICD Loader specification:

    http://www.khronos.org/registry/cl/exte ... hr_icd.txt

    One can easily write an open source implementation of it, and in fact we found one at:

    http://freeocl.googlecode.com

    Misc:
    - not sure if you granxarixia have already found a solution, but at least others who wanted to do the same thing would benefit. (I was doing ldd, nm, nm -D, strings, gdb, etc... to find out what's inside libOpenCL.so)

    - not that we think it is a big deal to link against any closed source libraries, but many Linux distributions don't ship closed source libraries, and that's why I was trying to roll my own!

  3. #3
    Junior Member
    Join Date
    Jun 2012
    Posts
    4

    Re: Open-source libOpenCL.so

    We implemented a free (BSD Licence) ICD Loader. The project is here:
    https://forge.imag.fr/projects/ocl-icd/
    And I uploaded it into Debian (so it is also available into Ubuntu).

    It is based on the specification available here:
    http://www.khronos.org/registry/cl/exte ... hr_icd.txt
    And missing information have been guessed by observation of current implementation
    (all is in the sources, so new functions can easily be added when a non-free ICD Loader implement them)

    Feedback and patches welcome.

  4. #4
    Junior Member
    Join Date
    Nov 2012
    Posts
    2

    Re: Open-source libOpenCL.so

    Of possible interest, we are developing a backward compatible loader (libocl.so) that adds additional features such as allowing ocl.conf files to be more precise in system configuration (/etc/OpenCL/vendors/ remains as a fallback) and supporting OpenCL RPC. Code is part of the COPRTHR SDK. Open-source L/GPLv3 licensed. Current code is available now on our 'current' branch and will be in release version before end of year. https://github.com/browndeer/coprthr

  5. #5
    Junior Member
    Join Date
    Nov 2012
    Posts
    2

    Re: Open-source libOpenCL.so

    Just a follow-on post - none of the third-party solutions (including ours) are a substitute for an open-source libOpenCL.so reference implementation. We should not have to guess at the call vector order for an open standard. Please release the official loader open-source for 2.0. Thanks.

Similar Threads

  1. OpenML open source SDK
    By jarno in forum OpenML Coding & Technical Issues
    Replies: 9
    Last Post: 05-24-2005, 01:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •