Good morning Community,
I want to run a simulation with more than one processor, but I don't know how to do it. I have Elmer on a Fedora machine. I appreciate any help.
Regards,
Andrea
PARALLELING COMPUTATION
-
- Posts: 176
- Joined: 22 Mar 2021, 18:39
- Antispam: Yes
- Location: POLYTHECNIC UNIVERSITY OF TURIN
PARALLELING COMPUTATION
POLYTECHNIC UNIVERSITY OF TURIN-DIMEAS
-
- Posts: 2237
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: PARALLELING COMPUTATION
Do you run ElmerSolver for the GUI or a command line in general from a command line
You must first partition mesh to number of processors for example 4
ElmerGrid 2 2 Mymeshname -partdual -metiskway 4
then execute the mpi solver of the machine if it is openmpi then likely
mpirun -np 4 ElmerSolver_mpi
assuming the case.sif file is in the ELMERSOLER_STARTINFO file if not than
mpirun -np 4 ElmerSolver_mpi mycase.sif
If running from ElmerGUI go to run parallel settings and check parallel solver set number of processes, then set the commands in the window.
You must first partition mesh to number of processors for example 4
ElmerGrid 2 2 Mymeshname -partdual -metiskway 4
then execute the mpi solver of the machine if it is openmpi then likely
mpirun -np 4 ElmerSolver_mpi
assuming the case.sif file is in the ELMERSOLER_STARTINFO file if not than
mpirun -np 4 ElmerSolver_mpi mycase.sif
If running from ElmerGUI go to run parallel settings and check parallel solver set number of processes, then set the commands in the window.
-
- Posts: 176
- Joined: 22 Mar 2021, 18:39
- Antispam: Yes
- Location: POLYTHECNIC UNIVERSITY OF TURIN
Re: PARALLELING COMPUTATION
I am in the last case, so do I have to write something in the case.sif?kevinarden wrote: ↑16 Jun 2021, 17:54 Do you run ElmerSolver for the GUI or a command line in general from a command line
You must first partition mesh to number of processors for example 4
ElmerGrid 2 2 Mymeshname -partdual -metiskway 4
then execute the mpi solver of the machine if it is openmpi then likely
mpirun -np 4 ElmerSolver_mpi
assuming the case.sif file is in the ELMERSOLER_STARTINFO file if not than
mpirun -np 4 ElmerSolver_mpi mycase.sif
If running from ElmerGUI go to run parallel settings and check parallel solver set number of processes, then set the commands in the window.
-Andrea
POLYTECHNIC UNIVERSITY OF TURIN-DIMEAS
-
- Site Admin
- Posts: 4812
- Joined: 22 Aug 2009, 11:57
- Antispam: Yes
- Location: Espoo, Finland
- Contact:
Re: PARALLELING COMPUTATION
Hi
Usually sif file stays the same. There may be some features that do not work out of the box. It is good idea to verify that you get the same results in serial and parallel by comparing the results.
How many real cores do you have on your machine?
-Peter
Usually sif file stays the same. There may be some features that do not work out of the box. It is good idea to verify that you get the same results in serial and parallel by comparing the results.
How many real cores do you have on your machine?
-Peter
-
- Posts: 176
- Joined: 22 Mar 2021, 18:39
- Antispam: Yes
- Location: POLYTHECNIC UNIVERSITY OF TURIN
-
- Posts: 2237
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: PARALLELING COMPUTATION
You go to run, parallel setting, check the box on hot select number of processes.
You will likely have to find the name of the mpi exectuable on the system, you can try the default, but it is probably different.
You will likely have to find the name of the mpi exectuable on the system, you can try the default, but it is probably different.
- Attachments
-
- parallel.png
- (87.6 KiB) Not downloaded yet
-
- Posts: 176
- Joined: 22 Mar 2021, 18:39
- Antispam: Yes
- Location: POLYTHECNIC UNIVERSITY OF TURIN
Re: PARALLELING COMPUTATION
I have tried, but it does not work.kevinarden wrote: ↑17 Jun 2021, 12:01 You go to run, parallel setting, check the box on hot select number of processes.
You will likely have to find the name of the mpi exectuable on the system, you can try the default, but it is probably different.
- Attachments
-
- output.txt
- (5.3 KiB) Downloaded 208 times
POLYTECHNIC UNIVERSITY OF TURIN-DIMEAS
-
- Posts: 2237
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: PARALLELING COMPUTATION
Good news is that the mesh partition with ElmerGrid work
Problem is that last line in the output
Unable to start parallel solver
means that you do not have the right mpi executable name in executable field, either you have a different mpi solver installed on the system or there is no mpi solver on the system.
Problem is that last line in the output
Unable to start parallel solver
means that you do not have the right mpi executable name in executable field, either you have a different mpi solver installed on the system or there is no mpi solver on the system.
-
- Posts: 176
- Joined: 22 Mar 2021, 18:39
- Antispam: Yes
- Location: POLYTHECNIC UNIVERSITY OF TURIN
Re: PARALLELING COMPUTATION
How can I check? By the way, could I use this function of Elmer in windows?kevinarden wrote: ↑17 Jun 2021, 12:56 Good news is that the mesh partition with ElmerGrid work
Problem is that last line in the output
Unable to start parallel solver
means that you do not have the right mpi executable name in executable field, either you have a different mpi solver installed on the system or there is no mpi solver on the system.
POLYTECHNIC UNIVERSITY OF TURIN-DIMEAS
-
- Posts: 2237
- Joined: 25 Jan 2019, 01:28
- Antispam: Yes
Re: PARALLELING COMPUTATION
Yes it can be used in windows.
You could try mpiexec instead of mpirun, MPICH uses mpiexec.
You could try mpiexec instead of mpirun, MPICH uses mpiexec.