[mcstas-users] Using mcset_ncount(nnn)
Peter Kjær Willendrup
pkwi at fysik.dtu.dk
Mon Jan 4 15:08:32 CET 2021
Hi Uli,
As you have probably figured out yourself, our MPI-approach is quite naive in the sense that:
1) The “mother” process collects / decides the “full” ncount of the problem to be simulated (e.g. Nfull)
2) On the k used mpi processors, the partition Nfull / k is simulated
If I understand you correctly, you are asking if one could redefine the ncount in INITIALIZE?
- I guess this should in fact be possible, provided that the same Nfull is simulated over the k processors.
You will of course have to do some logic in the INITIALIZE section to up / downscale the node-dependent ncount as you propose, figuring out how many processors that are of each type and assigning the correct, scaled number locally.
Best
Peter
On 4 Jan 2021, at 14.48, Wildgruber, Christoph U. <wildgrubercu at ornl.gov<mailto:wildgrubercu at ornl.gov>> wrote:
Hi,
I have a quick question which I am not sure I found the correct answer for in the docs…
If I use 'mcset_ncount(nnn)’ in the mcstas instrument definition with the intent to improve
load balancing on a heterogeneous cluster will the run result reflect the newly set number of
source neutrons (nnn)?
Thanks,
Uli
_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users
Peter Kjær Willendrup
Forskningsingeniør, Specialkonsulent
Næstformand for DTU Fysik LSU
DTU Physics
[cid:b6339554-7f28-441d-9f31-5944f811397c at win.dtu.dk]
Technical University of Denmark
[cid:e108e480-fcab-46e2-9531-b38165079572 at win.dtu.dk]
Department of Physics
Fysikvej
Building 307
DK-2800 Kongens Lyngby
Direct +45 2125 4612
Mobil +45 2125 4612
Fax +45 4593 2399
pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210104/9ba78791/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 58 bytes
Desc: image001.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210104/9ba78791/attachment-0002.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.gif
Type: image/gif
Size: 1055 bytes
Desc: image002.gif
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20210104/9ba78791/attachment-0003.gif>
More information about the mcstas-users
mailing list