-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenACC + Cray CCE + AMD MI200+ (#368)
Co-authored-by: Henry Le Berre <[email protected]> Co-authored-by: Steve Abbott <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: wilfonba <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Steve Abbott <[email protected]> Co-authored-by: Abbott, Stephen R <[email protected]> Co-authored-by: Spencer Bryngelson <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Ben Wilfong <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand <[email protected]> Co-authored-by: Anand Radhakrishnan <[email protected]> Co-authored-by: Anand <[email protected]> Co-authored-by: Spencer Bryngelson <[email protected]>
- Loading branch information
1 parent
ddb3edd
commit 2b3d35d
Showing
53 changed files
with
2,064 additions
and
1,087 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
. ./mfc.sh load -c f -m g | ||
./mfc.sh build -j 8 --gpu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
usage() { | ||
echo "Usage: $0 [script.sh] [cpu|gpu]" | ||
} | ||
|
||
if [ ! -z "$1" ]; then | ||
sbatch_script_contents=`cat $1` | ||
else | ||
usage | ||
exit 1 | ||
fi | ||
|
||
job_slug="`basename "$1" | sed 's/\.sh$//' | sed 's/[^a-zA-Z0-9]/-/g'`-$2" | ||
|
||
sbatch <<EOT | ||
#!/bin/bash | ||
#SBATCH -JMFC-$job_slug # Job name | ||
#SBATCH -A CFD154 # charge account | ||
#SBATCH -N 1 # Number of nodes required | ||
#SBATCH -n 8 # Number of cores required | ||
#SBATCH -t 02:00:00 # Duration of the job (Ex: 15 mins) | ||
#SBATCH -q debug # QOS Name | ||
#SBATCH -o$job_slug.out # Combined output and error messages file | ||
#SBATCH -W # Do not exit until the submitted job terminates. | ||
set -e | ||
set -x | ||
cd "\$SLURM_SUBMIT_DIR" | ||
echo "Running in $(pwd):" | ||
job_slug="$job_slug" | ||
job_device="$2" | ||
. ./mfc.sh load -c f -m g | ||
$sbatch_script_contents | ||
EOT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
./mfc.sh test -j 4 -a -- -c frontier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# This script is ran from the 3D_weak_scaling case directory after running | ||
# MFC with --omni -n <name>. To analyze, run chmod u+x ./analyze.sh followed | ||
# by ./analyze.sh <name> | ||
|
||
omniperf analyze -p workloads/$1/mi200 --metric 0 7.1.5 7.1.6 7.1.7 7.1.8 7.1.9 16.3.1 16.3.2 16.3.7 17.3.2 17.3.3 17.3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
Profile MFC using omniperf | ||
|
||
0) Start an interactive session with the desired number of nodes and total tasks using `salloc -A [account] -J interactive -t 2:00:00 -p batch -N [nnodes] -n [total tasks]` | ||
|
||
1) Generate MFC input files by running `./mfc.sh run [path to casefile] -N [nnodes] -n [total tasks] --gpu -t pre_process simulation --case-optimization` | ||
|
||
2) Move to the simulation directory using `cd [path to casefile]` | ||
|
||
3) - `module load` the following modules: | ||
- rocm/5.5.1 | ||
- cray-python | ||
- omniperf | ||
These must be loaded in the order that they are listed. | ||
|
||
4) Run `omniperf profile -n [profile name] -- [path to MFC beginning with /]/build/install/bin/simulation` | ||
|
||
5) Run `omniperf analyze --gui -p [path to casefile]/workloads/[profile name]/mi200` | ||
|
||
6) Determine what login node you're on, call it [node name] | ||
|
||
7) Open a new terminal window and log into Frontier using `ssh -L8050:localhost:8050 username@[node name].frontier.olcf.ornl.gov` | ||
|
||
8) Open a web browser and navigate to `http://localhost:8050/` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.