Tips for installing Nvidia .run files in Linux
Moderators: Site Moderators, FAHC Science Team
Re: Tips for installing Nvidia .run files in Linux
Drivers which switch between Intel and nVidia add a significant level of complexity and have been known to cause a problem, though I vaguely remember somebody might have solved that.
If the client sees the Intel chipset rather than the nVidia hardware& driver, it's obviously not going to work, but don't ask me for any other details. That's the absolute limit of my understanding.
If the client sees the Intel chipset rather than the nVidia hardware& driver, it's obviously not going to work, but don't ask me for any other details. That's the absolute limit of my understanding.
Posting FAH's log:
How to provide enough info to get helpful support.
How to provide enough info to get helpful support.
-
- Posts: 2040
- Joined: Sat Dec 01, 2012 3:43 pm
- Hardware configuration: Folding@Home Client 7.6.13 (1 GPU slots)
Windows 7 64bit
Intel Core i5 2500k@4Ghz
Nvidia gtx 1080ti driver 441
Re: Tips for installing Nvidia .run files in Linux
@monok: This guide recommends to use nvidia-prime for dual intel/nvidia optimus GPU.
There you can switch to make nvidia active and folding can use it.
http://askubuntu.com/questions/412452/g ... ime-gt650m
There you can switch to make nvidia active and folding can use it.
http://askubuntu.com/questions/412452/g ... ime-gt650m
-
- Site Admin
- Posts: 7922
- Joined: Tue Apr 21, 2009 4:41 pm
- Hardware configuration: Mac Pro 2.8 quad 12 GB smp4
MacBook Pro 2.9 i7 8 GB smp2 - Location: W. MA
Re: Tips for installing Nvidia .run files in Linux
Moved off-topic thread on troubleshooting a FAH install on a Linux system to - viewtopic.php?f=96&t=29352.
iMac 2.8 i7 12 GB smp8, Mac Pro 2.8 quad 12 GB smp6
MacBook Pro 2.9 i7 8 GB smp3
Re: Tips for installing Nvidia .run files in Linux
FYI: No need to edit /etc/default/grub as long as GrUB is working properly.
For either init or systemd Linux systems all* you have to do is:
* When the GrUB menu appears at boot, navigate to the Linux OS you want to modify and press e
* Navigate down to the linux command line and place a 3 at the end of it
* Press F10 to boot
It boots into command line interface(CLI) which is actually init level 3.
Then do the nVidia install steps.
Note that " 3" works any time one needs to boot to 'text mode', i.e., the CLI(init 3). This is very handy for updating core parts of the OS, especially if SystemD is one of those parts, .
{ *all assumes a std GrUB install that is not hidden, write or password protected. If any of those are true then at least password is needed ... but for the people who use such a GrUB, this guide is prbly not needed anyway. }
For either init or systemd Linux systems all* you have to do is:
* When the GrUB menu appears at boot, navigate to the Linux OS you want to modify and press e
* Navigate down to the linux command line and place a 3 at the end of it
* Press F10 to boot
It boots into command line interface(CLI) which is actually init level 3.
Then do the nVidia install steps.
Note that " 3" works any time one needs to boot to 'text mode', i.e., the CLI(init 3). This is very handy for updating core parts of the OS, especially if SystemD is one of those parts, .
{ *all assumes a std GrUB install that is not hidden, write or password protected. If any of those are true then at least password is needed ... but for the people who use such a GrUB, this guide is prbly not needed anyway. }
Supermicro X8DTH-iF: Dual X5687; 24GB; GTX1060-6G; Corsair RM850X; ... Linux 4.9,x; MS Windows 8.1.
Linux Registered User 212962; Still Folding with Team #12501 ...
Linux Registered User 212962; Still Folding with Team #12501 ...
-
- Posts: 27
- Joined: Mon Feb 15, 2016 12:19 pm
Re: Tips for installing Nvidia .run files in Linux
This sticky might benefit from an edit. Please see my post, viewtopic.php?f=80&t=35249
Long story short: opencl does not work in Linux, unless you are using the "correct" GCC compiler. If you have been upgraded to GCC-9, FAH will fail because it cannot find an opencl device, or similar message. You must rollback your compiler to GCC-8 for the time being. If/when nVidia updates their drivers to use GCC-9 and G++-9, then we can forget about checking the compiler versions.
Long story short: opencl does not work in Linux, unless you are using the "correct" GCC compiler. If you have been upgraded to GCC-9, FAH will fail because it cannot find an opencl device, or similar message. You must rollback your compiler to GCC-8 for the time being. If/when nVidia updates their drivers to use GCC-9 and G++-9, then we can forget about checking the compiler versions.
-
- Posts: 3
- Joined: Fri Apr 03, 2020 8:04 am
- Hardware configuration: GPU: 2x RX580, 1x GTX1050Ti
CPU: AMD Threadripper 1900X
Board: Ausus ROG Zenith extreme
RAM: 128 GB Kingston Value - Location: Heerbrugg, Switzerland
Re: Tips for installing Nvidia .run files in Linux
Hello Community
Since I also had some difficulties to get the (latest) .run-file for (any) NVIDIA card installed, also on Debian releases, I just want to share my experiences.
1st) make sure you are (definetely) blacklisting any NVIDIA related (open-source) modules like nouveau (and maybe optimus/bumblebee)
2nd) don't forget to deactivate those modules also in initram BEFORE rebooting (by doing an 'update-initramfs -u -k all')
3rd) make sure to reboot your system with absolutely only access via console/not any display manager related modules started (boot options are 'vga=off text console 3', just to be really, really sure)
4th) check twice steps 1st) - 3rd)
5th) from CLI (console) do a 'sudo (ba)sh ./<cuda-file>.run' or: '.. ./<NVIDIA-driver-xxx>.run'. This should extract, compile and install your driver file
6th) (not necessary but helpful): do compile your samples (only available if complete CUDA-xxx.run file was installed); then you can use the 'deviceQuery' command to show infos about/show connection to available NVIDIA cards
(remember to add its (complete) path to your env variable ${PATH}, eg. in .bashrc in this case)
7th) in case of error: check
- if there (really) are no modules loaded, related to NVIDIA, optimus, nouveau or bumlbebee in 'etc/modules', '/etc/initramfs/modules', '/lib(32|64)/modules', '/usr/lib(32|64)/modules'; do also a 'lsmod | grep -i nvidia|nouveau|optimus|bumblebee'; there should no module be found at this step
- if still there are: check if you did blacklisting correctly AND did update initramfs
- if you did blacklisting correctly, update initramfs, make sure no nvidia related modules are still loaded, BUT could still not install driver/compile CUDA env, try to do an 'invidia-driver-uninstall', or search manuall for any loaded, nvidia-related modules (kind of more intensive/experienced way)
8th) if all those steps do not help, check if you really install THE CORRECT linux-headerfiles and sources;
9th) there may be a complete, new installation necessary of Debian AND immedaitely a fresg install of the nvidia driver.
10th) in case of 9th):
- do also add i386 architecture (needed for some nvidia 32bit-libs): 'sudo dpkg --add-architecture i386' (this step MUST BE done at first; next step depends on this)
- do also install linux-headers(-amd64), linux-source, firmware-linux, build-essential, ( not really necessary: g++, gcc)
- try now to install the nvidia driver as mentioned above, hope it will do now.
Cheers, good luck and in any lucky case, have fun.
Roger
Since I also had some difficulties to get the (latest) .run-file for (any) NVIDIA card installed, also on Debian releases, I just want to share my experiences.
1st) make sure you are (definetely) blacklisting any NVIDIA related (open-source) modules like nouveau (and maybe optimus/bumblebee)
2nd) don't forget to deactivate those modules also in initram BEFORE rebooting (by doing an 'update-initramfs -u -k all')
3rd) make sure to reboot your system with absolutely only access via console/not any display manager related modules started (boot options are 'vga=off text console 3', just to be really, really sure)
4th) check twice steps 1st) - 3rd)
5th) from CLI (console) do a 'sudo (ba)sh ./<cuda-file>.run' or: '.. ./<NVIDIA-driver-xxx>.run'. This should extract, compile and install your driver file
6th) (not necessary but helpful): do compile your samples (only available if complete CUDA-xxx.run file was installed); then you can use the 'deviceQuery' command to show infos about/show connection to available NVIDIA cards
(remember to add its (complete) path to your env variable ${PATH}, eg. in .bashrc in this case)
7th) in case of error: check
- if there (really) are no modules loaded, related to NVIDIA, optimus, nouveau or bumlbebee in 'etc/modules', '/etc/initramfs/modules', '/lib(32|64)/modules', '/usr/lib(32|64)/modules'; do also a 'lsmod | grep -i nvidia|nouveau|optimus|bumblebee'; there should no module be found at this step
- if still there are: check if you did blacklisting correctly AND did update initramfs
- if you did blacklisting correctly, update initramfs, make sure no nvidia related modules are still loaded, BUT could still not install driver/compile CUDA env, try to do an 'invidia-driver-uninstall', or search manuall for any loaded, nvidia-related modules (kind of more intensive/experienced way)
8th) if all those steps do not help, check if you really install THE CORRECT linux-headerfiles and sources;
9th) there may be a complete, new installation necessary of Debian AND immedaitely a fresg install of the nvidia driver.
10th) in case of 9th):
- do also add i386 architecture (needed for some nvidia 32bit-libs): 'sudo dpkg --add-architecture i386' (this step MUST BE done at first; next step depends on this)
- do also install linux-headers(-amd64), linux-source, firmware-linux, build-essential, ( not really necessary: g++, gcc)
- try now to install the nvidia driver as mentioned above, hope it will do now.
Cheers, good luck and in any lucky case, have fun.
Roger
Re: Tips for installing Nvidia .run files in Linux
thanks.
I've had to rebuild several installations by not blacklisting correctly. Often I have been able to find install packages that include the blacklisting.
I've had to rebuild several installations by not blacklisting correctly. Often I have been able to find install packages that include the blacklisting.
Posting FAH's log:
How to provide enough info to get helpful support.
How to provide enough info to get helpful support.
-
- Posts: 1
- Joined: Sat Mar 06, 2021 1:29 pm
Re: Tips for installing Nvidia .run files in Linux
I have a problem with my Nvidia card, who can help me?
Smile at life
-
- Posts: 1996
- Joined: Sun Mar 22, 2020 5:52 pm
- Hardware configuration: 1: 2x Xeon E5-2697v3@2.60GHz, 512GB DDR4 LRDIMM, SSD Raid, Win10 Ent 20H2, Quadro K420 1GB, FAH 7.6.21
2: Xeon E3-1505Mv5@2.80GHz, 32GB DDR4, NVME, Win10 Pro 20H2, Quadro M1000M 2GB, FAH 7.6.21 (actually have two of these)
3: i7-960@3.20GHz, 12GB DDR3, SSD, Win10 Pro 20H2, GTX 750Ti 2GB, GTX 1080Ti 11GB, FAH 7.6.21 - Location: UK
Re: Tips for installing Nvidia .run files in Linux
Welcome to the forums.Marcostone wrote:I have a problem with my Nvidia card, who can help me?
That is a fairly broad question !!! ... if you could expand with some explanation as to what type of problem we might be able to help?
2x Xeon E5-2697v3, 512GB DDR4 LRDIMM, SSD Raid, W10-Ent, Quadro K420
Xeon E3-1505Mv5, 32GB DDR4, NVME, W10-Pro, Quadro M1000M
i7-960, 12GB DDR3, SSD, W10-Pro, GTX1080Ti
i9-10850K, 64GB DDR4, NVME, W11-Pro, RTX3070
(Green/Bold = Active)
Xeon E3-1505Mv5, 32GB DDR4, NVME, W10-Pro, Quadro M1000M
i7-960, 12GB DDR3, SSD, W10-Pro, GTX1080Ti
i9-10850K, 64GB DDR4, NVME, W11-Pro, RTX3070
(Green/Bold = Active)
Re: Tips for installing Nvidia .run files in Linux
The only issue I have faced with .run installation is that I also need to turn off the Linux header automatic updates. Sometimes these auto updates have caused GPU driver updates as well resulting in software incompatibility issues.
You can just Google to know how to stop linux kernel auto updates. Hope that helps!
You can just Google to know how to stop linux kernel auto updates. Hope that helps!