-
Notifications
You must be signed in to change notification settings - Fork 10
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
Allowing SGE schedulers to use the plugin #41
Conversation
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.
Thanks @JPchico. I left two minor comments. The rest looks fine to me.
@@ -331,7 +337,9 @@ def get_inputs_common(calculation, code, remote, structure, options, label, desc | |||
|
|||
if code: | |||
inputs.code = code | |||
|
|||
_sched = load_computer(code.computer.label).scheduler_type |
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.
Why is load_computer
needed? Does code.computer
not give you the computer already?
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, you are right, I copied this from some other function where I wanted to load the computer for some tests. I have changed it as you recommed.
examples/kkr_submit_scf.py
Outdated
# Total number of mpi processes | ||
'tot_num_mpiprocs': 16, | ||
# Name of the parallel environment | ||
'parallel_env': 'mpi', |
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 you can put a comment here to tell that this is for a SGE scheduler?
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.
Sure thing, added now a check for whether the code is in an SGE or SLURM/PBS machine. And added some reasonable options
…E, slurm and pbspro machines.
I have added the changes that you requested @PhilippRue , plus some smaller formatting issues. |
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.
Thanks @JPchico. Everything looks good for me
@JPchico I will merge this in tomorrow if there is nothing to add |
@PhilippRue I think this is fine, I have not seen any other issue cropping up in my tests. |
The plugin could not work as the
get_inputs_common
added submission options which are incompatible for the SGE scheduler. Now it checks which scheduler is provided and sets options which correspond to a serial simulation. Fixes #40