<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
<html><body>
<p>Hello Stefano,<br /><br />it looks like the mpicc.bat is tuned to use MPICH and not OpenMPI.<br /><br />Try to NOT to use 'mpicc.bat', that is put it somewhere not in the path. <br />Then change 'mpicc.bat' into 'mpicc' in the McStas Preferences. I think there is an mpicc command installed by OpenMPI.<br /><br />If this does not work, try changing the MPICH into the location to OpenMPI lib and include paths in the mpicc.bat script.<br /><br />Emmanuel.<br /><br />Le 2017-05-25 09:57, stefano.bellissima@fi.isc.cnr.it a écrit :</p>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<pre>Dear Emmanuel,
thanks for your help with this McStas question.
Actually, I have installed OpenMPI as you said.
In the /Preferences panel I see the following Compilation options:
- Compiler to use: gcc
- MPI Compiler to use: mpicc.bat
- MPIrun command to use: mpiexec.exe
I tried to run a file called prova_MPI.instr in this way:
"mcrun -c --mpi=4 prova_MPI.instr"
following an example written at pag 59 of the McStas manual,
but it didn't work.
Honestly, I don't know how to fix that.
I have attached a screenshot of my desktop so that you can see the
type of error I have while compiling.
Can you help me?
Many thanks
Best regards
Stefano Bellissima
Emmanuel FARHI <<a href="mailto:farhi@ill.fr">farhi@ill.fr</a>> ha scritto:</pre>
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Hello Stefano, The simplest solution to run McStas with MPI under Windows is to install OpenMPI in addition to the C compiler (gcc) that is shipped with the McStas installer. Get it at e.g. <<a href="https://www.open-mpi.org/software/ompi/v1.6/downloads/OpenMPI_v1.6-1_win64.exe">https://www.open-mpi.org/software/ompi/v1.6/downloads/OpenMPI_v1.6-1_win64.exe</a>>[1]. Then McStas should detect it when starting. Check the /Preferences/Configuration/ dialogue from the McStas main interface (File menu), that expects 'mpicc' and 'mpirun' to be available in the system PATH. Of course, an other solution is to switch to e.g. a Linux system. Tell me if that worked for you. Ciao, Emmanuel. On 05/17/2017 05:21 PM, <a href="mailto:stefano.bellissima@fi.isc.cnr.it">stefano.bellissima@fi.isc.cnr.it</a>wrote:
<blockquote type="cite" style="padding-left:5px; border-left:#1010ff 2px solid; margin-left:5px">Dear Emmanuel, I'm Stefano Bellissima. Probably Nando already told you that I'm working with McStas for the VESPA project here at the Cnr in Florence. Actually I'm not alone, because also Leonardo del Rosso (an ex PhD student of Lorenzo Ulivi) work with me. I'm sorry to bother you, but I have a (very simple) question to ask you about McStas. We would like to perform multi-core simulations in our Desktop PC which has Windows 7 operating system. This machine has 8 cores. When I perform a simulation run, only one core works, while I would like to have more than one core working. I know that this is possible with McStas, but actually I don't know how. Could you help us with that? thanks best regards Stefano Bellissima and Leonardo del Rosso</blockquote>
-- Emmanuel FARHI,<a href="http://www.ill.eu/computing/people/emmanuel-farhi[2]">www.ill.eu/computing/people/emmanuel-farhi[2]</a> \|/ ____ \|/ CS-Group ILL4/221, Institut Laue-Langevin (ILL) Grenoble ~@-/ oO \-@~ 71 av des Martyrs,CS 20156,38042 Grenoble Cedex 9,France /_( \__/ )_\ Work :Tel (33/0) 4 76 20 71 35. Fax (33/0) 4 76 48 39 06 \__U_/ Link: ----- [1] <a href="https://www.open-mpi.org/software/ompi/v1.6/downloads/OpenMPI_v1.6-1_win64.exe">https://www.open-mpi.org/software/ompi/v1.6/downloads/OpenMPI_v1.6-1_win64.exe</a> [2] <a href="http://www.ill.eu/computing/people/emmanuel-farhi">http://www.ill.eu/computing/people/emmanuel-farhi</a></blockquote>
</blockquote>
<p> </p>
<div>
<pre>-- <br />FARHI Emmanuel <farhi@ill.fr>
Groupe DS/CS, ILL4/156, Tel (33) 4 76 20 71 35
ILL, Grenoble</pre>
</div>
</body></html>