SBATCH – CPU Job Example

The user has requested 1GB of memory and 1 CPU on a single node for 10 minutes. Slurm should send an email to your BC email address for job state changes defined as ‘END,’ ‘BEGIN,’ and ‘FAIL.’ Note: The maximum requested time is 5 days (120:00:00); the email address must be a BC email address. See the cpu_test.sl Slurm file as follows.

And the corresponding stata script:

$ test.do
--------------------------------------
webuse auto
d
regress price mpg foreign

Scroll to Top