[mcstas-users] MCPL files and mpi

Peter Kjær Willendrup pkwi at fysik.dtu.dk
Thu Nov 7 18:06:46 CET 2019


Dear Thomas,


The McStas use of MCPL input in MPI settings is implemented in a relatively trivial way:
Every particle in the file is processed by every MPI process

I therefore suspect that we could be looking at an I/O limitation from the filesystem - 1 vs. 10 vs. 64 processes wanting to read the same 24 Gb each from disk ‘in parallel’.

- And I must admit we never benchmarked this part of the implementation wrt. performance…

Thanks for letting us know - and let’s perhaps define a GItHub ticket on the topic where we can continue discussing / trying things out?


Cheers,

Peter

On 7 Nov 2019, at 17.34, Huegle, Thomas <hueglet at ornl.gov<mailto:hueglet at ornl.gov>> wrote:

Dear all,

I am trying out using MCPL files as input into simulations right now:

COMPONENT sourceMCPL = MCPL_input( filename="/data/source.mcpl" )
                AT (0, 0, 0) RELATIVE Origin

When I run the simulation using simply “mcrun mcpltester.instr”, it takes about half an hour (the MCPL file in question is 24GB).
However, when I try to use mpi (“mcrun -c --mpi=10 mcpltester.instr”), it takes something closer to 50 minutes. The problem seems to get worse (predicted run time for mpi=64: ~17 hours).

Is there a way around it? Some special way of compiling perhaps?

Thank you very much!

Thomas
_______________________________________________
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/20191107/3d294a35/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/20191107/3d294a35/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/20191107/3d294a35/attachment-0003.gif>


More information about the mcstas-users mailing list