Setting up Linux to crunch CUDA90 and above for Windows users

Message boards : Number crunching : Setting up Linux to crunch CUDA90 and above for Windows users
Message board moderation

To post messages, you must log in.

Previous · 1 . . . 6 · 7 · 8 · 9 · 10 · 11 · 12 . . . 162 · Next

AuthorMessage
Profile Jeff Buck Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 11 Feb 00
Posts: 1441
Credit: 148,764,870
RAC: 0
United States
Message 1874697 - Posted: 23 Jun 2017, 18:14:12 UTC - in response to Message 1874692.  
Last modified: 23 Jun 2017, 18:17:33 UTC

When you start swapping GPUs you may have problems. On a First Install it's best to only have One GPU in the main slot where you intend to keep it. After you get it installed and running then you can start adding GPUs. That's the best way, other ways may work, but you might have problems.
Well, I didn't have a problem with multiple GPUs on the first two boxes and, since the 3rd one is an xw9400 like one of the others, I didn't anticipate problems with that one either. Apparently though, according to several posts I found online, the Live CD just doesn't play well with some GPUs, hence the tip I found for that "nomodeset" option in the hidden menu, which works fine (once you stumble across it).

EDIT: Anyway, the scheduler just sent me 33 MB tasks for NVIDIA and the first ones seem to be running smoothly. Hopefully it'll go smoothly from here on. (Oh, wait.......it's LINUX!)
ID: 1874697 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1874749 - Posted: 23 Jun 2017, 22:38:12 UTC - in response to Message 1874689.  

When something doesn't run it's usually caused by a missing dependency or permission setting. Is this machine the one that had the BOINC folder in Downloads?
Move the downloaded boinc_7.2.42....sh file to your Home folder next to your Current BOINC folder and run the .sh file again so it updates your BOINC folder.
Check the following files for Execute bits and Dependencies;
boinc
boinccmd
boincmgr
boincscr
Install any missing Dependencies using the Package Manager.
That's All it should take to get it running. Double click boincmgr to run it.
If it doesn't work, open a Terminal, cd to the BOINC folder, and run each App from the Terminal and note the remarks.
./boincmgr


. . Hi TBar,

. . That's the machine. OK I will run the distro shell again and try running each app separately. Thanks for the tips.

Stephen

..
ID: 1874749 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1874751 - Posted: 23 Jun 2017, 22:43:57 UTC - in response to Message 1874690.  
Last modified: 23 Jun 2017, 23:11:27 UTC

. . With Linux everytime there is something different, some problem I didn't have on the previous effort. :(

Stephen

:(
Ain't that the truth. After having fewer than usual PITA moments setting up my first two Linux boxes this time around (this being my 5th foray into the funhouse that is Linux World), I thought I was well prepared for the third box. Wrong!



. . Though your experiences were different to mine in the details it all seems soooo familiar.

. . One thing I will mention about Coolbits is that with multiple GPUs of different types and/or memory sizes there is a value to use that "adapts" coolbits to deal with the variations. So it would not be 28 but another value. I posted a listing of those values but I cannot find that post ....

. . Amen brother.

Stephen

..
ID: 1874751 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1874932 - Posted: 25 Jun 2017, 2:35:16 UTC - in response to Message 1874689.  

. . Hi TBar

. . I did that and it is now running, but I picked a bad time to do it. Not getting any work with the servers the way they are. I will return to it later on when work is flowing more readily again.

Stephen

:(
ID: 1874932 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1874974 - Posted: 25 Jun 2017, 12:47:15 UTC

. . @ All,

. . Linux is not my friend. I have Boinc running but cannot get any GPU work.

. . I also get these error messages ...

Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of setiathome_8.00_x86_64-pc-linux-gnu
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of setigraphics_8.00_x86_64-pc-linux-gnu
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of seti_800.jpg
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of setiathome-8.00_AUTHORS
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of setiathome-8.00_COPYING
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of setiathome-8.00_COPYRIGHT
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of setiathome-8.00_README
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of bl_bkg_800.jpg
Sun 25 Jun 2017 22:07:26 AEST | SETI@home | [error] merge_info(): failed to change permissions of bl_800.jpg

. . Flumoxed again .... :(

. . OK, this is weird! I just experienced the phenomenon Grant has been having of late. I have not received any GPU work at all today since trying to finish configuring Linux for CUDA80, and it has been over several hours. I begin to write this message about the problem and eerily I suddenly receive a dozen GPU WUs. Hmmm spooky.

Stephen

??
ID: 1874974 · Report as offensive     Reply Quote
Al Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Avatar

Send message
Joined: 3 Apr 99
Posts: 1682
Credit: 477,343,364
RAC: 482
United States
Message 1876895 - Posted: 5 Jul 2017, 16:04:08 UTC
Last modified: 5 Jul 2017, 16:04:37 UTC

Just saw this while I was perusing ZDnet, and came across this article about the new 4.12 kernel: Linux just got one of its biggest kernel updates yet says Linus Torvalds

Being at best a struggling Linux Newb, I was wondering if it makes sense to try to apply the new kernal to an existing release, or to just wait until the majors (Ubuntu, Mint, etc) push out a new release with it in it? From the sounds of it, it should be something that can be installed on existing installations, but not being a command line warrior, that sounds like something I'd rather avoid. What are you guys' thoughts on it? Sounds like it was a pretty big deal, adding a lot of support to newer hardware, as well as needed updates.

ID: 1876895 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1877001 - Posted: 6 Jul 2017, 0:01:18 UTC - in response to Message 1876895.  

. . Hi Al

. . Being a very low level Linux user like yourself I like to have things automated so they get done correctly. If I tried to do them manually Iknow there would be problems. So I will wait for a package to take care of any updates. Also there needs to be a version of BOINC compatible with the new release that allows me to choose the installation location unlike the repo version which does not. But who know what tomorrow will bring :)

Stephen

<shrug>
ID: 1877001 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1877248 - Posted: 7 Jul 2017, 12:35:01 UTC

. . Linux continues to frustrate me. Another kind user posted a script to provide intelligent fan control for nVidia GPUs running under Linux. But if I try to sudo it (yes the 'run as a program' permission is set) I get the response 'no such file or directory' even though I am looking right at it. If I try to bash it then I get I get all sorts of errors. How do you convince Linux to run a shell script?

Stephen

??
ID: 1877248 · Report as offensive     Reply Quote
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1877252 - Posted: 7 Jul 2017, 13:21:37 UTC - in response to Message 1877248.  

'no such file or directory'
That usually means you've either entered the wrong Name or Location.
By default the Terminal opens to your Home directory. If the File is Not there you must tell the Terminal the Location of the File you wish to run, or, move the File to your Home directory to run it.
An example would be to run a File Located in your Downloads Folder/Directory. Open the Terminal, enter cd and a space afterwards, then drag and drop the Downloads folder into the Terminal window.
Make sure the Terminal is the front application, then hit enter. You will now be in the Downloads directory and can run a file located in that directory.
Sudo means SuperUser Do, it allows you to run the file as Root. To run the file as Root you would enter sudo ./filename, provided you are in the directory where the file is located.
ID: 1877252 · Report as offensive     Reply Quote
Al Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Avatar

Send message
Joined: 3 Apr 99
Posts: 1682
Credit: 477,343,364
RAC: 482
United States
Message 1877258 - Posted: 7 Jul 2017, 13:43:11 UTC - in response to Message 1877248.  
Last modified: 7 Jul 2017, 14:07:30 UTC

This. Me. Linux. Ugg.

I know I have to get past all that, but I'm really not looking forward to installing and maintaining it. Brings back such frustrating memories... :-/ Yes, with Linux there were Definitely times I'd like to just BASH it, that's true... ;-) lol

*edit* But thanks for the great explanation, Tbar, I think I'm going to put a cheat sheet together with helpful nuggets like this one.

ID: 1877258 · Report as offensive     Reply Quote
Profile Jeff Buck Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 11 Feb 00
Posts: 1441
Credit: 148,764,870
RAC: 0
United States
Message 1877283 - Posted: 7 Jul 2017, 16:41:08 UTC - in response to Message 1877248.  
Last modified: 7 Jul 2017, 16:55:56 UTC

. . Linux continues to frustrate me. Another kind user posted a script to provide intelligent fan control for nVidia GPUs running under Linux. But if I try to sudo it (yes the 'run as a program' permission is set) I get the response 'no such file or directory' even though I am looking right at it. If I try to bash it then I get I get all sorts of errors. How do you convince Linux to run a shell script?

Stephen

??
I don't think you should even need sudo for that script, but are you including the file extension (.sh) in your command? In other words, if you just enter ./gpufanspeed, you'll probably get that error message you're seeing, but if you enter ./gpufanspeed.sh, it should work just fine. Linux == Gotcha.

EDIT: Example
jeff@xw9400L:~$ cd Desktop
jeff@xw9400L:~/Desktop$ ./gpufanspeed
bash: ./gpufanspeed: No such file or directory
jeff@xw9400L:~/Desktop$ ./gpufanspeed.sh
  Attribute 'GPUFanControlState' (xw9400L:0[gpu:0]) assigned value 1.
  Attribute 'GPUFanControlState' (xw9400L:0[gpu:1]) assigned value 1.
  Attribute 'GPUFanControlState' (xw9400L:0[gpu:2]) assigned value 1.
  Attribute 'GPUFanControlState' (xw9400L:0[gpu:3]) assigned value 1.

  Attribute 'GPUTargetFanSpeed' (xw9400L:0[fan:0]) assigned value 20.
  Attribute 'GPUTargetFanSpeed' (xw9400L:0[fan:1]) assigned value 20.
  Attribute 'GPUTargetFanSpeed' (xw9400L:0[fan:2]) assigned value 40.
  Attribute 'GPUTargetFanSpeed' (xw9400L:0[fan:3]) assigned value 20.

^C
jeff@xw9400L:~/Desktop$ 
ID: 1877283 · Report as offensive     Reply Quote
Profile petri33
Volunteer tester

Send message
Joined: 6 Jun 02
Posts: 1668
Credit: 623,086,772
RAC: 156
Finland
Message 1877299 - Posted: 7 Jul 2017, 19:49:58 UTC

or
type ./gp and hit <tab> to autocomplete the filename ...
To overcome Heisenbergs:
"You can't always get what you want / but if you try sometimes you just might find / you get what you need." -- Rolling Stones
ID: 1877299 · Report as offensive     Reply Quote
MarkJ Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 17 Feb 08
Posts: 1139
Credit: 80,854,192
RAC: 5
Australia
Message 1877389 - Posted: 8 Jul 2017, 2:04:50 UTC
Last modified: 8 Jul 2017, 2:07:48 UTC

For those that like Debian I managed to update my GPU crunchers to Stretch using pretty much the same instructions to install apart from changing Jessie to Stretch.

One gotcha was my firewall script wouldn't execute any more. I used to have it in rc.local. I followed the suggestions on the Debian wiki which run it as a service which still seems to work, however you also have to set execute permissions on a couple of files. I didn't have to do that under Jessie.

Also tried clean-installing Stretch on iGPU machines and can't get a desktop (mate) any more. I've raised a bug with Debian for that one.
BOINC blog
ID: 1877389 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1877407 - Posted: 8 Jul 2017, 5:51:09 UTC

. . Hi everyone,

. . Thanks for all the advice, I have learned or re-learned a couple of things about Linux.

. . But ... (isn't there always one of those?)

That usually means you've either entered the wrong Name or Location.
By default the Terminal opens to your Home directory. If the File is Not there you must tell the Terminal the Location of the File you wish to run, or, move the File to your Home directory to run it.
An example would be to run a File Located in your Downloads Folder/Directory. Open the Terminal, enter cd and a space afterwards, then drag and drop the Downloads folder into the Terminal window.
Make sure the Terminal is the front application, then hit enter. You will now be in the Downloads directory and can run a file located in that directory.
Sudo means SuperUser Do, it allows you to run the file as Root. To run the file as Root you would enter sudo ./filename, provided you are in the directory where the file is located.


. . I now know that dropping a folder into an open terminal window takes the terminal to that folder ... neat trick. And I also learned what Sudo means ... that actually does help trying to understand what I am doing. I was also reminded about the short cut of using the first few characters then tabbing, that is very handy. The 'but' is that this is pretty much what I was doing. I placed the file on the desktop as originally suggested, then opened the terminal and executed 'ls -l' to check the directory name, then cd'd to that directory, repeated 'ls -l' to confirm the file was there and it was with all the read/write/execute permissions set. I then sudo'd it with ./<filenname>. But error, no file or directory found.

. . I retried it after reading your comments and got only a slight variation which I will post in the next message. I shortened the file name for ease of use in the retry.

Stephen

??
ID: 1877407 · Report as offensive     Reply Quote
Profile Brent Norman Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 1 Dec 99
Posts: 2786
Credit: 685,657,289
RAC: 835
Canada
Message 1877411 - Posted: 8 Jul 2017, 6:18:57 UTC - in response to Message 1877407.  

Possibility ... Linux IS CaSe SeNsItIvE
ID: 1877411 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1877413 - Posted: 8 Jul 2017, 6:36:56 UTC - in response to Message 1877411.  

Possibility ... Linux IS CaSe SeNsItIvE


. . Yep, that is why I did the ls -l before trying to change directories, I have been bitten by that one before.

Stephen

:(
ID: 1877413 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1877414 - Posted: 8 Jul 2017, 6:45:54 UTC

. . This is how it goes for me.

stephen@Mi-Burrito:~$ ls -l
total 75724
drwxr-xr-x 3 stephen stephen 4096 Jul 8 10:35 Desktop
drwxr-xr-x 2 stephen stephen 4096 Jun 24 16:26 Documents
drwxr-xr-x 7 stephen stephen 4096 Jun 27 10:43 Downloads
stephen@Mi-Burrito:~$ cd Desktop
stephen@Mi-Burrito:~/Desktop$ ls -l
total 8
-rwxr-xr-x 1 stephen stephen 1860 Jul 8 10:37 GPU_fan-control.sh
drwxrwxr-x 2 stephen stephen 4096 Jul 7 21:59 Things to remember
stephen@Mi-Burrito:~/Desktop$ sudo ./GPU_fan-control.sh
sudo: unable to execute ./GPU_fan-control.sh: No such file or directory
stephen@Mi-Burrito:~/Desktop$ ./GPU_fan-control.sh
bash: ./GPU_fan-control.sh: /bin/bash^M: bad interpreter: No such file or directory


. . The small difference is that I also tried it without the 'sudo' but that failed as well.

Stephen

:(
ID: 1877414 · Report as offensive     Reply Quote
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1877416 - Posted: 8 Jul 2017, 6:56:15 UTC - in response to Message 1877414.  
Last modified: 8 Jul 2017, 7:03:36 UTC

Try moving the file to your Home folder and run it from there.
Right click on the file, choose Properties, copy the name, and paste it into the terminal. Look for a space before or after the name that shouldn't be there.
ID: 1877416 · Report as offensive     Reply Quote
Stephen "Heretic" Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester
Avatar

Send message
Joined: 20 Sep 12
Posts: 5557
Credit: 192,787,363
RAC: 628
Australia
Message 1877430 - Posted: 8 Jul 2017, 9:15:06 UTC - in response to Message 1877416.  

Try moving the file to your Home folder and run it from there.
Right click on the file, choose Properties, copy the name, and paste it into the terminal. Look for a space before or after the name that shouldn't be there.


. . OK, thanks.

. . I did that (moved it to the home folder) and this time it ran but sadly there is a problem with the script ...

stephen@Mi-Burrito:~$ ./GPU_fan-control.sh 

(nvidia-settings:23079): Gtk-WARNING **: Unable to locate theme engine in module_path: "hcengine",

  Attribute 'GPUFanControlState' (Mi-Burrito:0[gpu:0]) assigned value 1.

./GPU_fan-control.sh: line 12: syntax error near unexpected token `elif'
./GPU_fan-control.sh: line 12: `	elif (("$current_temp" > 40)) && (("$cur'ent_temp" < 51)); then


. . Sadly I don't know what this means, though it seems something is missing or different in my setup from the one that this was working on.

. . Oh well it was worth a shot ...

Stephen

:(
ID: 1877430 · Report as offensive     Reply Quote
Profile Jeff Buck Crowdfunding Project Donor*Special Project $75 donorSpecial Project $250 donor
Volunteer tester

Send message
Joined: 11 Feb 00
Posts: 1441
Credit: 148,764,870
RAC: 0
United States
Message 1877475 - Posted: 8 Jul 2017, 15:22:19 UTC - in response to Message 1877430.  

./GPU_fan-control.sh: line 12: ` elif (("$current_temp" > 40)) && (("$cur'ent_temp" < 51)); then
That looks like a simple typo when you edited the script. Just change "$cur'ent_temp" to "$current_temp" and try again.
ID: 1877475 · Report as offensive     Reply Quote
Previous · 1 . . . 6 · 7 · 8 · 9 · 10 · 11 · 12 . . . 162 · Next

Message boards : Number crunching : Setting up Linux to crunch CUDA90 and above for Windows users


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.