Comments (2)
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.
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)
- Suggestion: Print out path to submit script if there is a submission error with batch jobs HOT 1
- Documentation: Additional details needed for `custom_attributes` HOT 4
- Retrieving the status of a submitted batch job returns `NEW` unless the user waits a few seconds HOT 14
- Properly implement wait()
- polling for jobs removed from the queue does not properly mark them as completed HOT 6
- Documentation: Example for how to load modules HOT 2
- Implement https://github.com/ExaWorks/job-api-spec/pull/168 HOT 1
- Implement https://github.com/ExaWorks/job-api-spec/pull/172
- Incorrect job duration formatting for SLURM HOT 2
- Proposal: Allow JSON-serializable format for `duration` in `JobAttributes` HOT 7
- `main` branch breaks `custom_attributes` (at least for Slurm) HOT 3
- Some words are cut off on PSI/J Python Webpage HOT 1
- Next steps for a new release? HOT 4
- The `environment` kwarg in `JobSpec` gets the wrong number of quotation marks if there are spaces HOT 4
- Not able to get ResourceSpecV1 working with PBS HOT 4
- PBS walltime hour is being formatted as a float causing job submission failure
- Dependency on typeguard 2.12 conflicts with other packages. HOT 3
- Leftover of `distutils.` in 0.9.5 HOT 1
- Dependency `filelock` move to requirements-tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psij-python.