Message boards :
BOINC client :
Assigning a CPU only project to less than 1 whole core
Message board moderation
Author | Message |
---|---|
Send message Joined: 24 Feb 17 Posts: 8 |
Is there a way to designate a CPU only project (i.e. Asteroids@Home) to only use a certain percentage of a cpu core (i.e. .1, .25, .5) rather than the core as a whole? I've tried replacing <gpu_versions> in the app_config.conf with <cpu_versions> but it doesn't seem to be working. If this feature doesn't have programming to support it please consider writing it. ;) |
Send message Joined: 24 Feb 17 Posts: 8 |
...app_config.xml - excuse me |
Send message Joined: 29 Aug 05 Posts: 15477 |
Try following the documentation first: https://boinc.berkeley.edu/wiki/Client_configuration#Application_configuration What you ask for is already there as <code>avg_ncpus</code> |
Send message Joined: 24 Feb 17 Posts: 8 |
Thank you for your prompt reply! I just have a few questions: <app_config> [<app> (My current config files do not have the brackets "[" is this necessary?) <name>Application_Name</name> <max_concurrent>1</max_concurrent> [<fraction_done_exact/>] (This is a closing tag. Is there supposed to be an opening tag?) <gpu_versions> <gpu_usage>.5</gpu_usage> <cpu_usage>.4</cpu_usage> </gpu_versions> </app>] ... [<app_version> <app_name>Application_Name</app_name> [<plan_class>mt</plan_class>] (What variables replace "mt"?) [<avg_ncpus>x</avg_ncpus>] (I can set this to ".X"?) [<ngpus>x</ngpus>] [<cmdline>--nthreads 7</cmdline>] (What's the difference between this and "<max_concurrent>7</max_concurrent>"?) </app_version>] ... [<project_max_concurrent>N</project_max_concurrent>] (What's the difference between this and "<max_concurrent>7</max_concurrent>"?) </app_config> |
Send message Joined: 24 Feb 17 Posts: 8 |
Ok after actually reading the descriptions I just have one question left: [<project_max_concurrent>N</project_max_concurrent>] (What's the difference between this and "<max_concurrent>7</max_concurrent>"?) |
Send message Joined: 29 Aug 05 Posts: 15477 |
re: brackets: Note: The sections in square brackets '[foo/]' are optional. When you want to use any, remove the square brackets. What's the difference between this and "<max_concurrent>7</max_concurrent>"? project_max_concurrent = maximum amount of jobs per project. max_concurrent = maximum amount of tasks for that application. |
Send message Joined: 5 Oct 06 Posts: 5077 |
project_max_concurrent = maximum amount of jobs per project.Note: A project may have more than one application. |
Send message Joined: 24 Feb 17 Posts: 8 |
How would I go about specifying this setting in the config files?: "Run CPU versions of applications for which GPU versions are available" As I have computers on my grid that only crunch cpu tasks. Or would it be better all around to say no? Also are CPU versions of apps any different than the GPU counterparts? Will the GPU versions return any additional data? |
Send message Joined: 25 May 09 Posts: 1283 |
If you only want to run CPU applications then you can safely ignore the message, indeed for some projects you can avoid it by de-selecting "run GPU applications" option from the project web site. CPU and GPU applications are different - GPU are highly parallel and their applications are written to work with a very large number of threads running in together, whereas CPUs are very single or of very low thread counts. Given the same target data the two applications should arrive at the same answer. There are some projects which only have GPU, or CPU applications, in which case trying to run the application on the wrong type of processor will fail. |
Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.