CPU + GPU Balance

FoldingSolutions
FoldingSolutions
Joined: 9 Sep 06
Posts: 5
Credit: 78755832
RAC: 0
Topic 198493

Hi All!

Just a quick Q...I have searched the forums for this specific query but can't find anything and i'm sure someone will know.

How do I force BOINC to prioritise GPU work units over CPU ones?

e.g. a GPU unit will require 0.5 CPU, I have 2 GPU's and 4 CPU's but BOINC chooses to run the 4 CPU tasks instead of the GPU ones. I have a GPU factor of 0.5 in my preferences so really i should be able to run 4 GPU tasks (utilising 2 CPU's in total also). And use the other 2 CPU's for CPU work.

Help!

Keith Myers
Keith Myers
Joined: 11 Feb 11
Posts: 4960
Credit: 18654096355
RAC: 5584732

CPU + GPU Balance

Since the GPU apps are CUDA based and not OpenCL based, you don't need all that much CPU resources to feed the GPU's. I would set your BOINC computing preferences to use only 50% of your CPU cores, IOW 2 cores which would free up the other two CPU cores to feed the GPU's. The setting is on your Einstein account page.

 

Logforme
Logforme
Joined: 13 Aug 10
Posts: 332
Credit: 1714373961
RAC: 0

The AMD GPU (which the OP

The AMD GPU (which the OP seems to have) uses OpenCL and requires more CPU.
The exact setting Keith is talking about is called "Use at most [ ] % of the CPUs" and it's found in the "Options - Computing Preferences..." menu of the boinc manager.

FoldingSolutions
FoldingSolutions
Joined: 9 Sep 06
Posts: 5
Credit: 78755832
RAC: 0

Thanks to both for your quick

Thanks to both for your quick replies so far!

I have just noticed that in the startup event log i get this:

08/03/2016 19:46:52 | | OpenCL: AMD/ATI GPU 0: Bonaire (driver version 1912.5 (VM), device version OpenCL 2.0 AMD-APP (1912.5), 1024MB, 1024MB available, 1198 GFLOPS peak)

08/03/2016 19:46:52 | | OpenCL: AMD/ATI GPU 1 (ignored by config): Tahiti (driver version 1912.5 (VM), device version OpenCL 1.2 AMD-APP (1912.5), 3072MB, 3072MB available, 2739 GFLOPS peak)

Which would explain why one of the GPU's isn't running, incidentally it is the one in the first PCI Express port and the primary GPU that is "ignored by config". What would cause this? I don't have any app_config file overrides or anything...

Gary Roberts
Gary Roberts
Moderator
Joined: 9 Feb 05
Posts: 5872
Credit: 117238855405
RAC: 36188366

RE: What would cause this?

Quote:
What would cause this? I don't have any app_config file overrides or anything...


Nothing to do with app_config.xml. The BOINC client configuration is handled by cc_config.xml. This shouldn't be needed so find it and remove it (or at least remove the entry in that file that causes the GPU to be ignored).

Cheers,
Gary.

Mumak
Joined: 26 Feb 13
Posts: 325
Credit: 3506546383
RAC: 1846189

What about RE:

What about

Quote:
1


is that no longer required in cc_config.xml ?

-----

FoldingSolutions
FoldingSolutions
Joined: 9 Sep 06
Posts: 5
Credit: 78755832
RAC: 0

Cracking! I don't know

Cracking!

I don't know where the client was reading it's config from because there was no cc_config file.

But creating one and adding the lines:

1

As suggested has solved the problem :) the event log now looks like this and both GPUs happily crunching away:

08/03/2016 22:00:43 | | OpenCL: AMD/ATI GPU 0: Bonaire (driver version 1912.5 (VM), device version OpenCL 2.0 AMD-APP (1912.5), 1024MB, 1024MB available, 1198 GFLOPS peak)

08/03/2016 22:00:43 | | OpenCL: AMD/ATI GPU 1: Tahiti (driver version 1912.5 (VM), device version OpenCL 1.2 AMD-APP (1912.5), 3072MB, 3072MB available, 2739 GFLOPS peak)

Thanks all for your help!

Matt

PS. Most probably know this but I also set my CPU to use only 75% of the CPU cores (3/4) as MSI Afterburner was showing sketchy GPU usage, but now both GPUs are going for gold with just 2 CPU tasks running alongside.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.