use 2 out of 3 GPU

Message boards : Number crunching : use 2 out of 3 GPU
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Michel Makhlouta
Volunteer tester
Avatar

Send message
Joined: 21 Dec 03
Posts: 167
Credit: 29,686,436
RAC: 66,403
Lebanon
Message 1901362 - Posted: 16 Nov 2017, 17:36:15 UTC

Hi,
Is there a way to use 2 out of 3 GPUs only? Running seti on the GPU connected to the monitor is creating lots of lag (linux).

So I am wondering if there is a way to set a preference for the main GPU to stop during computer use (in preferences) while the other two are crunching.

Or completely disable the main GPU and leave the other 2 running?
ID: 1901362 · Report as offensive     Reply Quote
Urs Echternacht
Volunteer tester
Avatar

Send message
Joined: 15 May 99
Posts: 685
Credit: 90,198,981
RAC: 56,412
Germany
Message 1901369 - Posted: 16 Nov 2017, 17:59:04 UTC - in response to Message 1901362.  

See for example https://setiathome.berkeley.edu/forum_thread.php?id=82007&postid=1892940 this thread, which uses device exclusion as solution.
_\|/_
U r s
ID: 1901369 · Report as offensive     Reply Quote
Profile Michel Makhlouta
Volunteer tester
Avatar

Send message
Joined: 21 Dec 03
Posts: 167
Credit: 29,686,436
RAC: 66,403
Lebanon
Message 1901370 - Posted: 16 Nov 2017, 18:05:15 UTC

awesome, thanks that worked. posting the below for future reference....

        <exclude_gpu>
             <url>http://setiathome.berkeley.edu/</url>
             <device_num>0</device_num>
             <type>ATI</type>
             <app>astropulse_v7</app>
        </exclude_gpu>
        <exclude_gpu>
             <url>http://setiathome.berkeley.edu/</url>
             <device_num>0</device_num>
             <type>ATI</type>
             <app>setiathome_v8</app>
        </exclude_gpu>
    </options>

ID: 1901370 · Report as offensive     Reply Quote
Profile Cliff Harding
Volunteer tester
Avatar

Send message
Joined: 18 Aug 99
Posts: 1312
Credit: 83,949,336
RAC: 22,288
United States
Message 1901371 - Posted: 16 Nov 2017, 18:07:40 UTC

Michel -
Insert the appropriate one in your cc_comfig.xml

<ignore_intel_dev>N</ignore_intel_dev> or <ignore_nvidia_dev>N</ignore_nvidia_dev>. Subsitute "N" with the device #, which you can get from the beginning of your event log.

On the other hand, I see that you have an i7/4770K, go into your bios and select the iGPU for your primary monitor and recycle the machine and insert this instead <ignore_intel_dev>N</ignore_intel_dev>. That way you can use your monitor for just about everything unless you're also a gamer. Hey MOM, I now have 3 x 1070s crunching.

I've used the internal iGPU on both my 4770k & 7770K and have no problems with movies, simple games, etc. with no lagging. You might have to adjust your CPU % a bit and you might lose those tasks that were assigned to the iGPU , but everything should work out.


I don't buy computers, I build them!!
ID: 1901371 · Report as offensive     Reply Quote
Profile Michel Makhlouta
Volunteer tester
Avatar

Send message
Joined: 21 Dec 03
Posts: 167
Credit: 29,686,436
RAC: 66,403
Lebanon
Message 1901372 - Posted: 16 Nov 2017, 18:15:19 UTC

It's a good idea to switch back to the iGPU and use the additional card. It is getting cold here... Now I'll have to get over my laziness and get to the back of the tower
ID: 1901372 · Report as offensive     Reply Quote
juan BFP
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 6426
Credit: 359,190,066
RAC: 153,176
Panama
Message 1901378 - Posted: 16 Nov 2017, 18:44:28 UTC

Not sure how linux/AMD builds works, but with the windows/nvidia builds you could configurate the builds to reduce lag until it actualy allmost not noticeable.

Mainly ussing the <cmdline> tune option. I sugest you try.
ID: 1901378 · Report as offensive     Reply Quote
Profile Michel Makhlouta
Volunteer tester
Avatar

Send message
Joined: 21 Dec 03
Posts: 167
Credit: 29,686,436
RAC: 66,403
Lebanon
Message 1901527 - Posted: 17 Nov 2017, 15:53:33 UTC
Last modified: 17 Nov 2017, 16:00:05 UTC

i have been away for a while from this project that I cannot seem to remember where to put the cmdline... and i cannot find any hints so far

edit: figured that out, in the cmdline text file under /var/lib/boinc-client (for debian anyway)
ID: 1901527 · Report as offensive     Reply Quote
juan BFP
Volunteer tester
Avatar

Send message
Joined: 16 Mar 07
Posts: 6426
Credit: 359,190,066
RAC: 153,176
Panama
Message 1901533 - Posted: 17 Nov 2017, 16:03:56 UTC - in response to Message 1901527.  
Last modified: 17 Nov 2017, 16:10:47 UTC

i have been away for a while from this project that I cannot seem to remember where to put the cmdline... and i cannot find any hints so far

AFAIK there are few ways...
For me the easy way is to add it to the app_config file.
Just for example, this is my app_config file. Be aware mine is a 1070 GPU / 6 cores CPU mainly cruncher only host, so you need to adjust to your GPU and your host usage. To learn about the parameters used see the doc files included on the builds and they are a lot of talk about in the forums

<app_config>
<project_max_concurrent>12</project_max_concurrent>
<app_version>
<app_name>setiathome_v8</app_name>
<plan_class>opencl_nvidia_SoG</plan_class>
<avg_ncpus>1.0</avg_ncpus>
<ngpus>0.5</ngpus>
<cmdline>-use_sleep -tt 500 -hp -period_iterations_num 1 -high_perf -sbs 2048 -spike_fft_thresh 4096 -tune 1 64 1 4 -oclfft_tune_gr 256 -oclfft_tune_lr 16 -oclfft_tune_wg 256 -oclfft_tune_ls 512 -oclfft_tune_bn 64 -oclfft_tune_cw 64</cmdline>
</app_version>
<app_version>
<app_name>astropulse_v7</app_name>
<plan_class>opencl_nvidia_100</plan_class>
<avg_ncpus>1.0</avg_ncpus>
<ngpus>0.5</ngpus>
<cmdline>-use_sleep -unroll 28 -oclFFT_plan 256 16 256 -ffa_block 12288 -ffa_block_fetch 6144 -tune 1 64 4 1 -tune 2 64 4 1 -hp </cmdline>
</app_version>
</app_config>
ID: 1901533 · Report as offensive     Reply Quote
Grant (SSSF)
Volunteer tester

Send message
Joined: 19 Aug 99
Posts: 9171
Credit: 118,609,453
RAC: 51,716
Australia
Message 1901604 - Posted: 18 Nov 2017, 0:21:16 UTC - in response to Message 1901533.  
Last modified: 18 Nov 2017, 0:21:28 UTC

For me the easy way is to add it to the app_config file.

Easier still is just to put it in the command line file itself, which in Windows is in the project data directory, and for the stock Windows application is called
mb_cmdline-8.22_windows_intel__opencl_nvidia_SoG.txt
Put it in there and save it, and the next WU that starts picks up those values.

With it in the app_config.xml file you have to exit & restart BOINC, or use the Manager and Options, read config files to get the new values to take effect.
The advantage of app_config.xml is that you have those settings in 1 file, instead of possibly several different files.
Grant
Darwin NT
ID: 1901604 · Report as offensive     Reply Quote
Profile Michel Makhlouta
Volunteer tester
Avatar

Send message
Joined: 21 Dec 03
Posts: 167
Credit: 29,686,436
RAC: 66,403
Lebanon
Message 1902067 - Posted: 20 Nov 2017, 15:58:58 UTC

i have added the below:
 -tt 1500 -sbs 1024 -period_iterations_num 4 -spike_fft_thresh 4096 -tune 1 64 1 4 -oclfft_tune_gr 256 -oclfft_tune_lr 16 -oclfft_tune_wg 256 -oclfft_tune_ls 512 -oclfft_tune_bn 64 -oclfft_tune_cw 64


to the file mb_cmdline-8.01-cuda60.txt...

still suffering from severe lag... any suggestions?
ID: 1902067 · Report as offensive     Reply Quote
Profile Mike
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 30787
Credit: 59,194,228
RAC: 25,373
Germany
Message 1902068 - Posted: 20 Nov 2017, 16:08:06 UTC

This is OpenCL command line whilst you are running Cuda app.
Won`t work.
With each crime and every kindness we birth our future.
ID: 1902068 · Report as offensive     Reply Quote
Profile Michel Makhlouta
Volunteer tester
Avatar

Send message
Joined: 21 Dec 03
Posts: 167
Credit: 29,686,436
RAC: 66,403
Lebanon
Message 1902218 - Posted: 21 Nov 2017, 10:36:17 UTC
Last modified: 21 Nov 2017, 10:43:38 UTC

this is what the server is sending me, i haven't modified anything... am i missing something? shouldn't I be getting SoG?

edit: needed to install nvidia-opencl-icd package, now i am getting opencl.
ID: 1902218 · Report as offensive     Reply Quote
Grant (SSSF)
Volunteer tester

Send message
Joined: 19 Aug 99
Posts: 9171
Credit: 118,609,453
RAC: 51,716
Australia
Message 1902220 - Posted: 21 Nov 2017, 10:50:54 UTC - in response to Message 1902218.  

this is what the server is sending me, i haven't modified anything... am i missing something? shouldn't I be getting SoG?

You don't get SoG or CUDA Work Units. A WU is a WU is a WU. SoG & CUDA are the applications that process the WUs.

You are running the stock installation for Linux. So the Manager will try different applications out to determine which one performs the best. Most of the time it gets it right (although sometimes it does get it wrong).
From the looks of things it's settled on CUDA60, although there are a couple of WUs there that will be processed with SoG. If you wish to use the values you posted when they are processed you need to put them in the mb_cmdline-8.01-SoG.txt (or whatever it is actually called) file.
The file you have put it in is for the CUDA application & the arguments & values are completely different for that application.
Grant
Darwin NT
ID: 1902220 · Report as offensive     Reply Quote
Profile Michel Makhlouta
Volunteer tester
Avatar

Send message
Joined: 21 Dec 03
Posts: 167
Credit: 29,686,436
RAC: 66,403
Lebanon
Message 1902229 - Posted: 21 Nov 2017, 11:43:52 UTC

yes i am not new here but i have been away for a year... i was actually missing some packages, that's why it chose CUDA60. Now i am running SoG, with the above cmdline, and suffering from severe lag as well...
ID: 1902229 · Report as offensive     Reply Quote
Profile Mike
Volunteer tester
Avatar

Send message
Joined: 17 Feb 01
Posts: 30787
Credit: 59,194,228
RAC: 25,373
Germany
Message 1902232 - Posted: 21 Nov 2017, 11:55:45 UTC - in response to Message 1902229.  
Last modified: 21 Nov 2017, 11:57:00 UTC

yes i am not new here but i have been away for a year... i was actually missing some packages, that's why it chose CUDA60. Now i am running SoG, with the above cmdline, and suffering from severe lag as well...


 -tt 1500 -sbs 1024 -period_iterations_num 4 -spike_fft_thresh 4096 -tune 1 64 1 4 -oclfft_tune_gr 256 -oclfft_tune_lr 16 -oclfft_tune_wg 256 -oclfft_tune_ls 512 -oclfft_tune_bn 64 -oclfft_tune_cw 64


No big surprise -period_iterations_num 4 is hardcore value and very likely to cause screen lags.

Just increase this value in steps of 10 until screen lag is tolerable.
Default is 50
With each crime and every kindness we birth our future.
ID: 1902232 · Report as offensive     Reply Quote

Message boards : Number crunching : use 2 out of 3 GPU


 
©2018 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.