Running only one GPU

Message boards : Number crunching : Running only one GPU
Message board moderation

To post messages, you must log in.

AuthorMessage
S\

Send message
Joined: 18 Oct 11
Posts: 28
Credit: 9,093,005
RAC: 0
United States
Message 1805654 - Posted: 29 Jul 2016, 20:05:49 UTC

Is there a command for the config file where I can ask it to only run on 1 of 2 GPUs? That way I can save my other GPU for a different piece of software?
ID: 1805654 · Report as offensive
The_Matrix
Volunteer tester

Send message
Joined: 17 Nov 03
Posts: 414
Credit: 5,827,850
RAC: 0
Germany
Message 1805655 - Posted: 29 Jul 2016, 20:07:27 UTC

https://boinc.berkeley.edu/wiki/Client_configuration

U can use "exclude_gpu" in the cc_config.xml file
ID: 1805655 · Report as offensive
AMDave
Volunteer tester

Send message
Joined: 9 Mar 01
Posts: 234
Credit: 11,671,730
RAC: 0
United States
Message 1805665 - Posted: 29 Jul 2016, 20:40:55 UTC

Suppose there are more than 1 GPUs, how do you determine the
<device_num>
of the GPUs you want to exclude?

<exclude_gpu>
   <url>project_URL</url>
   [<device_num>N</device_num>]
   [<type>NVIDIA|ATI|intel_gpu</type>]
   [<app>appname</app>]
</exclude_gpu>

because

 If <device_num> is not specified, exclude all GPUs of the given type.
ID: 1805665 · Report as offensive
Richard Haselgrove Project Donor
Volunteer tester

Send message
Joined: 4 Jul 99
Posts: 14650
Credit: 200,643,578
RAC: 874
United Kingdom
Message 1805677 - Posted: 29 Jul 2016, 21:22:09 UTC - in response to Message 1805665.  

Suppose there are more than 1 GPUs, how do you determine the
<device_num>
of the GPUs you want to exclude?

Look at the startup lines in the BOINC Event Log. Each device is identified by name and number.
ID: 1805677 · Report as offensive
AMDave
Volunteer tester

Send message
Joined: 9 Mar 01
Posts: 234
Credit: 11,671,730
RAC: 0
United States
Message 1805917 - Posted: 30 Jul 2016, 20:36:44 UTC - in response to Message 1805677.  

@Richard

By using the "exclude_gpu" option in cc_config files in respective project folders, would you be able to run different projects on specific GPUs concurrently?  For example, Project A would run on <device_num> 2, and Project B would run on <device_num> 1.
ID: 1805917 · Report as offensive
Richard Haselgrove Project Donor
Volunteer tester

Send message
Joined: 4 Jul 99
Posts: 14650
Credit: 200,643,578
RAC: 874
United Kingdom
Message 1805933 - Posted: 30 Jul 2016, 22:19:21 UTC - in response to Message 1805917.  

Well, something like that - it's possible, but don't do it like that.

cc_config.xml is one file - singular. It's a BOINC file, and it belongs in the root of the BOINCdata folder tree, wherever you have chosen to put that on your personal system.

Tip - the best thing to do is to open the Event Log options dialog (Ctrl+Shift+F), make a trivial change or two (<cpu_sched> and <sched_op_debug> are useful, without being too verbose), and 'OK' the changes. That will write out a complete cc_config.xml file with all allowed tags and current values: it's a really helpful framework to build your customisations on.

Then, open Client Configuration Options and build your GPU exclusions according to the example given. In your example, each project will need a separate <exclude_gpu> block of its own. Remember that [square brackets] in computer manuals are used to denote optional sections - either delete the brackets to make the directive active, or leave out the line completely if you don't want it.

<exclude_gpu> is one of the cases where you need a complete client restart to activate it - 'Read config files' isn't enough. You may encounter some unexpected changes in work fetch and scheduling after setting a GPU exclusion - I've found one significant (replicated and reported) bug in there, but nothing's been done about it yet.
ID: 1805933 · Report as offensive
AMDave
Volunteer tester

Send message
Joined: 9 Mar 01
Posts: 234
Credit: 11,671,730
RAC: 0
United States
Message 1805955 - Posted: 31 Jul 2016, 0:10:07 UTC - in response to Message 1805933.  

Well, something like that - it's possible, but don't do it like that.

cc_config.xml is one file - singular. It's a BOINC file, and it belongs in the root of the BOINCdata folder tree, wherever you have chosen to put that on your personal system.

I thought it covered all projects on a rig, I was a tad confused.  I had forgotten that I had created a cc_config.xml file months ago.

Then, open Client Configuration Options and build your GPU exclusions according to the example given. In your example, each project will need a separate <exclude_gpu> block of its own.

It would be easier having multiple <exclude_gpu> blocks in one place.
Immense thanks.
ID: 1805955 · Report as offensive

Message boards : Number crunching : Running only one GPU


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