Hi everyone,
Is there anyone have successfully installed mpi executable of Liggghts-Public on Windows?
I tried several ways but none of them worked:
1. Follow Liggghts documentation: (https://www.cfdem.com/media/DEM/docu/Section_start.html)
I don't need VTK option so I set USE_VTK = "OFF" in the file MAKE/Makefile.user.
2. Follow the steps in the textfile: install_liggghts_windows.txt (https://github.com/CFDEMproject/LIGGGHTS- PUBLIC/blob/master/doc/install_liggghts_windows.txt)
3. Using Cmake
(https://github.com/CFDEMproject/LIGGGHTS-PUBLIC/wiki/Installing-LIGGGHTS-(Cmake-also-on-Windows))
4. Search in the Liggghts forum: for instance: https://www.cfdem.com/forums/installing-liggghts-public-36-windows-7-cma...
Is there anyone have successfully installed mpi executable of Liggghts-Public on Windows, I would be happy to receive any ideas or propositions.
(I have two computers: 64 bit Windows 7 and 64 bit Windows 10, with many of processors). For now I run simulations with serial version, but it is too bad if I cannot use those processors.
Many thanks!
richti83 | Mon, 09/17/2018 - 08:55
try this approach
https://www.cfdem.com/forums/alternative-cmake-build-environment
lucas-allier | Tue, 09/18/2018 - 10:31
Many thanks for your helps
Hi richti83, many thanks for your helps. It works. I have now an executable file of liggghts 3.8.0.
Then I run the chute_wear example by typing the following command (I would like to use 4 processors to speed up the simulation):
mpiexec -np 4 liggghts_380 -in in.chute_wear
But, in the log file, there is:
.....
Created orthogonal box = (-0.5 -0.2 -0.4) to (0.1 0.2 0.15)
1 by 1 by 1 MPI processor grid
.....
.....
Loop time of 0.0234608 on 1 procs for 200 steps with ... atoms, finish time Tue Sep 18 09:18:24 2018
.....
What does this mean? There is only one processor used to do the simulation? Is there an error in the command line?
Thanks!
richti83 | Tue, 09/18/2018 - 10:51
Cool that it works !
Cool that it works !
you need to start
mpiexec -np 4 liggghts -in in.chute_wear
but first add liggghts.exe folder and mpich2/bin/ folder to system environment variable PATH
best
christian.
lucas-allier | Tue, 09/18/2018 - 14:09
It works now, the parallel
It works now, the parallel simulation:
....
Created orthogonal box = (-0.5 -0.2 -0.4) to (0.1 0.2 0.15)
2 by 1 by 2 MPI processor grid
....
....
Loop time of 1.45225 on 4 procs for 1 steps with ... atoms, finish time Tue Sep 18 14:04:35 2018
....
Many thanks for your helps.