Comments (11)
@oliveroxtoby did you have any thoughts about how you might want this implemented ... in a GUI panel, or something above? I'll have to see if i can remember how the GUI templating works :)
@icojb25 thanks for looking at this. I'd just add a property to the analysis object for the hostfile to be specified. If not blank, it should add this option (in both parallel meshing and solving). Wouldn't want to clutter the GUI task panel pages with it as it will be a seldom used power user option.
from cfdof.
you are writing this manually for your own cluster.
You are right, I'm writing it manually.
from cfdof.
Great, thanks for the confirmation. @oliveroxtoby Lmk what you think of changing the location ... I followed the original suggestion. :)
I'd prefer it to remain under tha anlysis object as it should apply to both the solver and the mesher, when running snappyHexMesh or cfMesh in MPI parallel mode.
from cfdof.
I can take a look at this, potentially over the weeked. @einhander @oliveroxtoby can you give a bit more info as to what is wanted, maybe a couple screenshot or illustration if you have time? It should be too much effort if i understand the basic requirement correctly?
from cfdof.
@icojb25 here the photo-montage of that I mean:
The corresponding key for mpiexec:
mpiexec --hostfile mpi_hostfile -np $nproc "$exe" -parallel "$@" 1> >(tee -a log."$sol") 2> >(tee -a log."$sol" >&2)
The --hostfile
key and mpi_hostfile
file name should be used togather in case of clustered setup. And mpirun
should be used without them in case of a local parallel run.
from cfdof.
hi @einhander ... how is mpi_hostfile
getting populated? Are there any other changes that are required apart from changing the execute line above?
@oliveroxtoby did you have any thoughts about how you might want this implemented ... in a GUI panel, or something above? I'll have to see if i can remember how the GUI templating works :)
from cfdof.
Hi @oliveroxtoby @einhander take a look at the above. I've set it up for Linux only at this stage, if its fine, i will update Allrun.ps1 and Allrun.bat as well ...
from cfdof.
how is mpi_hostfile getting populated?
It's a plane text file with hostnames or ip's of cluster node, optionally with number of cpu
take a look at the above
Thanks I'll try it ASAP.
from cfdof.
@icojb25 It works fine on my Linux box with both Use Hostfile=true and false.
On second thought, I think the Use Hostfile
and Hostfile Name
settings should be moved to CFdSolver's Solver section.
The default value for Hostfile Name
should be ../mpi_hostfile
, in which case the file won't be overwritten, then the case will be recreated.
from cfdof.
how is mpi_hostfile getting populated?
It's a plane text file with hostnames or ip's of cluster node, optionally with number of cpu
Yeah, I'm aware of what it is, my question was how was / is it being populated / generated ... since this normally comes from the job scheduler or perhaps you are writing this manually for your own cluster. I guess the question was whether we assume this would be existing - which I assume we will.
@icojb25 It works fine on my Linux box with both Use Hostfile=true and false. On second thought, I think the
Use Hostfile
andHostfile Name
settings should be moved to CFdSolver's Solver section. The default value forHostfile Name
should be../mpi_hostfile
, in which case the file won't be overwritten, then the case will be recreated.
Great, thanks for the confirmation. @oliveroxtoby Lmk what you think of changing the location ... I followed the original suggestion. :)
from cfdof.
I'd prefer it to remain under tha anlysis object as it should apply to both the solver and the mesher, when running snappyHexMesh or cfMesh in MPI parallel mode.
Got it, thanks @oliveroxtoby and for the confirmation @einhander . I will push an update to the filename ../mpi_hostfile
and then i guess we can merge it, since it seems to work. cheers 👍
from cfdof.
Related Issues (20)
- Feature request: Solver for heat transfer HOT 3
- Performance issues with complex meshes HOT 1
- QoL Improvement: Make CfdAnalysis' "Output Directory" dynamic based on the Project Name, instead of "/tmp/case" as default HOT 13
- Bug reporting: No module named 'certifi' HOT 3
- Install Win10 CfdOF 1.24.8 OpenFoam v2212 HOT 2
- CfdOF not working with openfoam11 HOT 1
- Bug reporting HOT 4
- "Sticky" reportingfunction x/y axis scales HOT 2
- Add-on install not working HOT 4
- Eulerian multiphase HOT 9
- Cfdof/FreeCAD 0.21.2 Generates Incorrect Periodic B.C.'s HOT 4
- Support Material Update HOT 2
- Allrun script points to incorrect MESHDIR HOT 2
- Panel heading titles
- Fluid Properties - Compressible Checkbox HOT 1
- SnappyHexMesh Boundry Layer Inflation Expansion Ratio HOT 1
- Standard error output should not be used when detecting paraview version
- Behaviour of Mesh Button / Menu on second click HOT 1
- Errors with Running the Solver HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cfdof.