[neutron-mc] Addentum: MPI support

Peter Willendrup peter.willendrup at risoe.dk
Tue May 8 22:42:37 CEST 2007


Hi guys,


I must admit that I didn't invest much time in looking at MPICH and McStas
on Win32 to date. I am very happy that you've started breaking ground for
McStas in that area Aaron.

You are probably right that mpicc is 'unix only' in the sense that it is a
shell script calling your local c compiler (in many cases gcc) with proper
lib and include flags. I will have a look around to see if I can find a
win32 equivalent or alternatively investigate what difficulties we would
have in writing up an equivalent batch.

Chris: you are absolutely right that cygwin could be an option, however
till date we have avoided it since the default install (which is what an
average Win user would select) is about 1Gb -> a lot of overhead for
something as small as McStas.

Cheers,

Peter

--
-------------------------------------
Peter Kjaer Willendrup, cand. scient

Phone: (+45) 46 77 58 62
email: peter.willendrup at risoe.dk
-------------------------------------

On Tue, 8 May 2007, Christopher Crawford wrote:

> Hi Aaron,
>    Check out 'cygwin.com'.  They provide almost full Unix
> functionality for Windows, including the standard 'gcc' compiler and
> and x-server, under the GPL.
> --Chris
>
> TA-53/MPF-1/D111 P-25 MS H846
> LANL, Los Alamos, NM  87545
> 505-665-9804(o) 665-4121(f) 662-0639(h)
>
>
> On May 8, 2007, at 14:18:20, Aaron M. Percival wrote:
>
> > Hello again,
> >
> >
> >
> > I?ve been playing around with the MPI support for McStas for most
> > of the day.  I believe that I have solved a few of my problems:
> >
> >
> >
> > I have defined a  ?machines? file named ?mcstas-hosts? in the perl
> > directory of the mcstas directory.  The file works as I?ve used it
> > in the test program provided with mpich.
> >
> >
> >
> > I have modified the mcstas_config.perl file as follows:
> >
> >
> >
> >     HOSTFILE => 'C:\mcstas\lib\tools\perl\mcstas-hosts',
> >
> >     MPIRUN => 'mpiexec.exe',
> >
> >     THREADS => 'no',
> >
> >     SSH => 'no',
> >
> >
> >
> > My problem now is that I?m not sure how to define the MPICC
> > variable, as from my understanding mpicc is unix only.  Therefore,
> > the  MPICC => 'no', is not allowing me to use MPI support.  Is
> > there a windows based compiler that I could used here, or another
> > way around this?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Aaron
> >
> >
> >
> > *************************************************
> >
> > Aaron M. Percival
> >
> > M.Sc. Candidate
> >
> > Dept. of Physics, Engineering Physics & Astronomy
> >
> > Queen's University
> >
> > Kingston, Ontario, Canada, K7L 3N6
> >
> > Office: 613-533-6000 ext. 74789
> >
> > Fax: 613-533-6463
> >
> > *************************************************
> >
> >
> >
> > _______________________________________________
> > neutron-mc mailing list
> > neutron-mc at risoe.dk
> > http://mailman.risoe.dk/mailman/listinfo/neutron-mc
>
>
>
>
> _______________________________________________
> neutron-mc mailing list
> neutron-mc at risoe.dk
> http://mailman.risoe.dk/mailman/listinfo/neutron-mc
>

Mvh/Regards

Peter

--
-------------------------------------
Peter Kjaer Willendrup, Cand. Scient

Phone: (+45) 46 77 58 62
email: peter.willendrup at risoe.dk
-------------------------------------



More information about the mcstas-users mailing list