Giter VIP home page Giter VIP logo

Comments (2)

JohannesBuchner avatar JohannesBuchner commented on May 20, 2024

What are you trying to achieve? Can you describe your underlying problem in more detail?

from ultranest.

JohannesBuchner avatar JohannesBuchner commented on May 20, 2024

If you want to analyse independent data sets, I usually pass the data file name as an argument to the script (receive in python with sys.argv[1]), and write to a logdir named after the data file (logdir=sys.argv[1] + '_out_fitmodelA').

Running parallel fits is then easy with ls data*|xargs --max-args=1 --max-procs=4 python3 myscript.py. It also makes it possible to write make scripts to resume computations (automatic variables / stems and parallelisation with -j4 are powerful). doit is a python alternative. Alternatively, you can also create new processes from within python, without using MPI.

resume='subfolder' creates a new folder for each run started. Runs share CPU power to distribute the load of finding a new independent point, but the run is coordinated by the processor with MPI rank 0. In other words, the run is not independent in the various CPUs.

from ultranest.

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.