Giter Site home page Giter Site logo

Comments (6)

mamoll avatar mamoll commented on May 24, 2024

Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).


This is useful to include in MachineSpecs.h to get the number of cores:
http://stackoverflow.com/questions/150355/programmatically-find-the-number-of-cores-on-a-machine

from ompl.

mamoll avatar mamoll commented on May 24, 2024

Original comment by Ioan Sucan (Bitbucket: isucan, GitHub: isucan).


How about just using boost::thread::hardware_concurrency()?

from ompl.

mamoll avatar mamoll commented on May 24, 2024

Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).


Yes, that is the right thing to do. It's one of the suggestions in the stackoverflow article.

Is it possible to monitor memory consumption per thread? The config file allows you to specify a memory limit per run, but this seems hard to check per thread. We should also check that the number of threads <= free memory / memory limit per run.

from ompl.

mamoll avatar mamoll commented on May 24, 2024

Original comment by Ioan Sucan (Bitbucket: isucan, GitHub: isucan).


Right now we are measuring memory per process. I am not sure how to measure memory per thread. In general, I think it is easier to reason about total memory consumption than memory per thread because there are often threads that don't do much, just wait around for an event (e.g., sleep or condition wait). Do you have a specific use case in mind?

from ompl.

mamoll avatar mamoll commented on May 24, 2024

Original comment by Ioan Sucan (Bitbucket: isucan, GitHub: isucan).


Seems this issue has been around for a while. I am thinking that since it is pretty easy to parallelize outside OMPL, i.e., run the benchmarking process with different inputs in parallel, this feature is not something that would add much utility, but would add complexity and perhaps inaccuracies in the produced results. I propose we close this as wontfix.

from ompl.

mamoll avatar mamoll commented on May 24, 2024

Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).


Agreed. For example, with the benchmark program in omplapp it's easy enough to launch separate processes in parallel with different config files (one per planner, say).

from ompl.

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.