Skip to content

Commit 3751897

Browse files
committed
move deprecated script to specific dir, update AMD sbatch scripts
1 parent 8de2b41 commit 3751897

10 files changed

Lines changed: 629 additions & 15 deletions

File tree

benchmarks/deprecated/helpers.py

Lines changed: 539 additions & 0 deletions
Large diffs are not rendered by default.

sbatch-scripts/amd_boltzmann.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212
# ------------------
1313

1414
if [ -z "$1" ] && [ -z "$2" ]; then
15-
printf "Script requires two paths: \n\t(1) run_boltzmann.py script path\n\t(2) boltzmann.py script of boltzmann benchmark.\n"
16-
exit 1
15+
printf "Script requires paths: \n\t(1) run_boltzmann_debuggers.py script path"
16+
exit 1
1717
fi
1818

1919
BOLTZMANN_RUNNER="$1"
20-
BOLTZMANN_MAIN="$2"
2120

2221
eval "$(conda shell.bash hook)"
2322
conda activate pkdb
2423

2524
export CXX=hipcc
26-
export OMP_NUM_THREADS="$(nproc)"
27-
python "$BOLTZMANN_RUNNER" --spaces "OpenMP, DebugOpenMP, HIP, DebugHIP" "$BOLTZMANN_MAIN"
25+
python "$BOLTZMANN_RUNNER" --spaces "HIP, DebugHIP"

sbatch-scripts/amd_ewald.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212
# ------------------
1313

1414
if [ -z "$1" ] && [ -z "$2" ]; then
15-
printf "Script requires two paths: \n\t(1) run_ewald.py script path\n\t(2) stokes1p.py of ewald benchmark.\n"
16-
exit 1
15+
printf "Script requires two paths: \n\t(1) run_ewald_debuggers.py script path\n"
16+
exit 1
1717
fi
1818

19-
EWALD_MAIN="$2"
2019
EWALD_RUNNER="$1"
2120

2221
eval "$(conda shell.bash hook)"
2322
conda activate pkdb
2423

2524
export CXX=hipcc
26-
export OMP_NUM_THREADS="$(nproc)"
27-
python "$EWALD_RUNNER" "$EWALD_MAIN" --spaces "OpenMP, DebugOpenMP, HIP, DebugHIP"
25+
python "$EWALD_RUNNER" --spaces "HIP, DebugHIP"

sbatch-scripts/amd_examinimd.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@
1212
# ------------------
1313

1414
if [ -z "$1" ] && [ -z "$2" ]; then
15-
printf "Script requires two paths: \n\t(1) run_examinimd.py script path\n\t(2) main.py of examinimd benchmark.\n"
16-
exit 1
15+
printf "Script requires two paths: \n\t(1) run_examinimd_debuggers.py script path.\n"
16+
exit 1
1717
fi
1818

19-
EXAMINIMD_MAIN="$2"
2019
EXAMINIMD_RUNNER="$1"
2120

2221
eval "$(conda shell.bash hook)"
2322
conda activate pkdb
2423

2524
export CXX=hipcc
26-
export OMP_NUM_THREADS="$(nproc)"
27-
python "$EXAMINIMD_RUNNER" --spaces "OpenMP, DebugOpenMP, HIP, DebugHIP" "$EXAMINIMD_MAIN"
25+
python "$EXAMINIMD_RUNNER" --spaces "HIP, DebugHIP"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
#SBATCH -J pkdb_boltzmann_evaluation # Job name
4+
#SBATCH -o boltzmann_job.out # Name of stdout output file (%j expands to jobId)
5+
#SBATCH -N 1 # Total number of nodes requested
6+
#SBATCH -n 4 # Total number of mpi tasks requested
7+
#SBATCH -t 02:00:00 # Run time (hh:mm:ss) - 1.5 hours
8+
#SBATCH -p mi3008x # Desired partition
9+
10+
# ------------------
11+
# Main code section
12+
# ------------------
13+
14+
if [ -z "$1" ] && [ -z "$2" ]; then
15+
printf "Script requires two paths: \n\t(1) run_boltzmann.py script path\n\t(2) boltzmann.py script of boltzmann benchmark.\n"
16+
exit 1
17+
fi
18+
19+
BOLTZMANN_RUNNER="$1"
20+
BOLTZMANN_MAIN="$2"
21+
22+
eval "$(conda shell.bash hook)"
23+
conda activate pkdb
24+
25+
export CXX=hipcc
26+
export OMP_NUM_THREADS="$(nproc)"
27+
python "$BOLTZMANN_RUNNER" --spaces "OpenMP, DebugOpenMP, HIP, DebugHIP" "$BOLTZMANN_MAIN"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
#SBATCH -J pkdb_ewald_evaluation # Job name
4+
#SBATCH -o ewald_job.out # Name of stdout output file (%j expands to jobId)
5+
#SBATCH -N 1 # Total number of nodes requested
6+
#SBATCH -n 4 # Total number of mpi tasks requested
7+
#SBATCH -t 02:00:00 # Run time (hh:mm:ss) - 1.5 hours
8+
#SBATCH -p mi3008x # Desired partition
9+
10+
# ------------------
11+
# Main code section
12+
# ------------------
13+
14+
if [ -z "$1" ] && [ -z "$2" ]; then
15+
printf "Script requires two paths: \n\t(1) run_ewald.py script path\n\t(2) stokes1p.py of ewald benchmark.\n"
16+
exit 1
17+
fi
18+
19+
EWALD_MAIN="$2"
20+
EWALD_RUNNER="$1"
21+
22+
eval "$(conda shell.bash hook)"
23+
conda activate pkdb
24+
25+
export CXX=hipcc
26+
export OMP_NUM_THREADS="$(nproc)"
27+
python "$EWALD_RUNNER" "$EWALD_MAIN" --spaces "OpenMP, DebugOpenMP, HIP, DebugHIP"
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
#SBATCH -J pkdb_examinimd_evaluation # Job name
4+
#SBATCH -o examinimd_job.out # Name of stdout output file (%j expands to jobId)
5+
#SBATCH -N 1 # Total number of nodes requested
6+
#SBATCH -n 4 # Total number of mpi tasks requested
7+
#SBATCH -t 02:00:00 # Run time (hh:mm:ss) - 1.5 hours
8+
#SBATCH -p mi3008x # Desired partition
9+
10+
# ------------------
11+
# Main code section
12+
# ------------------
13+
14+
if [ -z "$1" ] && [ -z "$2" ]; then
15+
printf "Script requires two paths: \n\t(1) run_examinimd.py script path\n\t(2) main.py of examinimd benchmark.\n"
16+
exit 1
17+
fi
18+
19+
EXAMINIMD_MAIN="$2"
20+
EXAMINIMD_RUNNER="$1"
21+
22+
eval "$(conda shell.bash hook)"
23+
conda activate pkdb
24+
25+
export CXX=hipcc
26+
export OMP_NUM_THREADS="$(nproc)"
27+
python "$EXAMINIMD_RUNNER" --spaces "OpenMP, DebugOpenMP, HIP, DebugHIP" "$EXAMINIMD_MAIN"

0 commit comments

Comments
 (0)