mnist_serial_cpu.sh 859 B

1234567891011121314151617181920212223242526272829
  1. #!/bin/bash -l
  2. # Batch script to run a serial job under SGE.
  3. # Request ten minutes of wallclock time (format hours:minutes:seconds).
  4. #$ -l h_rt=0:10:0
  5. # Request 1 gigabyte of RAM (must be an integer followed by M, G, or T)
  6. #$ -l mem=1G
  7. # Request 15 gigabyte of TMPDIR space (default is 10 GB - remove if cluster is diskless)
  8. #$ -l tmpfs=15G
  9. # Set the name of the job.
  10. #$ -N mnist_serial_cpu
  11. # Useful to know!
  12. date
  13. hostname
  14. # Set python path and get in the right place!
  15. SOURCE_DIR='~/hpc-tutorial/'
  16. export PYTHONPATH=$PYTHONPATH:$SOURCE_DIR
  17. cd $SOURCE_DIR || exit
  18. # Activate your enviroment!
  19. conda activate hpc-example
  20. # Run your code!
  21. python pl_examples/image_classifier_4_lightning_module.py
  22. # Is actually advisable to save all results in a $TEMPDIR, zip and clear up... https://www.rc.ucl.ac.uk/docs/Example_Jobscripts/#working-directories-and-output