Skip to content

SLURM

💡 If the following Troubleshooting does not contain the answer to your question, contact the support: support.cluster.france-bioinformatique.fr


Invalid account or account/partition combination specified#

Complete message:

srun: error: Unable to allocate resources: Invalid account or account/partition combination specified

Explanation#

Your current default SLURM account should be the demo one. You may have seen a red notice at login? You can check that using:

$ sacctmgr list user $USER
      User   Def Acct     Admin
---------- ---------- ---------
   cnorris       demo      None

Solution#

If you don't already have a project, you have to request one from the platform: https://my.cluster.france-bioinformatique.fr/manager2/project

Otherwise, you already have a project/account, you can either:

  • Specify at each job your SLURM account:
srun -A my_account command
#!/bin/bash
#SBATCH -A my_account
command
  • Change your default account
sacctmgr update user $USER set defaultaccount=my_account

☝️ How can I access to a Terminal 📺 in order to run the different commands?

⚠️ status_bar is updated hourly. So it may still display demo as your default account by don't worry, it should have work.


[GPU] How to know the availability of GPU nodes#

We can use sinfo command with "Generic resources (gres)" information.

For example:

sinfo -N -O nodelist,partition:15,Gres:30,GresUsed:50 -p gpu
      NODELIST            PARTITION      GRES                          GRES_USED                                         
      gpu-node-01         gpu            gpu:1g.5gb:14                 gpu:1g.5gb:0(IDX:N/A)                             
      gpu-node-02         gpu            gpu:3g.20gb:2,gpu:7g.40gb:1   gpu:3g.20gb:1(IDX:0),gpu:7g.40gb:0(IDX:N/A)       
      gpu-node-03         gpu            gpu:7g.40gb:2                 gpu:7g.40gb:2(IDX:0-1)    

In other words:

  • gpu-node-01: 14 profiles 1g.5gb, 0 used
  • gpu-node-02: 2 profiles 3g.20gb, 1 used
  • gpu-node-02: 1 profile 7g.40gb, 0 used
  • gpu-node-03: 1 profile 7g.40gb, 2 used

So we can see which GPU/profiles are immediately available.

More information about this "profile" ("Multi-Instance GPU"):