|
[Sponsors] |
OpenFOAM MPI doesn't work on LAN due to "missing" executables |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 4, 2016, 12:31 |
OpenFOAM MPI doesn't work on LAN due to "missing" executables
|
#1 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Hello everybody,
I tried to set up a small OpenFOAM cluster via LAN. MPI works just fine when I run it locally, say on 6 cores. But when I try to run it on LAN it always fails independently from the machine I want to use for parallelization (I have three machines connected to a switch). The error message always says: mpirun was unable to launch the specified application as it could not find an executable:
Executable: simpleFoam Node: 192.168.1.2 while attempting to start process rank 6. But OF is properly installed. I can ssh into all machines without any problems. Can someone give me a hint or suggestion? Thanks in advance! Regards Last edited by NablaDyn; February 5, 2016 at 04:07. |
|
February 6, 2016, 14:39 |
OpenFOAM shows up in task manager but doesn't seem to compute solution
|
#2 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
I managed to export the environment variables, so the run seems to start now without error messages.
But now I recognized that although the processes show up in the task managers on all the used nodes with about 99 % CPU usage, the solution don't seem to be computed. The log file only contains the OpenFOAM header sequence but no convergence history. Furthermore the processes seem to run infinitely. Hope someone can help me... Thanks in advance! |
|
February 6, 2016, 18:26 |
|
#3 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: Quoting from a blog post of mine: Notes about running OpenFOAM in parallel
Quote:
|
||
February 8, 2016, 05:13 |
|
#4 | |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Quote:
I have three nodes on a LAN with 6, 2 and 2 cores. I want to initialize a simplefoam run on 4, 2 an 2 cores at a time using Open MPI 1.6.5. To do so I decomposed the domain using Code:
decomposePar The required machine file named "machine" is located within the "system" directory of the OF case and contains the following: Code:
ihgg-ubuntu cpu=4 cluster_login@192.168.1.2 cpu=2 cfd_cluster@192.168.1.3 cpu=2 The mpirun command only "successfully" initializes simplefoam if i export the OF environment variables: Code:
mpirun -x LD_LIBRARY_PATH -x PATH -x WM_PROJECT_DIR -x WM_PROJECT_INST_DIR -x WM_OPTIONS -x FOAM_LIBBIN -x FOAM_APPBIN -x MPI_BUFFER_SIZE -machinefile system/machine -np 8 -output-filename openfoam_log 'simpleFoam' -parallel & Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 3.0.1 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 3.0.1-119cac7e8750 Exec : simpleFoam -parallel Date : Feb 08 2016 Time : 10:08:50 Host : "ihgg-ubuntu" PID : 13154 [ihgg-ubuntu][[8881,1],0][btl_tcp_endpoint.c:655:mca_btl_tcp_endpoint_complete_connect] connect() to 10.3.140.137 failed: No route to host (113) I'm totally stuck. Thanks in advance for any further suggestions! |
||
March 15, 2016, 06:15 |
|
#5 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
I put my problem aside for quite awhile. Now that I got to review the whole issue I solved my problem. The unknown IP ("no route to host") resulted from an active WLAN connection on the remote node (client). OpenMPI tried to use this connection instead of the local ethernet IPs assigned by the
Code:
machinefile Code:
/etc/hosts
I consider this topic as CLOSED. Last edited by NablaDyn; March 21, 2016 at 07:24. |
|
March 19, 2016, 16:43 |
|
#6 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: Many thanks for posting your solution!
This reminded me of the following solution for disabling certain network interfaces: Quote:
|
||
March 21, 2016, 07:26 |
|
#7 |
Senior Member
Join Date: Oct 2015
Location: Germany
Posts: 100
Rep Power: 11 |
Thanks for your hint wyldckat. Actually I have tried this approach without success. But maybe because of a typo or such XD...
|
|
April 21, 2018, 10:53 |
|
#8 |
Member
Rahul Vadrabade
Join Date: Apr 2018
Posts: 46
Rep Power: 8 |
How to set up password-less ssh on ubuntu 16.04 lts ?
Also i have different if addresses and not similar to 192.x.x.x. Then how can i use other system cpu? any suggestions |
|
April 22, 2018, 14:28 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Search online for the following phrase: Code:
How To Set Up SSH Keys Quote:
Code:
ping 192.1.2.3
__________________
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
Error using LaunderGibsonRSTM on SGI ALTIX 4700 | jaswi | OpenFOAM | 2 | April 29, 2008 11:54 |
Is Testsuite on the way or not | lakeat | OpenFOAM Installation | 6 | April 28, 2008 12:12 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 15:25 |
OpenFOAM Debian packaging current status problems and TODOs | oseen | OpenFOAM Installation | 9 | August 26, 2007 14:50 |