AUTH's THMMY "Parallel and distributed systems" course assignments.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
936 B

  1. #!/usr/bin/env bash
  2. #
  3. # Run the following command from the directory where the slurm files should be created
  4. #
  5. # Invocation ./submitJobs.sh <hpcDirectory>
  6. #
  7. # Check if a directory argument is given
  8. if [[ -z "$1" ]]; then
  9. echo "Usage: $0 <directory>"
  10. exit 1
  11. fi
  12. # Submission parameters
  13. QOS="small"
  14. PARTITION="ampere" # ampere gpu
  15. SCRIPT_DIR="$1" # Directory containing the job scripts
  16. # Range of values for the -q parameter
  17. VERSIONS=("V0" "V1" "V2")
  18. Q_START=20
  19. Q_END=30
  20. # Submitting the jobs
  21. for version in "${VERSIONS[@]}"; do
  22. for ((q = Q_START; q <= Q_END; q++)); do
  23. script_name="Bitnc${version}Q${q}.sh"
  24. script_path="${SCRIPT_DIR}/${script_name}"
  25. if [[ -f "$script_path" ]]; then
  26. echo "Submitting: $script_path"
  27. sbatch --qos="$QOS" -p "$PARTITION" "$script_path"
  28. #sbatch -p "$PARTITION" "$script_path"
  29. else
  30. echo "Warning: File not found - $script_path"
  31. fi
  32. done
  33. done