HW3: Small changes to build and analyze scripts
This commit is contained in:
parent
f687f30d2f
commit
8f44cbfcb9
@ -1,4 +1,4 @@
|
|||||||
#!/bin/bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
# Check if a directory argument is given
|
# Check if a directory argument is given
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
@ -19,8 +19,8 @@ printf "%s\n" "--------------------------------------"
|
|||||||
|
|
||||||
# Loop through code versions
|
# Loop through code versions
|
||||||
for VERSION in V0 V1 V2; do
|
for VERSION in V0 V1 V2; do
|
||||||
printf "\n%-15s %s\n" "Code version:" "$VERSION"
|
printf "\n%-14s %s\n" "Code version:" "$VERSION"
|
||||||
printf "%-10s %-18s %-18s %-18s\n" "" "Total" "Mem-xch" "Sorting"
|
printf "%-8s %-18s %-18s %-18s\n" "" "Total" "Mem-xch" "Sorting"
|
||||||
|
|
||||||
for Q in {20..30}; do
|
for Q in {20..30}; do
|
||||||
FILE=$(grep -l "\[Log\]: Code version: $VERSION" "$LOG_DIR"/* | xargs grep -l "Q=$Q")
|
FILE=$(grep -l "\[Log\]: Code version: $VERSION" "$LOG_DIR"/* | xargs grep -l "Q=$Q")
|
||||||
|
@ -1,9 +1,22 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
# Submission parameters
|
||||||
QOS="small"
|
QOS="small"
|
||||||
PARTITION="ampere" # ampere gpu
|
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
|
# Range of values for the -q parameter
|
||||||
VERSIONS=("V0" "V1" "V2")
|
VERSIONS=("V0" "V1" "V2")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user