GithubHelp home page GithubHelp logo

Comments (11)

oliveroxtoby avatar oliveroxtoby commented on September 22, 2024 1

@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.

einhander avatar einhander commented on September 22, 2024 1

@icojb25

you are writing this manually for your own cluster.

You are right, I'm writing it manually.

from cfdof.

oliveroxtoby avatar oliveroxtoby commented on September 22, 2024 1

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.

icojb25 avatar icojb25 commented on September 22, 2024

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.

einhander avatar einhander commented on September 22, 2024

@icojb25 here the photo-montage of that I mean:
1

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.

icojb25 avatar icojb25 commented on September 22, 2024

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.

icojb25 avatar icojb25 commented on September 22, 2024

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.

einhander avatar einhander commented on September 22, 2024

@icojb25

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.

einhander avatar einhander commented on September 22, 2024

@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.

icojb25 avatar icojb25 commented on September 22, 2024

@icojb25

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 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.

Great, thanks for the confirmation. @oliveroxtoby Lmk what you think of changing the location ... I followed the original suggestion. :)

from cfdof.

icojb25 avatar icojb25 commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.