Page 1 of 3 123 LastLast
Results 1 to 10 of 30

Thread: Installing OpenCL on Lucid

  1. #1
    Join Date
    Jul 2010
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Installing OpenCL on Lucid

    Hello All,

    I am a new user of Ubuntu and I am trying to install OpenCL on the Lucid version. I am working to integrate my HD 5770 GPU into some of my code by using OpenCL.

    I am wondering if there are any installation guides for OpenCL on Ubuntu or if anybody has successfully done this.

    My system contains:

    AMD Phenom 9500
    ATI HD 5770
    Ubuntu 10.04 64 bit distribution

  2. #2
    Join Date
    Mar 2008
    Location
    Hungary
    Beans
    12

    Re: Installing OpenCL on Lucid

    Hi!
    As I know this is the only way, you can use OpenCL on linux with ATI Graphics Card.

    On this site you can download ATI Stream SDK for linux. Unpack the downloaded file somewhere in your home directory.

    You have to download the icd-registration.tgz file also, and extract it into the root directory:
    Code:
    cd /
    sudo tar xzf /path/to/file/icd-registration.tgz
    This will unpack 2 files in the /etc/OpenCL/vendors directory.

    Second, put these lines in your .bashrc:
    Code:
    export LD_LIBRARY_PATH=$LD_LIBRARY_PATH":/path/to/ati-stream-sdk-v2.2-lnx32/lib/x86/"
    export LIBRARY_PATH=$LIBRARY_PATH":/path/to/ati-stream-sdk-v2.2-lnx32/lib/x86/"
    export C_INCLUDE_PATH=$C_INCLUDE_PATH":/path/to/ati-stream-sdk-v2.2-lnx32/include/"
    Of course you have to change the "/path/to" things. These environmental variables are for 32 bit linux, figure it out for 64bit.

    After this in the C file you have to include
    Code:
    #include <CL/opencl.h>
    In example OpenCL sources there are other variations for the include file, like OpenCL/OpenCL.h or CL/OpenCL.h, but never mind.

    Now you can simply compile with
    Code:
    gcc source.c -o prog -lOpenCL
    Here you need a new terminal in order to let bash know the changes in the .bashrc.
    If you do not set the environmental variables you have to tell the compiler where are the needed files with
    Code:
    gcc source.c -o prog -I /path/to/ati-stream-sdk-v2.2-lnx32/include -L /path/to/ati-stream-sdk-v2.2-lnx32/lib/x86/ -lOpenCL
    The LD_LIBRARY_PATH is needed for running an OpenCL program.

  3. #3
    Join Date
    Jul 2010
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Installing OpenCL on Lucid

    Thank you very much for the help kutya61! I appreciate the help

  4. #4
    Join Date
    Jul 2005
    Beans
    183

    Re: Installing OpenCL on Lucid

    I'm trying to get this going on Maverick. I think I did everything right but when I run make I get this:

    Code:
    In file included from BoxFilterGLSAT.hpp:105,
                     from BoxFilterGL.cpp:93:
    ../../../../../include/GL/glew.h:1138: fatal error: GL/glu.h: No such file or directory
    compilation terminated.

    Help!

  5. #5
    Join Date
    Mar 2008
    Location
    Hungary
    Beans
    12

    Re: Installing OpenCL on Lucid

    Hi!
    You should install libglew1.5-dev and libglu1-mesa-dev packages. The former will give you /usr/include/GL/glew.h, and the latter will give /usr/include/GL/glu.h .
    The command:
    Code:
    sudo apt-get install libglew1.5-dev libglu1-mesa-dev
    I think you have libglew1.5-dev already, only the other is missing. These libraries are not related to OpenCL, but OpenGL.

  6. #6
    Join Date
    Mar 2008
    Location
    Vancouver, Canada
    Beans
    4
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Installing OpenCL on Lucid

    You can download Ubuntu ATI OpenCL packages now from
    http://forums.amd.com/forum/messagev...VIEWTMP=Linear
    Last edited by obinine; January 6th, 2011 at 10:09 PM.

  7. #7
    Join Date
    Jul 2005
    Beans
    183

    Re: Installing OpenCL on Lucid

    Has anyone tried enabling OpenCL Link in Mathematica 8?

    I have been able to build and run the sample apps that come with the stream SDK pack, but no luck with Mathematica.

  8. #8
    Join Date
    Sep 2006
    Beans
    1,188
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Installing OpenCL on Lucid

    Hello,

    trying to compile another program with opencl I came across your post.

    For mathematica I saw that openCLLink should do the job on what you are asking. Since your sdk installation went ok, as long as you are able to run the examples, then have you tried to do from mathematica the following:
    http://reference.wolfram.com/mathema...html#509267359

    what are the output you get from there commands?

    If you have informed your .bashrc correctly about opencl libraries these should not post errors, as mathematica does not require a special installation procedure in order to use opencl libraries.

    Regards!

  9. #9
    Join Date
    Apr 2011
    Beans
    1

    Re: Installing OpenCL on Lucid

    Hello all,


    I try to use openCL with Nvidia Quardo FX 1700. I install gpucomputingSDK , cudatoolkit and the driever card. Baut when i compile the source. i have an error : cl_platform.h file not found.
    But it's in the same folder than cl.h.

    Any idea please ?

  10. #10
    Join Date
    Mar 2010
    Location
    LIthuania
    Beans
    5
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Installing OpenCL on Lucid

    Really liked the guide of how to setup amd_app here. But it seems I have a problem with my version of catalyst (?). Any ideas ho w to fix:
    *** CAL version mismatch:
    This OpenCL build requires version 1.4.879, version 1.4.838 installed.

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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