AUTH's THMMY "Parallel and distributed systems" course assignments.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

submitJobs.sh 936 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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