17 Replies Latest reply on May 12, 2010 1:48 PM by nou

    Running Stream Apps remotely

    gsteri1
      Allowing to stream to be run via ssh, headless with no X server running

      Hello,

      I have looked through a good deal of the forum posts in regard to running the ATI stream apps remotely. Some posters claim that it is possible to run remotely. I have attempted both the official AMD recipe for running remotely, to no avail and the other ones (there is an example for a CentOS box, for example). I am running openSUSE 11.1 on an AMD64 box, with an ATI HD 4850 card.

      Is there any possibility of running the examples via ssh without any tricks to the X server? My needs are not gaming, but, rather, scientific computing. I would like to run some jobs batched without necessarily logging into the box via console.

      Thank you all!

      -Greg

       

       

        • Running Stream Apps remotely
          michael.chu

          Hi Greg, unfortunately, ultimately CAL still needs to go through the display driver for now and that path is through the X Windows server.

          When you disable the security feature of the X server and log in via ssh and set your DISPLAY variable to :0.0, are you able to do an xdpyinfo?

            • Running Stream Apps remotely
              gsteri1

              Hi Michael,

              I run the xdpyinfo and get:

              No protocol specified
              xdpyinfo:  unable to open display ":0.0"

              -Greg

               

              PS Great job on this stream project and related technologies...

                • Running Stream Apps remotely
                  michael.chu

                  Hi Greg,

                  Just take make sure it is just the security setting that are getting messed up, try this first...

                  At the console, log into the X server and then in an xterm or other shell, type "xhost +" to effectively disable security.

                  Then, without logging out of the X server, ssh into the machine remotely and try xdpyinfo with your DISPLAY set to :0.0

                  This should work.

                  Then, try running FindNumDevices in the /usr/local/atical bin directory. That should work as well.

                  If this all works, we just need to figure out why your X server config file changes didn't take. Which file did you modify and what did you do to it?

                    • Running Stream Apps remotely
                      gsteri1

                      Yes, Michael! That did the trick.

                       

                      I modified my bash.bashrc  file to get the DISPLAY set.

                      In /etc/gdm/custom.conf, I added:

                      [servers]
                      0=ATIStream

                      [server-ATIStream]
                      name=ATIStream
                      command=/usr/bin/Xorg -br -ac -audit 0
                      flexible=true

                       

                      I do notice that

                      [security]
                      # SuSEconfig: displaymanagerISPLAYMANAGER_ROOT_LOGIN_REMOTE,DISPLAYMANAGER_SHUTDOWN, securityERMISSION_SECURITY
                      AllowRemoteRoot=false

                      I wonder if this is/was the culprit?

                      In my /etc/gdm/Init/Default file I have set:

                      chmod uog+rw /dev/dri/card*

                      Thank you very much!

                       

                      -Greg

                        • Running Stream Apps remotely
                          michael.chu

                          Hi Greg,

                          Yeah, this is the catch about this workaround... different systems have slightly different X Windows setups. Were you sshing as root or as a normal user?

                          One thing I've done in the past when debugging X Windows setup issues for remote stream app execution was to do a "ps ax | grep X" and look for the "/usr/bin/Xorg -br -ac -audit 0" to make sure that it was being executed instead of the default X server invocation. I've found that what worked on one distro didn't work on another distro.

                          There is a project going on in parallel to look into get rid of this necessity, but for the time being, this trick is what I use on the machine sitting in my office. :-)

                            • Running Stream Apps remotely
                              gsteri1

                              Hi Michael,

                              I was ssh-ing in as a regular user and then su to root. Do you think that matters? 

                              I have checked for the Xorg server's instance using ps ax | grep X, but I never see "/usr/bin/Xorg -br -ac -audit 0"

                              Thanks,

                              -Greg

                              • Running Stream Apps remotely
                                herrmann

                                 

                                Originally posted by: michael.chu

                                There is a project going on in parallel to look into get rid of this necessity, but for the time being, this trick is what I use on the machine sitting in my office. :-)



                                Hi Micheel,

                                can you give any updates about the state of mentioned project?

                                I would really like to use ATI Stream remotely, but the current way is a PITA, because I actually have to connect a monitor to the card as well, otherwise the system will not boot and I get a BIOS error message next time. This machine is not sitting in my office but in the server room...

                                Best regards.

                                 

                                  • Running Stream Apps remotely
                                    thehighhat

                                     

                                    Originally posted by: herrmann
                                    Originally posted by: michael.chu

                                     

                                    There is a project going on in parallel to look into get rid of this necessity, but for the time being, this trick is what I use on the machine sitting in my office. :-)



                                     

                                    Hi Micheel,

                                     

                                    can you give any updates about the state of mentioned project?

                                     

                                    I would really like to use ATI Stream remotely, but the current way is a PITA, because I actually have to connect a monitor to the card as well, otherwise the system will not boot and I get a BIOS error message next time. This machine is not sitting in my office but in the server room...

                                     

                                    Best regards.

                                     

                                     

                                     

                                     

                                    Yes, I also am very interested in this project.  Being able to use the AMD hardware for stream computing on linux without any X or console dependencies would be a markedly powerful solution.  

                                    Think large HPC deployment... the X server / console / attached monitor is a severe limitation.