To run a job, computational resources of DGX-2 must be allocated.
## Resources Allocation Policy
The resources are allocated to the job in a fair-share fashion, subject to constraints set by the queue. The queue provides prioritized and exclusive access to computational resources.
The queue for the DGX-2 machine is called **qdgx**.
!!! note
The qdgx queue is configured to run one job and accept one job in a queue per user with the maximum walltime of a job being **48** hours.
## Job Submission and Execution
The `qsub` submits the job into the queue. The command creates a request to the PBS Job manager for allocation of specified resources. The resources will be allocated when available, subject to allocation policies and constraints. After the resources are allocated, the jobscript or interactive shell is executed on the allocated node.
### Job Submission
The DGX-2 machine is integrated to and accessible through Barbora cluster, the queue for the DGX-2 machine is called **qdgx**.
When allocating computational resources for the job, specify:
1. a queue for your job (the default is **qdgx**);
1. the maximum wall time allocated to your calculation (default is **4 hour**, maximum is **48 hour**);
1. a jobscript or interactive switch.
!!! info
You can access the DGX PBS scheduler by loading the "DGX-2" module.
1. your Project ID
1. a queue for your job - **qdgx**;
1. the maximum time allocated to your calculation (default is **4 hour**, maximum is **48 hour**);
1. a jobscript if batch processing is intended.
Submit the job using the `qsub` command:
Submit the job using the `sbatch` (for batch processing) or `salloc` (for interactive session) command: