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

Add account option to slurm provider #68

Open
reidmcy opened this issue Jul 31, 2018 · 3 comments
Open

Add account option to slurm provider #68

reidmcy opened this issue Jul 31, 2018 · 3 comments

Comments

@reidmcy
Copy link

reidmcy commented Jul 31, 2018

You cannot specify the account libsumit will use on slurm right now. This is controlled by the -account option in the SBATCH script. Something like: #SBATCH --account=${account} and an option in the provider are all that need to be added (I hope)

@reidmcy
Copy link
Author

reidmcy commented Jul 31, 2018

@yadudoc I hope this helps you

@benclifford
Copy link
Collaborator

I've added SBATCH parameters to libsubmit using the overrides parameter to SlurmProvider.

A config fragment for parsl 0.6 which uses this is below, adding the --qos and -C parameters.

I think this should also work for --account, without any modification to libsubmit.

config = Config(
    executors=[
        IPyParallelExecutor(
            label='cori_ipp_benc',
            provider=SlurmProvider(
                'debug',
                channel=LocalChannel(),
                nodes_per_block=1,
                tasks_per_node=1,
                init_blocks=1,
                max_blocks=3,
                overrides="#SBATCH --qos=debug\n#SBATCH -C knl",
                cmd_timeout=120
            ),
# ...

@reidmcy
Copy link
Author

reidmcy commented Aug 1, 2018

Thanks that should work well

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