Join PrimeGrid
Returning Participants
Community
Leader Boards
Results
Other
drummers-lowrise
|
Message boards :
Problems and Help :
How to enable NVIDIA GPU on Ubuntu 10.10 64 bit
| Author |
Message |
|
|
|
I just want to share my experience of how I get my GPU working with Primegrid. It may save you from some some few pitfalls I was caught in :-)
Equipment:
- Gigabyte GA-890GPA-UD3HRev 2.1 motherboard. BIOS version FF
- 16 GByte RAm distributed on four 4 GByte modules
- AMD Phenom II 1100T 6-core processor
- GeForce GTX 460 (1 GByte RAM, 336 Cuda processors)
- Ubuntu 10.10 64 bit.
- BOINC installed from packet manager (Synaptic)
Do the following:
- Update all your program from update manager, inclusive any kernel updates. If requested, reboot.
- Download latest NVIDIA driver, version 270.26 Beta from NVIDIA. Keep away from the 260.xx versions. It fails on Cullen/Wodall Sieve (cuda23)
and maybe other cida applications.
You should now be ready for doing some magic :-)
With this start setup BOINC manager is automatically started when computer is turned on. This is comparable to service mode on Windows machines. On windows
BOINC isn't able to use your GPU for CUDA processing in service mode. However, it is possible on Linux if the NVIDIA driver is loaded before the BOINC application. Default
this isn't true. So a little modification is necessary.
Before you do the actual tricks to change this automated startup, take a look at runlevels.
My Ubuntu do start in runlevel 2, which I do believ is standard on Ubuntu. You find your runlevel by typing "runlevel" on a command line. Your response will be like "N 2", where 2 is your runlevel. Knowing this, you are now prepared.
Steps (Do it as root. You switch to root by typing "sudo su" in a terminal window.):
1) rename /etc/rc2.d/S20b.oinc-client to /etc/rc2.d/S99boinc-client (2 reflects runlevel. This will load BOINC very late in boot process)
2) Enter asci mode by typing "telinit 1" in your terminal window. You will then switch to non graphics mode. Enter root mode if you are not there already
3) Enter the directory where your downloaded the NVIDIA driver using cd's.
4) Install the driver by typing "sh ./NVIDIA-Linux-x86_64-270.26.run" (Or the version you downloaded). This installation has to be done in none graphical mode.
5) Reboot. Just type "reboot" and press Enter.
If all went well, you should return to graphical mode with new driver and may log in as normal. Your BOINC client should automatically start enabling GPU processing. If you later on update your kernel version, it may be necessary to repeat step 2) to 5) above.
Good luck :-)
Bent Vangli
PS! If anybody finds improvements or errors in this description, please comment. :-)[/url] | |
|
|
|
|
As an alternative to your steps 2-4, I offer the following. This worked for me without exiting the window manager or changing runlevel:
sudo apt-get --purge remove xserver-xorg-video-nouveau
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-current-modaliases nvidia-settings
Then, reboot.
The above is for a clean Ubuntu install. To just update to the latest version of 270.xx from NVIDIA, I believe only the last step is necessary after you've been through the process once. Without adding the ppa repository, I was getting a 260.xx nvidia driver, which had problems (all tasks error out).
Thanks for the tip about renaming the S20boinc-client script to S99... I have frequent issues with complaints about "GPU missing" after a reboot, so I've been manually restarting the boinc client from the command line. Let's hope this fixes that issue!
--Gary | |
|
|
|
|
Reporting that renaming the start-up script from S20... to S99... has not been a total success. Sometimes everything gets running fine, other times the BOINC manager reports "GPU missing", and I have to manually do a "sudo /etc/init.d/boinc-client restart" to get things running. It seems about a 50/50 chance as to whether it works or not.
--Gary | |
|
|
|
|
A couple of other possibilities after a boot or restart in a terminal type sudo /etc/init.d/boinc-client restart
will get your gpu going.
If you're like me and keep forgetting to do the restart -
in the file /etc/rc2.d/S20boinc-client change -
case "$1" in
start)
start
;;
To
case "$1" in
start)
start
sleep 30
stop
sleep 1
start
;;
Will do the restart automatically.
| |
|
|
|
|
Is it OK to do the boinc-client restart with the manager still running? Or should I stop the manager beforehand and restart after starting the boinc-client?
--Gary | |
|
|
|
As an alternative to your steps 2-4, I offer the following. This worked for me without exiting the window manager or changing runlevel:
sudo apt-get --purge remove xserver-xorg-video-nouveau
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-current nvidia-current-modaliases nvidia-settings
You gotta love Linux - the nvidia-current-modaliases doesn't appear to be valid anymore. What a pain in the ^@#$%; I've been trying for two days now to get CUDA working with BOINC/Primegrid. I have tried three different distro's and gone through countless threads, wiki's and howto's and NOT ONE has worked so far :p | |
|
|
|
|
Well, that post is 2.5 years old at least. Things *must* have changed.
I'm running GPU work on nvidia h/w on boinc/pg on ubuntu 13.04 now. 12.10 seemed to be OK too. 12.04 did not work at all (at least for me).
If you're upgrading from an older version of ubuntu, I'd remove any package with "nvidia" in its name with "sudo apt-get --purge remove". Then install nvidia-current and nvidia-settings; the modaliases one is obsolete now.
Sorry I can't experiment with any of this now due to the challenge.
--Gary | |
|
mikey Send message
Joined: 17 Mar 09 Posts: 2461 ID: 37043 Credit: 1,128,362,892 RAC: 521,709
                            
|
Is it OK to do the boinc-client restart with the manager still running? Or should I stop the manager beforehand and restart after starting the boinc-client?
--Gary
I am not sure there is a consensus on this, I personally always stop it when I have the opportunity, and remember. But when a machines crashes or the power goes off Boinc still comes back up afterwards and starts crunching again. Stopping it first may be 'old school thinking' and it may not really be needed. | |
|
|
|
If you're upgrading from an older version of ubuntu, I'd remove any package with "nvidia" in its name with "sudo apt-get --purge remove".
It was a fresh install - among many fresh installs :p However I did notice on the last go around, at least with Ubuntu, there was an auto-detected/auto-installed driver. I'm assuming that purge/remove will get rid of that automaticaly installed driver?
Then install nvidia-current and nvidia-settings; the modaliases one is obsolete now.
Every time I tried to install nvidia-current I got different failures depending on which repositories I had active. Manually downloading the driver lead to different failures/dependencies/failure to boot :p
Sorry I can't experiment with any of this now due to the challenge
No worries. That's why I started working off and on this a couple of weeks ago - to try and have plenty of time to figure out at least one working solution. Oh well - I gave up and just slapped a Vista disk in that machine for the challenge. But I would like to figure out Linux at some point. I'd really like to get it working without the overhead of the GUI being loaded on the machine too, but at this point I'd love to just get it working with the GUI desktop environment loaded. | |
|
|
|
|
Hi, I know I am in the wrong forum but I am looking for somebody, who might be able to help with Linux Mint 17 (on a USB-Stick), BOINC and “No usable GPUs found” problem.
I am a Window user, but I would like to use some older Windows XP computers with old GPUs with Linux Mint on a USB-Stick for BOINC, that said, it would have to be a step by step help.
Thanks a lot!
| |
|
mikey Send message
Joined: 17 Mar 09 Posts: 2461 ID: 37043 Credit: 1,128,362,892 RAC: 521,709
                            
|
Hi, I know I am in the wrong forum but I am looking for somebody, who might be able to help with Linux Mint 17 (on a USB-Stick), BOINC and “No usable GPUs found” problem.
I am a Window user, but I would like to use some older Windows XP computers with old GPUs with Linux Mint on a USB-Stick for BOINC, that said, it would have to be a step by step help.
Thanks a lot!
Try delaying the actual Boinc startup for 30 seconds after the pc starts up, this often fixes the problem of Boinc not 'seeing' the gpu when it starts up too quickly. For further help you will want a Linux person, I am NOT a Linux guy so am just passing on things I remember. | |
|
Message boards :
Problems and Help :
How to enable NVIDIA GPU on Ubuntu 10.10 64 bit |