Code Monkey home page Code Monkey logo

Comments (4)

lightsighter avatar lightsighter commented on July 17, 2024

So just to be clear, we want it to be a failure for the mapper to specify any target processor that is not an actual processor? In this case, the mapper picked NO_PROC which is clearly wrong. However, I can also envision a case where the mapper picks a processor that used to exist but no longer does (due to a hard fault or something), and I'm not sure we want that to be a hard stop if the mapper makes that mistake. To summarize: we can either make it a hard failure, or we can figure out a way to hand the problem back to the mapper.

from legion.

streichler avatar streichler commented on July 17, 2024

The case for which I would like a more helpful (and fatal) error message is when a task is launched and the only available variants for that are for processor kinds that do not exist anywhere in the machine. This is a case where throwing it back to the mapper to decide again can't result in any other answer. That said, it seems like this information may only be available to the mapper and therefore should be an error check in the default mapper rather than in the HLR.

In cases where the mapper's chosen processor has vanished, or when the mapper knows how to create new variants of the task in question, I agree throwing it back to the mapper is preferable to a fatal error.

from legion.

lightsighter avatar lightsighter commented on July 17, 2024

Alright, adding this to the list of things to do when updating the mapping API.

from legion.

lightsighter avatar lightsighter commented on July 17, 2024

This has definitely been fixed by the new mapper API.

from legion.

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.