Skip to content

Commit 92bc4da

Browse files
committed
Document Fortran benchmark recipes
1 parent f570185 commit 92bc4da

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

tools/make/lib/benchmark/README.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,46 @@ This recipe is useful when wanting to run a list of C++ benchmark files generate
108108

109109
* * *
110110

111+
### Fortran
112+
113+
**Note**: Fortran benchmark recipes delegate to local Makefiles which are responsible for actually compiling and running the respective benchmarks.
114+
115+
#### benchmark-fortran
116+
117+
Runs Fortran benchmarks.
118+
119+
<!-- run-disable -->
120+
121+
```bash
122+
$ make benchmark-fortran
123+
```
124+
125+
The recipe recognizes the following environment variables:
126+
127+
- **BENCHMARKS_FILTER**: filepath pattern; e.g., `.*/blas/base/dasum/.*`.
128+
- **FORTRAN_COMPILER**: Fortran compiler; e.g., `gfortran`.
129+
130+
This recipe is useful when wanting to glob for Fortran benchmark files (e.g., run all Fortran benchmarks for a particular package).
131+
132+
#### benchmark-fortran-files
133+
134+
Runs a specified list of Fortran benchmark files.
135+
136+
<!-- run-disable -->
137+
138+
```bash
139+
$ make benchmark-fortran-files FILES='/foo/benchmark.f /bar/benchmark.f'
140+
```
141+
142+
The recipe recognizes the following environment variables:
143+
144+
- **FILES**: list of Fortran benchmark files.
145+
- **FORTRAN_COMPILER**: Fortran compiler; e.g., `gfortran`.
146+
147+
This recipe is useful when wanting to run a list of Fortran benchmark files generated by some other command (e.g., a filtered list of changed Fortran benchmark files obtained via `git diff`).
148+
149+
* * *
150+
111151
</section>
112152

113153
<!-- /.usage -->

0 commit comments

Comments
 (0)