4 Replies Latest reply: Mar 27, 2013 1:34 AM by himanshu.gautam RSS

Not same behavior of AMD APP SDK between windows 7 and Kubuntu

twintip31 Newbie
Currently Being Moderated

Hi,

 

I developped a simple test code that prints CPU and GPU devices supported on the host platform.

 

I used same hardware and I compiled/tested the same code on two different OS : Windows 7 64bit and Ubuntu 12.04 LTS with same version APP SDK 2.7

 

The CPU is recognized the same way on both, but GPU is not OpenCL capable on Ubuntu side ... however I installed the fglrx driver correctly (version 12.6) which shall be supported by APP SDK 2.7

 

I guess something shall be still wrong with my fglrx installation somewhere .... ???

 

As it's working on Windows 7, I guess my GPU HW is OpenCL capable (Mobility RADEON HD 4570)

 

Please advice

 

(I attached the sample C code I use....)

  • Re: Not same behavior of AMD APP SDK between windows 7 and Kubuntu
    twintip31 Newbie
    Currently Being Moderated

    Hi again,

     

    Here is the difference I have between Win7 and Kubuntu when I use clinfo tool in attachment.

     

    I saw some users are using fglrx 13.3beta drivers, I will check if I can use them and see if it solves my problem....

     

    Regards

    David

    • Re: Not same behavior of AMD APP SDK between windows 7 and Kubuntu
      himanshu.gautam Master
      Currently Being Moderated

      Are you connecting remotely to your linux machine?

      Is X-server running?

      Try logging into X-server console directly and run "clinfo" from an xterm and see if GPU is visible.

      Regards

      Himanshu , Bruhaspati

      --------------------------------

      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

      • Re: Not same behavior of AMD APP SDK between windows 7 and Kubuntu
        twintip31 Newbie
        Currently Being Moderated

        After installing 12.8 sdk version and directly using the laptop instead of sshx connection i can now get the GPU device for openCL !!

        • Re: Not same behavior of AMD APP SDK between windows 7 and Kubuntu
          himanshu.gautam Master
          Currently Being Moderated

          There are forum thread that have discussed this issue extensively.

           

          Check this thread ioctl permissions on Linux

           

          (not sure why fonts bloated up.. :-( )

           

          Th basic thing that you need to do is a "xhost +" - to provde remote access control to x-server.

          Once you do this, you can get GPU device listed even when you connect remotely.

           

          Usually, we add "xhost +" to the X startup script.

          For GDM based desktops, one needs to edit the GDM specific script.

          For LightDM, you need to look at LigthDM specifi script.

           

          Here is an excert from the thread above:

          $ cat /etc/lightdm/lightdm.conf  
          [SeatDefaults] 
          greeter-session=unity-greeter 
          user-session=ubuntu 
          allow-guest=false 
          greeter-show-manual-login=true 
          display-setup-script=/etc/lightdm/xhost.sh   
          $ cat /etc/lightdm/xhost.sh 
          xhost + 
          chmod uog+rw /dev/ati/card* 

          Make sure that xhost.sh is executable:

          sudo chmod a+x /etc/lightdm/xhost.sh

          Regards

          Himanshu , Bruhaspati

          --------------------------------

          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

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points