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.
 
 
 
 
 
 

27 lines
622 B

  1. #!/usr/bin/env bash
  2. # Submission parameters
  3. QOS="small"
  4. PARTITION="ampere"
  5. SCRIPT_DIR="hpc" # Directory containing the job scripts
  6. # Range of values for the -q parameter
  7. VERSIONS=("V0" "V1" "V2")
  8. Q_START=20
  9. Q_END=30
  10. # Submitting the jobs
  11. for version in "${VERSIONS[@]}"; do
  12. for ((q = Q_START; q <= Q_END; q++)); do
  13. script_name="Bitnc${version}Q${q}.sh"
  14. script_path="${SCRIPT_DIR}/${script_name}"
  15. if [[ -f "$script_path" ]]; then
  16. sbatch --qos="$QOS" -p "$PARTITION" "$script_path"
  17. echo "Submitted: $script_path"
  18. else
  19. echo "Warning: File not found - $script_path"
  20. fi
  21. done
  22. done