6 Replies Latest reply: May 25, 2010 5:04 PM by omkaranathan RSS

Installing OpenCL

Chocrates Newbie
Currently Being Moderated

I am having trouble getting opencl up and running.  I am trying to install it on my ubuntu 10.4 box with an ati mobility hd4570 card. 

So far i have tried to follow the steps in http://developer.amd.com/gpu/ATIStreamSDK/assets/ATI_Stream_SDK_Installation_Notes.pdf

also found from this forum i believe that you need to register the icd from this post: http://forums.amd.com/forum/messageview.cfm?catid=390&threadid=129154

i do that, go to the samples folder and hit make, then go to the bin and try hellocl and get the error in the above post.

Anyone have any idea what else i need to be doing to get it working?

Of note, when i run findnumdevices i get a 1, presumably the cpu, so i also dont know if i have the right driver installed

 

  • Installing OpenCL
    nou Expert
    Currently Being Moderated

    try install my package for ubuntu.

    • Installing OpenCL
      omkaranathan Apprentice
      Currently Being Moderated

      Chocrates,

      ICD registration is different for SDK 2.01 and SDK 2.1. Did you do it the correct way?

      The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions and typographical errors. Links to third party sites are for convenience only, and no endorsement is implied.
      • Installing OpenCL
        Chocrates Newbie
        Currently Being Moderated

        I'm not sure if i did the correct icd version, i think its in /usr/lib/OpenCL/vendor/

        but ill check when i get back to my laptop.

        I also tried your ubuntu package to no avail.

         

        • Installing OpenCL
          nou Expert
          Currently Being Moderated

          no now it is file in /etc/OpenCL/vendors

          hm it can not download? strange. try it download again.

          • Installing OpenCL
            Chocrates Newbie
            Currently Being Moderated

            alright, it turns out that your package worked as intended, i just had $LD_LIBRARY set to something wierd, changed it to /etc/OpenCL/vendors and HelloCL compiles and runs.  Findnumdevices still gives me 1, but i really have no idea what its supposed to do so i will start writing some code and see if i have it working how i want it.

             

            Thanks!

            • Installing OpenCL
              omkaranathan Apprentice
              Currently Being Moderated

              FindNumDevices returns the number of GPU's present. It is working as expected.

              The information presented in this document is for informational purposes only and may contain technical inaccuracies, omissions and typographical errors. Links to third party sites are for convenience only, and no endorsement is implied.

More Like This