Running Foam on multiple nodes (small cluster)
Hello Foamers,
I need to run OpenFOAM on two PCs. So: 1. I work on one (Master) and have a password SSH access to the other (slave). 2. I have installed version 2.1.0 from OpenCFD on both. 3. I have changed the ./bashrc of the slave to have OpenFOAM sourced before exiting the script due to non-interactive session. 4. I have the damBreak case divided into 12 sub-domains using scotch algorithm of decomposePar on both (the same path) 5. The case runs serially and in-parallel on both PCs individually. 6. I have a machines file: Code:
localhost Code:
foamJob -p interFoam Code:
$ foamJob -p -s interFoam Best regards Hisham El Safti |
Greetings Hisham,
Indeed there seems to be some strange detail that is escaping here... OK, let's try to debug this in parts:
Best regards, Bruno |
Hello Bruno
Thanks for your reply. I have the same user name with "sudo" capabilities on both machines. I have specified the cpu count as proposed. I still get the same error. I think there is something to do with version incompatibilities. However, the error does not say which bit has the ) instead of } ... Also how can I view the so called "help messages"? Thanks Hisham Edit: I have open mpi 1.4.3 on both machines |
Hi Hisham,
OK, try running this command: Code:
/usr/bin/mpirun -np 12 -hostfile machines /opt/openfoam210/bin/foamExec interFoam -parallel As for the help messages... according to the error message, it says to use the MCA system to set "orte_base_help_aggregate" to 0... Should be something like this: Code:
/usr/bin/mpirun -np 12 -mca orte_base_help_aggregate 0 -hostfile machines /opt/openfoam210/bin/foamExec interFoam -parallel In the machines file, define things like this: Code:
localhost slots=8 edit: Quote:
Best regards, Bruno |
Thanks a lot Bruno. I had the chance to use a third PC today and the problem was with one of the PCs. I have changed the machines file as you suggested though.
Thanks again :) |
All times are GMT -4. The time now is 06:39. |