Skip to content

Commit 0f8ff82

Browse files
authored
Add build notes for Windows and flang from gh Discussion 5008
1 parent 81666de commit 0f8ff82

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

Diff for: benchmark/pybench/README.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ have all what it takes to build OpenBLAS from source, plus `python` and
4343
$ python -mpip install numpy meson ninja pytest pytest-benchmark
4444
```
4545

46-
The benchmark syntax is consistent with that of `pytest-benchmark` framework. The incantation to run the suite locally is `$ pytest benchmark/pybench/benchmarks/test_blas.py`.
46+
The Meson build system looks for the installed OpenBLAS using pkgconfig, so the openblas.pc created during the OpenBLAS build needs
47+
to be somewhere on the search path of pkgconfig or in a folder pointed to by the environment variable PKG_CONFIG_PATH.
48+
49+
If you want to build the benchmark suite using flang (or flang-new) instead of gfortran for the Fortran parts, you currently need
50+
to edit the meson.build file and change the line `'fortran_std=legacy'` to `'fortran_std=none'` to work around an incompatibility
51+
between Meson and flang.
52+
53+
If you are building and running the benchmark under MS Windows, it may be necessary to copy the generated openblas_wrap module from
54+
your build folder to the `benchmarks` folder.
55+
56+
The benchmark syntax is consistent with that of `pytest-benchmark` framework. The incantation to run the suite locally is `$ pytest benchmark/pybench/benchmarks/bench_blas.py`.
4757

4858
An ASV compatible benchmark suite is planned but currently not implemented.
4959

0 commit comments

Comments
 (0)