Results 1 to 3 of 3

Thread: build static OpenCL library

  1. #1
    Junior Member
    Join Date
    Dec 2012

    build static OpenCL library


    I have downloaded AMDAPP SDK for OpenCL on Debian Squeeze. I would like to know if it is possible to build statically the OpenCL librairies. Currently, I have got in the "/opt/AMDAPP/lib/x86_64/" directory :

    one may have : libglut.a libamdocl64.a libOpenCL.a libGLEW.a ??

    I try to look options in the Makefile but without success.

    anyone could tell me if we can do this and how ?

  2. #2
    Senior Member
    Join Date
    Dec 2011

    Re: build static OpenCL library

    In order for the OpenCL ICD (Installable Client Driver) mechanism to work (and support whichever hardware and drivers you have installed), you need to use OpenCL.DLL (e.g., under Windows) which is a dispatch layer to the driver. You can't statically link against it. However, you can statically link against the LIB file provided with your SDK which dynamically loads the DLL.

  3. #3

    Re: build static OpenCL library

    It would be good to have a statically linked OpenCL CPU backend, that is always available.

    Perhaps an open source OpenCL implementation can do it. It can coexist with the ICD.

Similar Threads

  1. Linking Kernel with Static Library
    By paan9568 in forum OpenCL
    Replies: 1
    Last Post: 10-13-2012, 04:50 AM
  2. opencl build error..!!
    By phoebe0105 in forum OpenCL
    Replies: 14
    Last Post: 02-07-2011, 08:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean