Skip to content

Exercise 1: Run a simple job with srun


  1. Download workshop files by running this command:

    ailab --workshop
    
  2. Change directory (cd) to workshop

    Hint
    cd ~/workshop
    
  3. Run the script simple_script.py with python3 using srun

    Hint
    srun python3 simple_script.py
    
  4. Wait ~30 seconds and you should get:

...
Second 29...
Second 30...
Done after 30 seconds!

Next: Creating an sbatch Script →