Welcome to MilkyWay@home

Splitting MT N-body?

Message boards : Number crunching : Splitting MT N-body?
Message board moderation

To post messages, you must log in.

AuthorMessage
Captiosus

Send message
Joined: 9 Apr 14
Posts: 35
Credit: 9,708,616
RAC: 0
Message 66814 - Posted: 26 Nov 2017, 21:38:17 UTC

I was wondering, is there a way to split MT N-Body units so that instead of say, 1 unit taking up all 12 threads, i can have 2 units using 6 threads each?
ID: 66814 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
mmonnin

Send message
Joined: 2 Oct 16
Posts: 162
Credit: 1,004,358,923
RAC: 16,179
Message 66818 - Posted: 29 Nov 2017, 19:34:18 UTC - in response to Message 66814.  

I was wondering, is there a way to split MT N-Body units so that instead of say, 1 unit taking up all 12 threads, i can have 2 units using 6 threads each?


Yes you can use an app config with ncpus option to make it run on however many threads you like.

Here is an example from cosmology FAQ. Just have to update the app_name and plan_class. Event log will tell you the correct app name and plan class is in the ( ) of the task, usually something like MT, CUDA, or OpenCL for GPUs.
http://www.cosmologyathome.org/faq.php

<app_config>
    <app>
        <name>camb_boinc2docker</name>
        <max_concurrent>1</max_concurrent>
    </app>
    <app_version>
        <app_name>camb_boinc2docker</app_name>
        <plan_class>vbox64_mt</plan_class>
        <avg_ncpus>2</avg_ncpus>
    </app_version>
</app_config>
ID: 66818 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Captiosus

Send message
Joined: 9 Apr 14
Posts: 35
Credit: 9,708,616
RAC: 0
Message 66821 - Posted: 30 Nov 2017, 14:58:14 UTC - in response to Message 66818.  

Cheers! Took a little bit to get it right, but i got it and now hopefully it will help in improving CPU utilization a bit.
ID: 66821 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
mmonnin

Send message
Joined: 2 Oct 16
Posts: 162
Credit: 1,004,358,923
RAC: 16,179
Message 66822 - Posted: 30 Nov 2017, 20:31:57 UTC

Good to here.

And holy crap, I copied in the text from the website and didn't notice all of the other junk. Code tags not only do not keep formatting but I guess don't keep text as is like it should. For a future reference here's the correct text from Cosmo FAQ.

<app_config>
<app>
<name>camb_boinc2docker</name>
<max_concurrent>1</max_concurrent>
</app>
<app_version>
<app_name>camb_boinc2docker</app_name>
<plan_class>vbox64_mt</plan_class>
<avg_ncpus>2</avg_ncpus>
</app_version>
</app_config>
ID: 66822 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote
Captiosus

Send message
Joined: 9 Apr 14
Posts: 35
Credit: 9,708,616
RAC: 0
Message 66825 - Posted: 1 Dec 2017, 2:30:22 UTC

Ha yeah, I probably should have mentioned that your initial copy over from Cosmology@home completely mangled the code.
ID: 66825 · Rating: 0 · rate: Rate + / Rate - Report as offensive     Reply Quote

Message boards : Number crunching : Splitting MT N-body?

©2024 Astroinformatics Group