[mcstas-users] --grid option for mcrun

Peter Kjær Willendrup pkwi at fysik.dtu.dk
Wed May 16 11:36:06 CEST 2018


Hello again,


I just did a minimal test on a pair of local Linux systems here:

One needs to

1) install the Perl module Proc::Simple, e.g. from CPAN (https://cpan.metacpan.org/authors/id/M/MS/MSCHILLI/Proc-Simple-1.32.tar.gz) to the “host” machine where the initial mcrun.pl command will be launched from.

2) Launch the simulation e.g. mcrun.pl --grid=2 BNL_H8.instr lambda=2.36 from an “otherwise empty” folder on the “host” machine. (Otherwise any file in your current directory will be attempted to transfer via scp to the slave(s) )


- Then the simulations seem to run and are later concatenated using the mcformat utility.


Best and hope this helps,

Peter


Peter Kjær Willendrup
Forskningsingeniør, Speciakonsulent
Næstformand for DTU Fysik LSU



DTU Physics

[cid:image001.gif at 01CCCAF1.5E6331F0]

Technical University of Denmark



[cid:image002.gif at 01CCCAF1.5E6331F0]


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>

On 16 May 2018, at 10:07 , Peter Kjær Willendrup <pkwi at fysik.dtu.dk<mailto:pkwi at fysik.dtu.dk>> wrote:

Dear Alex,

On 15 May 2018, at 16:17 , Alex Szakál <szakal.alex at wigner.mta.hu<mailto:szakal.alex at wigner.mta.hu>> wrote:

I tried to install McStas on two machines and I ran into a problem I
couldn't solve. The first machine is my desktop machine and the second
is a server machine shared with my colleagues which serves as a
computing node. I followed the instructions in the manual (
http://www.mcstas.org/documentation/manual/mcstas-2.4.1-manual.pdf
) to set up the "grid" configuration using ssh, because we use
different operating systems with my colleagues, but we want to use the
same computing node. The openssh-server on the computing node was set
up and rsa keys were added for passwordless authentication. Now, I am
able to log in the computing
node without typing the password. A "hosts" file containing the
hostname of the computing node was created in $HOME/.mcstas/

#I tried the following command to simulate the 'basic.instr' insrument
on the grid:
mcrun --grid=4 basic.instr
#And I got the following error message:
user config does not exist: /home/szakal/.mcstas/2.4.1/mccode_config.json
Usage: mcrun.py [-cpnN] Instr [-sndftgahi] params={val|min,max|min,guess,max}...

mcrun.py: error: no such option: --grid

It seems that mcrun does not recognize the --grid option. Please help me
to solve this problem. McStas was installed on my Ubuntu 16.04 system
from the .deb packages following the descriptions found on the McStas
Homepage.

Unfortunately it seems that you have stumbled upon an inconsistency in the documentation.

The --grid option was only ever available for the Perl toolset and predates our MPI parallelisation that most people adopted instead.

The mcrun.pl tool (from the mcstas-tools-perl-2.4.1 package) includes the --grid option, but I am not 100% certain that it remains functional.


Best and sorry for the inconvenience,

Peter


Peter Kjær Willendrup
Forskningsingeniør, Speciakonsulent
Næstformand for DTU Fysik LSU



DTU Physics

<image001.gif>

Technical University of Denmark



<image002.gif>


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>

_______________________________________________
mcstas-users mailing list
mcstas-users at mcstas.org<mailto:mcstas-users at mcstas.org>
https://mailman2.mcstas.org/mailman/listinfo/mcstas-users




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman2.mcstas.org/pipermail/mcstas-users/attachments/20180516/bdee5e5e/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/20180516/bdee5e5e/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/20180516/bdee5e5e/attachment-0003.gif>


More information about the mcstas-users mailing list