You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/pull_request_template.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,17 +38,21 @@ Please also list any relevant details for your test configuration
38
38
-[ ] I added Doxygen docstrings to the new code
39
39
-[ ] I have made corresponding changes to the documentation (`docs/`)
40
40
-[ ] I have added regression tests to the test suite so that people can verify in the future that the feature is behaving as expected
41
-
-[ ] I have added example cases in `examples/` that demonstrate my new feature performing as expected
41
+
-[ ] I have added example cases in `examples/` that demonstrate my new feature performing as expected.
42
+
They run to completion and demonstrate "interesting physics"
42
43
-[ ] I ran `./mfc.sh format` before committing my code
43
-
-[ ] New and existing tests pass locally with my changes, including with GPU capability enabled and disabled
44
+
-[ ] New and existing tests pass locally with my changes, including with GPU capability enabled (both NVIDIA hardware with NVHPC compilers and AMD hardware with CRAY compilers) and disabled
44
45
-[ ] This PR does not introduce any repeated code (it follows the [DRY](https://en.wikipedia.org/wiki/Don%27t_repeat_yourself) principle)
45
46
-[ ] I cannot think of a way to condense this code and reduce any introduced additional line count
46
47
47
-
### If your code changes any code source files (anything in `src/`)
48
+
### If your code changes any code source files (anything in `src/simulation`)
48
49
49
50
To make sure the code is performing as expected on GPU devices, I have:
50
51
-[ ] Checked that the code compiles using NVHPC compilers
52
+
-[ ] Checked that the code compiles using CRAY compilers
51
53
-[ ] Ran the code on either V100, A100, or H100 GPUs and ensured the new feature performed as expected (the GPU results match the CPU results)
54
+
-[ ] Ran the code on MI200+ GPUs and ensure the new features performed as expected (the GPU results match the CPU results)
52
55
-[ ] Enclosed the new feature via `nvtx` ranges so that they can be identified in profiles
53
56
-[ ] Ran a Nsight Systems profile using `./mfc.sh run XXXX --gpu -t simulation --nsys`, and have attached the output file (`.nsys-rep`) and plain text results to this PR
57
+
-[ ] Ran an Omniperf profile using `./mfc.sh run XXXX --gpu -t simulation --omniperf`, and have attached the output file and plain text results to this PR.
54
58
-[ ] Ran my code using various numbers of different GPUs (1, 2, and 8, for example) in parallel and made sure that the results scale similarly to what happens if you run without the new code/feature
Copy file name to clipboardExpand all lines: docs/documentation/running.md
+18-3Lines changed: 18 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,20 +81,35 @@ As an example, one might request GPUs on a SLURM system using the following:
81
81
**Disclaimer**: IBM's JSRUN on LSF-managed computers does not use the traditional node-based approach to
82
82
allocate resources. Therefore, the MFC constructs equivalent resource sets in the task and GPU count.
83
83
84
-
### Profiling with NVIDIA Nsight
84
+
### GPU Profiling
85
+
86
+
#### NVIDIA GPUs
85
87
86
88
MFC provides two different arguments to facilitate profiling with NVIDIA Nsight.
87
89
**Please ensure the used argument is placed at the end so their respective flags can be appended.**
88
-
- Nsight Systems (Nsys): `./mfc.sh run ... --nsys [nsys flags]` allows one to visualize MFC's system-wide performance with [NVIDIA Nsight Systems](https://developer.nvidia.com/nsight-systems).
90
+
- Nsight Systems (Nsys): `./mfc.sh run ... -t simulation --nsys [nsys flags]` allows one to visualize MFC's system-wide performance with [NVIDIA Nsight Systems](https://developer.nvidia.com/nsight-systems).
89
91
NSys is best for understanding the order and execution times of major subroutines (WENO, Riemann, etc.) in MFC.
90
92
When used, `--nsys` will run the simulation and generate `.nsys-rep` files in the case directory for all targets.
91
93
These files can then be imported into Nsight System's GUI, which can be downloaded [here](https://developer.nvidia.com/nsight-systems/get-started#latest-Platforms). It is best to run case files with a few timesteps to keep the report files small. Learn more about NVIDIA Nsight Systems [here](https://docs.nvidia.com/nsight-systems/UserGuide/index.html).
92
-
- Nsight Compute (NCU): `./mfc.sh run ... --ncu [ncu flags]` allows one to conduct kernel-level profiling with [NVIDIA Nsight Compute](https://developer.nvidia.com/nsight-compute).
94
+
- Nsight Compute (NCU): `./mfc.sh run ... -t simulation --ncu [ncu flags]` allows one to conduct kernel-level profiling with [NVIDIA Nsight Compute](https://developer.nvidia.com/nsight-compute).
93
95
NCU provides profiling information for every subroutine called and is more detailed than NSys.
94
96
When used, `--ncu` will output profiling information for all subroutines, including elapsed clock cycles, memory used, and more after the simulation is run.
95
97
Adding this argument will significantly slow the simulation and should only be used on case files with a few timesteps.
96
98
Learn more about NVIDIA Nsight Compute [here](https://docs.nvidia.com/nsight-compute/NsightCompute/index.html).
97
99
100
+
101
+
#### AMD GPUs
102
+
- Rocprof (ROC): `./mfc.sh run ... -t simulation --roc --hip-trace [rocprof flags]` allows one to visualize MFC's system-wide performance with [Perfetto UI](https://ui.perfetto.dev/).
103
+
When used, `--roc` will run the simulation and generate files in the case directory for all targets.
104
+
`results.json` can then be imported in [Perfetto's UI](https://ui.perfetto.dev/).
105
+
Learn more about AMD Rocprof [here](https://rocm.docs.amd.com/projects/rocprofiler/en/docs-5.5.1/rocprof.html)
106
+
It is best to run case files with a few timesteps to keep the report files small.
107
+
- Omniperf (OMNI): `./mfc.sh run ... -t simulation --omni [omniperf flags]`allows one to conduct kernel-level profiling with [AMD Omniperf](https://rocm.github.io/omniperf/introduction.html#what-is-omniperf).
108
+
When used, `--omni` will output profiling information for all subroutines, including rooflines, cache usage, register usage, and more after the simulation is run.
109
+
Adding this argument will moderately slow down the simulation and run the MFC executable several times.
110
+
For this reason it should only be used with case files that have a few timesteps.
111
+
112
+
98
113
### Restarting Cases
99
114
100
115
When running a simulation, MFC generates a `./restart_data` folder in the case directory that contains `lustre_*.dat` files that can be used to restart a simulation from saved timesteps.
0 commit comments