Parallel solver settings on Windows machine

Numerical methods and mathematical models of Elmer
Post Reply
TFLOPs
Posts: 14
Joined: 24 Mar 2017, 00:02
Antispam: Yes

Parallel solver settings on Windows machine

Post by TFLOPs » 25 Mar 2017, 15:34

I'm on a windows 10 machine, I changed the executable path to

Code: Select all

C:/Program Files/Microsoft MPI/Bin/mpiexec.exe
and the arguments to

Code: Select all

-n %n -genvlist PATH,ELMER_HOME ElmerSolver_mpi.exe
(since the default argument -localonly is not supported)

but I get this error:

Code: Select all

Aborting: failed to launch 'ElmerSolver_mpi.exe' on DESKTOP-***********
Error (2) unable to find the file
what can I do to fix the problem?

TFLOPs
Posts: 14
Joined: 24 Mar 2017, 00:02
Antispam: Yes

Re: Parallel solver settings on Windows machine

Post by TFLOPs » 27 Mar 2017, 23:04

Just for clarity, the file is not missing, is in that path.
The environment variables are OK, all looks good
May be the underscore on the executable name or the dot in the "Elmer 8.2-Release" directory causing problems when reading the path?

TFLOPs
Posts: 14
Joined: 24 Mar 2017, 00:02
Antispam: Yes

Re: Parallel solver settings on Windows machine

Post by TFLOPs » 28 Mar 2017, 22:44

Tried today and all working, dunno why it didn't before but I'm happy
Solutions are now fast but I get a runtime error after the ALL DONE message:
ComputeChange: NS (ITER=3) (NRM,RELC): ( 0.76307386 0.20494964E-05 ) :: navier-stokes
FlowSolve: iter: 3 Assembly: (s) 0.02 0.05
FlowSolve: iter: 3 Solve: (s) 0.05 0.11
FlowSolve: Result Norm : 0.76307386403126332
FlowSolve: Relative Change : 2.0494964487191685E-006
ElmerSolver: *** Elmer Solver: ALL DONE ***

ElmerSolver: The end
SOLVER TOTAL TIME(CPU,REAL): 17.85 17.85

ELMER SOLVER FINISHED AT:


runtime error R6031
- Attempt to initialize the CRT more than once.
This indicates a bug in your application.

runtime error

R6031
- Attempt to initialize the CRT more than once.
This indicates a bug in your application.
runtime error R6031
- Attempt to initialize the CRT more than once.
This indicates a bug in your application.
Wat is this? I have 4K LCD monitor LOL

mark smith
Posts: 208
Joined: 26 Aug 2009, 18:20
Location: Peterborough, England

Re: Parallel solver settings on Windows machine

Post by mark smith » 29 Mar 2017, 14:36

Hi TFLOPs,
You are not the only one to get the error
"runtime error R6031
- Attempt to initialize the CRT more than once.
This indicates a bug in your application."

I have reported this before but have yet to find a solution, I can confirm that it doesn't always happen with a parallel solve but cannot find any reason why sometimes it does and sometimes it doesn't (changing the partitioning might prevent it) ;-(
I have yet to get it on a serial solve using Elmersolver, so I wonder if it is a problem with mpiexec?
This is a real inconvenience for me as it make it impossible to run a series of automated runs in parallel as the script will just hang, I have never had this when running under ubuntu.

At least you know you are not alone in seeing this problem, not that that is much consolation.
Regards
Mark

TFLOPs
Posts: 14
Joined: 24 Mar 2017, 00:02
Antispam: Yes

Re: Parallel solver settings on Windows machine

Post by TFLOPs » 30 Mar 2017, 22:51

Hi mark, should I write another topic about this runtime error R6031 on the Bug Report forum to give it more visibility?
At first I was thinking nothing to care, solution does complete, but I probably will need to run automated series too in the future

mark smith
Posts: 208
Joined: 26 Aug 2009, 18:20
Location: Peterborough, England

Re: Parallel solver settings on Windows machine

Post by mark smith » 30 Mar 2017, 23:16

Hi TFLOPs,
Reporting it as a bug would not do any harm, my guess is most people use Elmer on Linux so it probably won't be a high priority for the Elmer team?
Regards
Mark

Dmitrij
Posts: 1
Joined: 16 Jul 2019, 01:41
Antispam: Yes

Re: Parallel solver settings on Windows machine

Post by Dmitrij » 14 Oct 2019, 06:57

Hi there,
I also was encountered the problem running parallel solver and received the error

Code: Select all

Aborting: failed to launch 'ElmerSolver_mpi.exe' on DESKTOP-***********
Error (2) unable to find the file
It seems that the problem is caused by Windows User Account Control settings and WIN10 just blocks access to the files installed in the "Program files" or "Program files(x86)" folders. I solved the problem just by installing Elmer to "C:\elmerfem-mpi-nightly_Windows-AMD64" folder and pointing environment variables to this folder.



Happy Elmer'ing
Dmitriy.

mzenker
Posts: 1964
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Parallel solver settings on Windows machine

Post by mzenker » 14 Oct 2019, 14:31

That is what I also do. I almost never install non-M$ software into the default programs directory, but into something like C:\myprograms.
Another example: In ElmerGUI, you may need to move solver xml files from ...\edf-extra to ...\edf. You cannot do that as ordinary user if Elmer is installed in C:\Program Files.

Matthias

Post Reply