Skip to main content »

Trinity College Dublin

Project Codes

Each compute job at TCHPC needs to be allocated to a project.

  • Apply for a project code.
The project code is used when submitting jobs to any TCHPC cluster (batch, or at the command line).

Batch Submission

You may add the optional '-U' parameter to your batch submission script (this is only important if you have more than one project code, and would like to specify which one to use; it defaults to the most recent otherwise).
#SBATCH -n 16
#SBATCH -t 10:00:00
#SBATCH -p compute
#SBATCH -U project_code

Command Line resource requests

You may add the optional '-U' parameter the '-U' parameter when requesting resources via srun or salloc.
srun -N 8 -p compute -t 10:00:00 -U project_code
salloc -N 8 -p compute -t 10:00:00 -U project_code

Which codes can I use, and what are my balances?

To see a list of project codes available to you, use the sbank balance statement command. For example :
[user01@lonsdale01 ~]$ sbank balance statement
User             Usage |          Account       Usage | Account Limit   Available (CPU hrs)
---------- ----------- + ---------------- ----------- + ------------- -----------
user01          10,003 |     HPC_10_00248           0 |       400,000     389,997
user01               4 |     HPC_11_00991           0 |       400,000     399,996

See here for more details on slurm bank.

Error reported with invalid code

If you're trying to use an invalid code, or if you have yet to apply for one, you will see the following error message:

If using sbatch:

sbatch: error: Batch job submission failed: Invalid account or account/partition combination specified

If using salloc:

salloc: error: Failed to allocate resources: Invalid account or account/partition combination specified

Last updated 01 Apr 2016Contact Research IT.