GithubHelp home page GithubHelp logo

Account vs. project about psij-python HOT 2 CLOSED

hategan avatar hategan commented on August 11, 2024
Account vs. project

from psij-python.

Comments (2)

hategan avatar hategan commented on August 11, 2024

One note, when setting -P on improv, qsub fails with "The project cannot be set by qsub". The PBS documentation (https://2021.help.altair.com/2021.1/PBSProfessional/PBSReferenceGuide2021.1.pdf) is not entirely clear (to me at least) on which is which and what the purpose of -P is, but it does mildly suggest that -A is what should be used for accounting purposes.

from psij-python.

andre-merzky avatar andre-merzky commented on August 11, 2024

Follow-up from the call: I was a bit off with my pbs statement: SAGA did this:

        if 'PBSPro_1' in pbs_version:
            # On PBS Pro we set both -P(roject) and -A(accounting),
            # as we don't know what the admins decided, and just
            # pray that this doesn't create problems.
            pbs_params += "#PBS -P %s \n" % str(jd.project)
            pbs_params += "#PBS -A %s \n" % str(jd.project)
        else:
            # Torque
            pbs_params += "#PBS -A %s \n" % str(jd.project)

Apparently this would not have worked on improv 😛

The parsing of project was something we had on slurm where we used it to specify a 'reservation':

        if project and ':' in project:
            account, reservation = project.split(':', 1)
        else:
            account, reservation = project, None
[...]

        if account     : script += '#SBATCH --account "%s"\n'     % account
        if reservation : script += '#SBATCH --reservation "%s"\n' % reservation

Either way though: what you propose (rename to 'account' ) seems reasonable - this is used for accounting after all. Being able to set 'project' with something like jobspec.account = 'my_account:my_project' for machines where this is needed sounds still reasonable to me. But if one machine only needs 'project', then that would end up as jobspec.account = ':my_project' which is ok if it happens rarely, but not so ok if that happens very frequently I guess.

from psij-python.

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.