GithubHelp home page GithubHelp logo

Implement Timeouts about mlonmcu HOT 3 OPEN

tum-ei-eda avatar tum-ei-eda commented on September 24, 2024
Implement Timeouts

from mlonmcu.

Comments (3)

PhilippvK avatar PhilippvK commented on September 24, 2024

@rafzi I think the exec_timeout you implemented in the old mlonmcu would be suitable for this. However I would like to offer you to add it to the new codebase by yourself whenever you start working with it. This does not need to be very soon.

from mlonmcu.

rafzi avatar rafzi commented on September 24, 2024

yes, that function was intended for exactly that purpose.

a small annoyance with it is that you have to account for broken object identity between objects: https://gitlab.lrz.de/de-tum-ei-eda-esl/ml_on_mcu/-/blob/master/tvm/plan_memory.py#L8

an option was multiprocessing.dummy, which uses threading instread of processes, but i decided against it, because there was some compatibility issue between platforms.

from mlonmcu.

PhilippvK avatar PhilippvK commented on September 24, 2024

I recently implemented it on my dev branch. It works most of the time, but in some weird special cases, it causes random freezes. If we decide to implement this for all components, it should be marked experimental and should be turned off by default.

from mlonmcu.

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.