Skip to content

Multiple shareholder groups

If you belong to multiple shareholder groups, then you can chose to which shareholder groups the job should be accounted.

Check group membership

The command my_share_info lists your shareholder groups:

[sfux@eu-login-01 ~]my_share_info
You are a member of the es_example shareholder group on Euler.

All groups will be listed in case you belong to multiple groups:

[sfux@eu-login-01 ~]my_share_info
You are a member of the following shareholder groups on Euler:
es_example
es_euler

Select a group when submitting a job

If you are member of multiple shareholder groups, then you can tell the batch system that a given job should be scheduled and accounted to the given group by passing the sbatch option -A share_name:

[sfux@eu-login-01 ~]sbatch -A es_eulercommand
Submitted batch job 1009718

Select a default group

If you are member of multiple shareholder groups, then you can select a group to which jobs should be scheduled and accounted by default. For Slurm, you can do this using the following command (replace es_example with your preferred default share):

[sfux@eu-login-01 ~]echo account=es_example>> $HOME/.slurm/defaults

Since this change will only take effect in new shells, you will need to log out and log in again to activate this setting!

In case the directory $HOME/.slurm does not yet exist, then you would need to create it first

[sfux@eu-login-43 ~]$ mkdir -p $HOME/.slurm

You can override this setting per a given job as described in the previous section.