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.

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