HW3: Small changes to build and analyze scripts

This commit is contained in:
Christos Choutouridis 2025-02-16 23:42:10 +02:00
parent f687f30d2f
commit 8f44cbfcb9
2 changed files with 17 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/bin/bash
#! /usr/bin/env bash
# Check if a directory argument is given
if [[ -z "$1" ]]; then
@ -19,8 +19,8 @@ printf "%s\n" "--------------------------------------"
# Loop through code versions
for VERSION in V0 V1 V2; do
printf "\n%-15s %s\n" "Code version:" "$VERSION"
printf "%-10s %-18s %-18s %-18s\n" "" "Total" "Mem-xch" "Sorting"
printf "\n%-14s %s\n" "Code version:" "$VERSION"
printf "%-8s %-18s %-18s %-18s\n" "" "Total" "Mem-xch" "Sorting"
for Q in {20..30}; do
FILE=$(grep -l "\[Log\]: Code version: $VERSION" "$LOG_DIR"/* | xargs grep -l "Q=$Q")

View File

@ -1,9 +1,22 @@
#!/usr/bin/env bash
#
# Run the following command from the directory where the slurm files should be created
#
# Invocation ./submitJobs.sh <hpcDirectory>
#
# Check if a directory argument is given
if [[ -z "$1" ]]; then
echo "Usage: $0 <directory>"
exit 1
fi
# Submission parameters
QOS="small"
PARTITION="ampere" # ampere gpu
SCRIPT_DIR="hpc" # Directory containing the job scripts
SCRIPT_DIR="$1" # Directory containing the job scripts
# Range of values for the -q parameter
VERSIONS=("V0" "V1" "V2")