-
Notifications
You must be signed in to change notification settings - Fork 18
Memory support (Issue #42) #153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@ddtm Some tests are now failing. Also have you actually tested it? |
MarcCote
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few small typos and comments. Thanks for the PR.
| parser.error("Unknown queue, --coresPerNode/--gpusPerNode and --walltime must be set.") | ||
| if args.coresPerCommand < 1: | ||
| parser.error("coresPerNode must be at least 1") | ||
| parser.error("coresPerCommand must be at least 1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx, good catch.
| parser.error("coresPerNode must be at least 1") | ||
| parser.error("coresPerCommand must be at least 1") | ||
| if args.memPerCommand is not None and args.memPerCommand <= 0: | ||
| parser.error("memPerCommand must be positive") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe: 'strictly' positive?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops it is
smartdispatch/job_generator.py
Outdated
|
|
||
| pbs.add_resources(nodes=resource) | ||
|
|
||
| if mem_per_command is not None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This cannot be None anymore, thanks to the if above.
| assert_equal(job_generator.pbs_list[0].modules, self.modules) | ||
|
|
||
| def test_generate_pbs2_mem(self): | ||
| # Should need two PBS file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file -> files
| assert_equal(job_generator.pbs_list[1].commands, self.commands[2:]) | ||
|
|
||
| def test_generate_pbs4_mem(self): | ||
| # Should needs four PBS file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
file -> files
Addresses #42.