Skip to content
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

Set the correct mpirun_command for the marvel.aiida role #178

Closed

Conversation

sphuber
Copy link

@sphuber sphuber commented Apr 13, 2021

Fixes #177

The role is configured to setup the localhost using the SLURM scheduler
in which case the mpirun_command should be set to srun.

Note this is blocked by an update of the marvel.aiida ansible role: marvel-nccr/ansible-role-aiida#69

The role is configured to setup the localhost using the SLURM scheduler
in which case the `mpirun_command` should be set to `srun`.
@sphuber
Copy link
Author

sphuber commented Apr 13, 2021

pinging @chrisjsewell

@chrisjsewell
Copy link
Member

have you tested this works with the common-workflows?

@sphuber
Copy link
Author

sphuber commented Apr 13, 2021

Not yet, will try this now. I will do it in the docker container though, that ok? Should not make a difference with the OVA should it?

@chrisjsewell
Copy link
Member

Theoretically no 😬

@sphuber
Copy link
Author

sphuber commented Apr 13, 2021

Ok, I just tested it by hacking the mpirun_command attribute in the database and the calculation runs, except there seems to be a problem with the parallelization. Two separate parallel instances are being run. So for now, this seems to be a bad change, but it should be good. I will look further into it.

@chrisjsewell
Copy link
Member

Two separate parallel instances are being run. So for now, this seems to be a bad change, but it should be good. I will look further into it.

Yeh that was my worry, I can never seem to get srun to work properly

@sphuber
Copy link
Author

sphuber commented Apr 13, 2021

Just for reference. This was suggested in this issue: aiidateam/aiida-common-workflows#180

@chrisjsewell
Copy link
Member

yep it certainly makes sense, but obviously I am a bit hesistant to introduce such a wide-reaching change without testing.

As you mention there, you will have a look into the SLURM code to see what it says, which will be great cheers 👍

@sphuber
Copy link
Author

sphuber commented Apr 13, 2021

No I agree, let's put this on hold for now.

@sphuber sphuber closed this Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Set the correct mpirun_command to go with the localhost computer for the AiiDA install
2 participants