OpenFOAM MPI doesn't work on LAN due to "missing" executables
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 |
OpenFOAM shows up in task manager but doesn't seem to compute solution
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! |
Quick answer: Quoting from a blog post of mine: Notes about running OpenFOAM in parallel
Quote:
|
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 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:
/*---------------------------------------------------------------------------*\ I'm totally stuck:(. Thanks in advance for any further suggestions! |
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. |
Quick answer: Many thanks for posting your solution!
This reminded me of the following solution for disabling certain network interfaces: Quote:
|
Thanks for your hint wyldckat. Actually I have tried this approach without success. But maybe because of a typo or such XD...
|
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 |
Quick answers:
Quote:
Code:
How To Set Up SSH Keys Quote:
Code:
ping 192.1.2.3 |
All times are GMT -4. The time now is 23:10. |