Browse Source

HW3: Small changes to build and analyze scripts

master
parent
commit
8f44cbfcb9
2 changed files with 17 additions and 4 deletions
  1. +3
    -3
      homework_3/analyse/extract_results.sh
  2. +14
    -1
      homework_3/hpc/submitJobs.sh

+ 3
- 3
homework_3/analyse/extract_results.sh 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")


+ 14
- 1
homework_3/hpc/submitJobs.sh 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")


Loading…
Cancel
Save