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

Using scoop with SLURM #54

Closed
anandtrex opened this issue Apr 12, 2017 · 2 comments
Closed

Using scoop with SLURM #54

anandtrex opened this issue Apr 12, 2017 · 2 comments

Comments

@anandtrex
Copy link

Is there any documentation for how to use scoop with SLURM?

One of the main things I'm wondering about is whether to provide a hosts file to scoop or not when running it from SLURM. Does it automatically figure out the hosts and run simulations on them otherwise?

#!/bin/bash
#SBATCH --mail-user=abc@xyz.com
#SBATCH --mail-type=ALL
#SBATCH --nodes=7
#SBATCH --ntasks=72
#SBATCH --time=99:00:00
#SBATCH --mem=10G
#SBATCH --output=python_job_slurm.out

# Which one is correct?
python -m scoop --hostfile hosts.txt my-script.py
python -m scoop my-script.py

and I run it with sbatch python.slurm

@joernhees
Copy link
Contributor

i'm currently running it on slurm... it seems the intention is to figure out the hosts itself as in https://github.com/soravux/scoop/blob/master/scoop/utils.py#L204 (so the second variant should be correct).

that said, the parsing fails for me (the code you see above is not the one of the latest release!), so at the moment i'm running manually with python -m scoop --host ... my-script.py, which seems to work

@anandtrex
Copy link
Author

Yeah it seems to work without the hostfile list with the version of scoop on the master branch.

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

No branches or pull requests

2 participants