Multi-Threaded Apps

Message boards : Questions and problems : Multi-Threaded Apps
Message board moderation

To post messages, you must log in.

Previous · 1 · 2

AuthorMessage
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 56288 - Posted: 27 Sep 2014, 16:53:37 UTC - in response to Message 56279.  

You can limit the number of threads in the cc_config by adding this <ncpus>48</ncpus>

The &lt;ncpus/&gt; configuration option tells BOINC that you want to test use that many CPU cores, even when you don't have them. Doing this on e.g. a quad core CPU will start 48 instances of science applications, massively slowing down everything in the computer. Not really a good idea or advice in this.
ID: 56288 · Report as offensive
Richard Haselgrove
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 5081
United Kingdom
Message 56292 - Posted: 27 Sep 2014, 17:56:53 UTC - in response to Message 56284.  

Maybe I'm misunderstanding, but hopefully I'm not. Multi-threaded apps (tasks running on more than 1 core) use OpenCL to do so. This basically helps the task complete faster by using parallel processing instead of serial.

That is only one possible example, out of many. The BOINC programming manual refers to

You may be able to use OpenCL, MPI, OpenMP, ​CUDA, languages like Titanium or Cilk, or libraries of multi-threaded numerical "kernels", to develop a multi-threaded app.

In general on this forum, we refer to OpenCL when we mean OpenCL, and multi-threaded when we mean one of the others - most commonly OpenMP.
ID: 56292 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 56293 - Posted: 27 Sep 2014, 18:02:04 UTC - in response to Message 56292.  

In general on this forum, we refer to OpenCL when we mean OpenCL, and multi-threaded when we mean one of the others - most commonly OpenMP.

I have to give it to SuperSluether that projects can make use of OpenCL to make their multi-threaded applications, and that we can refer to it as that. OpenCL isn't GPU only, it's capable of running on anything that can do calculations and has OpenCL support, so in theory also the processor in a NIC or Soundcard.

Support for OpenCL on CPUs is already in BOINC and I think I saw that support for non-CPUs is about to be introduced in 7.5
ID: 56293 · Report as offensive
Grandpa

Send message
Joined: 20 Jun 14
Posts: 11
United States
Message 56295 - Posted: 27 Sep 2014, 21:59:10 UTC - in response to Message 56288.  

You can limit the number of threads in the cc_config by adding this <ncpus>48</ncpus>

The &lt;ncpus/&gt; configuration option tells BOINC that you want to test use that many CPU cores, even when you don't have them. Doing this on e.g. a quad core CPU will start 48 instances of science applications, massively slowing down everything in the computer. Not really a good idea or advice in this.


<ncpus>48</ncpus> was just an example I use that to limit a 64 core machine to 48 cores when running multil threaded WU's. You can put however many cores you want to use there <ncpus>3</ncpus> when you are running muti threaded work.
ID: 56295 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15480
Netherlands
Message 56296 - Posted: 27 Sep 2014, 23:51:44 UTC - in response to Message 56295.  

&lt;ncpus&gt;48&lt;/ncpus&gt; was just an example I use that to limit a 64 core machine to 48 cores when running multil threaded WU's. You can put however many cores you want to use there <ncpus>3</ncpus> when you are running muti threaded work.

You might be using it for that, but it's not what it is there for. Since you just said earlier that you set it like that and that that works for you, without telling anyone at the time that you have the amount of CPUs to work with, I only explained what the option does and why it's then bad advice to tell people to use it like that. Not everyone has 64 CPUs or cores. Someone with only 1, 2, 3, 4, 6, 8, 10, 12 cores will overload his machine with 48 tasks running simultaneously.

http://boinc.berkeley.edu/wiki/Client_configuration
 <ncpus>N</ncpus>

Act as if there were N CPUs; e.g. to simulate 2 CPUs on a machine that has only 1. To use the number of available CPUs, set the value to -1 (was 0 which in newer clients really means zero).
ID: 56296 · Report as offensive
Previous · 1 · 2

Message boards : Questions and problems : Multi-Threaded Apps

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.