Overclock.net banner
1 - 15 of 15 Posts

·
Premium Member
Joined
·
16,447 Posts
Discussion Starter · #1 ·
How to use 2nd and/or 3rd GPU only.

These options will disable certain cards from crunching.
This is useful for a few reasons.

If you decide you want to game and not have any FPS lag you can dedicate your tasks to your other cards and leave your primary card for gaming.

Also those running Fermi will sometimes have trouble sharing 1 task with a non Fermi cards.

1. Open Notepad

2. Paste code

Nvidia code

Code:

Code:
<cc_config>
<options>
<use_all_gpus>1</use_all_gpus>
<ignore_cuda_dev>0</ignore_cuda_dev>  
</options>
</cc_config>
ATI code

Code:

Code:
<cc_config>
<options>
<use_all_gpus>1</use_all_gpus>
<ignore_ati_dev>0</ignore_ati_dev>
</options>
</cc_config>
If you want to use only the 3rd slotted GPU for BOINC just add another line with:
"<ignore_cuda_dev>1</ignore_cuda_dev>" or "<ignore_ati_dev>1</ignore_ati_dev>"

Good example with 2 ATI in crossfire and a Physx card. (open spoiler)
1. 5870 - (disabled)
2. 5870 - (disabled)
3. GTS 250 - Crunching away

Code:

Code:
<cc_config>
<options>
<use_all_gpus>1</use_all_gpus>
<ignore_ati_dev>0</ignore_ati_dev>
<ignore_ati_dev>1</ignore_ati_dev>
</options>
</cc_config>

These options may be used in any combination.
1 code per line

After your done with that continue to step 3.

3. Save as cc_config.xml to BoincData folder (see below)

Default directories for BoincData
Windows 98/SE/ME: C:\\Windows\\All Users\\BOINC\\ or C:\\Windows\\Profiles\\All Users\\BOINC\\
Windows 2000/XP: C:\\Documents and Settings\\All Users\\Application Data\\BOINC\\
Windows Vista/Windows 7: C:\\ProgramData\\BOINC\\
Linux: wherever you unpack it/BOINC/
Macintosh OS X: /Library/Applications Support/BOINC/

4. Open BOINC Manager and start your projects.

For reference:
<use_all_gpus>1</use_all_gpus>
1 = True
0 = False

Under Tasks you will see Device (x) for different tasks, the number informs you which GPU its using.
Device (0) = 1st slotted GPU
Device (1) = 2nd
Device (2) = 3rd

Code -
<ignore_ati_dev>#</ignore_ati_dev>
<ignore_cuda_dev>#</ignore_cuda_dev>
# will disable GPUs depending on slot.

Will update pictures after Foldathon.
 

·
Registered
Joined
·
2,253 Posts
Is there a way to set GPUs to run different projects at the same time using similar commands used in cc_config.xml in the actual project xml files?

I was thinking of opening account_dnetc.net.xml and changing from:

<account>
<master_url>http://dnetc.net/</master_url>
<authenticator>xxxx</authenticator>
<project_name>[email protected]</project_name>
<project_preferences>
<resource_share>100</resource_share>
<no_cpu>1</no_cpu>
<no_ati>0</no_ati>
<no_cuda>1</no_cuda>
<project_specific>
<max_gfx_cpu_pct>10</max_gfx_cpu_pct>
</project_specific>
</project_preferences>
</account>

To:

<account>
<master_url>http://dnetc.net/</master_url>
<authenticator>xxxx</authenticator>
<project_name>[email protected]</project_name>
<project_preferences>
<resource_share>100</resource_share>
<no_cpu>1</no_cpu>
<no_ati>0</no_ati>
<no_cuda>1</no_cuda>
<project_specific>
<max_gfx_cpu_pct>10</max_gfx_cpu_pct>
<use_all_gpus>1</use_all_gpus>
<ignore_ati_dev>0</ignore_ati_dev>
<ignore_ati_dev>1</ignore_ati_dev>
</project_specific>
</project_preferences>
</account>

And changing account_milkyway.cs.rpi.edu_milkyway.xml from:
<account>
<master_url>http://milkyway.cs.rpi.edu/milkyway/</master_url>
<authenticator>xxxx</authenticator>
<project_name>[email protected]</project_name>
<project_preferences>
<resource_share>200</resource_share>
<no_cpu>1</no_cpu>
<project_specific>
<nvidia_block_amount>128</nvidia_block_amount>
</project_specific>
</project_preferences>
</account>

To:
<account>
<master_url>http://milkyway.cs.rpi.edu/milkyway/</master_url>
<authenticator>xxxx</authenticator>
<project_name>[email protected]</project_name>
<project_preferences>
<resource_share>200</resource_share>
<no_cpu>1</no_cpu>
<project_specific>
<nvidia_block_amount>128</nvidia_block_amount>
<use_all_gpus>1</use_all_gpus>
<ignore_ati_dev>1</ignore_ati_dev>
<ignore_ati_dev>0</ignore_ati_dev>
</project_specific>
</project_preferences>
</account>

Or will that break something?
 

·
Registered
Joined
·
2,253 Posts
Ah well, scratch that idea lol - I tried various different ways off adding those lines but it made no difference lol


I then tried making custom app_info.xml files and although BOINC started different projects on each GPU, I got error/debug windows popping open about a missing device description or something?

Anyhoo, this is what I entered into my custom DNETC app_info.xml file and added to the DNETC project folder (C:\\ProgramData\\BOINC\\projects\\dnetc.net):

Code:

Code:
<app_info>
 <app>
 <name>DNETC</name>
 </app>
 <file_info>
  <name>dnetc_1.29_windows_intelx86__ati14.exe</name>
  <executable/>
 </file_info>

 <app_version>
  <app_name>DNETC</app_name>
  <version_num>1.29</version_num>
  <plan_class>ati14</plan_class>
    <flops>1.0e11</flops>
    <avg_ncpus>0.05</avg_ncpus>
    <max_ncpus>1</max_ncpus>
    <coproc>
      <type>ATI</type>
      <count>1</count>
    </coproc>
    <cmdline></cmdline>
  <file_ref>
   <file_name>dnetc_1.29_windows_intelx86__ati14.exe</file_name>
   <main_program/>
  </file_ref>
 </app_version>
</app_info>
And this is what I entered into my custom [email protected] app_info.xml file and added to the [email protected] project folder (C:\\ProgramData\\BOINC\\projects\\milkyway.cs.rpi .edu_milkyway):

Code:

Code:
<app_info>
 <app>
 <name>milkyway</name>
 </app>
 <file_info>
  <name>milkyway_0.23_windows_x86_64__ati13ati.exe</name>
  <executable/>
 </file_info>
 <file_info>
  <name>brook64a_ati.dll</name>
  <executable/>
 </file_info>

 <app_version>
  <app_name>milkyway</app_name>
  <version_num>23</version_num>
  <plan_class>ati13ati</plan_class>
    <flops>1.0e11</flops>
    <avg_ncpus>0.05</avg_ncpus>
    <max_ncpus>1</max_ncpus>
    <coproc>
      <type>ATI</type>
      <count>1</count>
    </coproc>
    <cmdline></cmdline>
  <file_ref>
   <file_name>milkyway_0.23_windows_x86_64__ati13ati.exe</file_name>
   <main_program/>
  </file_ref>
  <file_ref>
   <file_name>brook64a_ati.dll</file_name>
  </file_ref>
 </app_version>
</app_info>
I pretty sure the reason BOINC started running a different project on each GPU was because of the following lines added to each app_info.xml file:

Code:

Code:
    <coproc>
      <type>ATI</type>
      <count>1</count>
    </coproc>
Maybe someone can work out what I am missing from the app_info.xml files so we can finally get BOINC to run different projects on different GPUs at the same time
 

·
Premium Member
Joined
·
16,447 Posts
Discussion Starter · #8 ·
un-nefer I have tried many of those combinations, yet to find how to do it properly with one client. I may have found a solution just need more time to mess with the clients.

Quote:

Originally Posted by Phobos223 View Post
Anyone figure out how to force DNETC to use only 1 GPU for a work unit?
Working on it.
 

·
Registered
Joined
·
2,253 Posts
Sounds good Chris. I gave up trying last night when I noticed it was 1am lol. I'm at work atm, but when I get home I'll try again.

I have an idea that I recon might work:

I noticed that with the optimized [email protected] files, [email protected] only uses a single GPU because it has those lines I posted earlier (<count>1</count>).

So I recon if I use the optimised [email protected] with the app_info.xml it comes with, and then set the priority of [email protected] higher then dnetc, then [email protected] should always use the first GPU (and only 1 GPU because of <count>1</count>) - which should theoretically leave the second GPU for the project with the next highest priority.

Well that's what I'm thinking atm, but I won't be able to test until I get home in about 7 hours lol.
 

·
Premium Member
Joined
·
16,447 Posts
Discussion Starter · #10 ·
Well my idea for a temporary fix is running 2 Boinc clients with separate directories.
Its possible with the console client but I am working out the kinks...

Posted in the official forum for some help on running 2 clients using different data directories.
That was for the separate DNETC tasks Phobos is asking for.

Taking a break for now will keep trying to figure it out later on before I knock out, then look into what your trying to do.
 

·
Registered
Joined
·
117 Posts
I know this is kind of a dead thread, but has anyone figured out how to write this app_info.xml file yet. I don't want to detach from dnetc, but when my 5850s can blow through a WU in 15 minutes alone, and 12 minutes together, I kind of want to separate them.

If I try the previous suggestion all the files except the main app are deleted, and it cannot download anything from that point on until I detach and reattach. Anyone got an idea for that?
 

·
Premium Member
Joined
·
4,962 Posts
Yes it does. If the cc_config is not modified BOINC will use all available GPUs.

It is also possible run specific projects on specific GPUs, in a multi-GPU system.
 
1 - 15 of 15 Posts
Top