Title: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 02:14:43 AM I just go my hands on a 5870, put it in my Archlinux box, installed the latest catalyst drivers and amdstream 2.3, but opencl apps don't detect the card.
Here is the output of lspci: Code: 03:00.1 Audio device: ATI Technologies Inc Cypress HDMI Audio [Radeon HD 5800 Series] and clinfo: Code: Number of platforms: 1 Any help is appreciated. Title: Re: AMD 5870 on Archlinux Post by: gjs278 on April 01, 2011, 02:33:17 AM try installing 2.2 for stream, it performs a lot better anyways
Title: Re: AMD 5870 on Archlinux Post by: urizane on April 01, 2011, 03:09:18 AM Here is the output of lspci: Code: 03:00.1 Audio device: ATI Technologies Inc Cypress HDMI Audio [Radeon HD 5800 Series] You've got the wrong device picked out. If you don't see the Video device listed specifically, you've got a configuration snafu. Try Catalyst 10.12. Title: Re: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 03:11:22 AM Ok I installed SDK 2.2 instead. Same deal. It only lists the Opteron CPU, not showing the GPU.
Do I need a specific version of the driver? Also it looks like both fglrx and radeon modules show up in lsmod... is this normal? @urizame: sorry about that, the corresponding VGA Controller also shows up. Will 10.12 work with the latest kernel? I'm guessing I'll have to run the ati installer? Title: Re: AMD 5870 on Archlinux Post by: Cryptoman on April 01, 2011, 04:21:59 AM What do you get for "aticonfig --lsa"? Are you running your monitor on the 5870 or another GPU in the system?
Title: Re: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 06:15:15 AM aticonfig --lsa:
Code: * 0. 03:00.0 ATI Radeon HD 5800 Series Headless system, there is an onboard nvidia nforce gpu on the motherboard. Title: Re: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 08:33:43 AM After a bit of hacking the catalyst package I got 10.12 installed. Same issue.
I'm attaching my ati sysinfo dump. http://dl.dropbox.com/u/11759463/atisysteminfo-report.txt.gz Title: Re: AMD 5870 on Archlinux Post by: Cryptoman on April 01, 2011, 06:24:46 PM Headless system, there is an onboard nvidia nforce gpu on the motherboard. That may be where the problem lies. I could never get such a setup to work. The Nvidia and ATI drivers don't play well together. Try uninstalling your Nvidia driver and disabling the onboard GPU in the BIOS. Run your monitor on the 5870. Rename the xorg.conf file before running "aticonfig --initial". Title: Re: AMD 5870 on Archlinux Post by: trentzb on April 01, 2011, 06:32:07 PM Also it looks like both fglrx and radeon modules show up in lsmod... is this normal? Get rid of the radeon module.Title: Re: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 07:09:39 PM I switched my monitor to the 5870 and that seems to work ok, but there is no option in the bios to disable the onboard card. It's a TYAN board.
I also found that the onboard card is and ATI Rage XL. I removed the radeon module so that only fglrx is loading. Still not coming up. Any thoughts? lspci | grep VGA: Code: 01:06.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27) Title: Re: AMD 5870 on Archlinux Post by: Cryptoman on April 01, 2011, 07:15:55 PM When you say "opencl apps don't detect the card," what exactly do you mean by this? What do you get when you run poclbm.py with no arguments?
Title: Re: AMD 5870 on Archlinux Post by: trentzb on April 01, 2011, 07:20:35 PM You of course already did sudo aticonfig --initial --adapter=all right?
Do you get X on your monitor when connected to 5870? Have ICD registration in /etc/OpenCL/vendors/ ? Follow: http://bitcointalk.org/index.php?topic=3359.msg47174#msg47174 Title: Re: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 07:57:26 PM $ /opt/amdstream/samples/opencl/bin/x86_64/CLInfo |grep CL_DEVICE_TYPE_GPU
this returns nothing $ /opt/amdstream/samples/opencl/bin/x86_64/CLInfo |grep CL_DEVICE_TYPE_CPU works though, so it seems the amdstream stuff is installed ok. I did do the aticonfig stuff. But now I'm thinking its something with the driver. I attached a monitor to the ati card and tried running x, but it fails to load saying fglrx can't be found. Yet it does show up in lsmod. I wonder if this has something to do with me using the older 10.12 driver and just pulling down the newest xorg. I guess for now I will try to just get x running on the card using fglrx... seems like the more common use case. Thanks for the link Trentzb... I did follow all the steps, but something else is up. Title: Re: AMD 5870 on Archlinux Post by: Raulo on April 01, 2011, 08:08:18 PM Check
Code: $ fglrxinfo It should print something like: Code: display: :0.0 screen: 0 If not, it's the problem with drivers or xorg.conf. If it prints correctly it may still be a problem with xorg.conf but it's rather SDK. Title: Re: AMD 5870 on Archlinux Post by: trentzb on April 01, 2011, 08:14:59 PM I attached a monitor to the ati card and tried running x, but it fails to load saying fglrx can't be found. Yet it does show up in lsmod. I The module showing up in lsmod is not the X driver/module. Get X running on your 5870 and it is likely your problems will disappear providing you have your ICD registration and env set up properly.find /usr/lib/xorg/ | grep -i fglrx /usr/lib/xorg/modules/linux/libfglrxdrm.so /usr/lib/xorg/modules/drivers/fglrx_drv.so And re-fix up your xorg.conf with another aticonfig --initial -f Title: Re: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 08:18:31 PM Wohoo! Progress... so I reinstalled the latest catalyst driver and X came up. I ran the CLInfo command from an xterm and bam, 2 devices: cpu and gpu!
Then I ssh in and run CLInfo and nothing, I only get the cpu. So it looks like I need to have X running or else the gpu is not registered. Is anyone running headless? Is there any way to mine without having to run X? Maybe that was my disconnect. Title: Re: AMD 5870 on Archlinux Post by: trentzb on April 01, 2011, 08:22:55 PM Is anyone running headless? Is there any way to mine without having to run X? Not that I am aware of.Title: Re: AMD 5870 on Archlinux Post by: trentzb on April 01, 2011, 08:24:17 PM Sorry, I meant not with a GPU that I am aware of. You can run CPU mining headless of course.
Title: Re: AMD 5870 on Archlinux Post by: Raulo on April 01, 2011, 08:26:14 PM Is anyone running headless? Is there any way to mine without having to run X? You have to run X but you don't need to have a monitor attached nor login at the console. Code: export DISPLAY=:0 is all you need if you are logged in at the console and if you are not (only xdm/gdm is running), running OpenCL programs as root solves the problem. Title: Re: AMD 5870 on Archlinux Post by: alexmat on April 01, 2011, 09:07:29 PM Great! Thanks for the tip. I'll mess around with it.
Getting 312Mhash/s using amdstream 2.2 and Catalyst(fglrx) 11.3. I tried amdstream 2.3 and dropped to 14Mhash/s. Insane. I tried amdstream 2.1 as well, FOR SCIENCE!!!, but the python script threw some error about some rectangle function being missing or something like that. Forgot to note it down because I'm just happy its working after all this effort. Thanks everyone for all the help. :D |