Benchmarking OpenBlas on windows #5008
-
I executed commands below which complete successfully
But on running
there are files generated in the builddir post meson compile but I'm unsure of how to use them to fix above error. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 8 replies
-
looks like the openblas_wrap module is not in your python search path (or local site-packages folder) ? but I must admit I have never tried running this on Windows... perhaps try copying the openblas_wrap module into the benchmarks folder to see if it gets found there |
Beta Was this translation helpful? Give feedback.
-
Thank you very much for the feedback. The second part sounds like it might be related to the Fortran compiler you used - I think this benchmark was developed using gfortran, while you may be using flang ? (At least googling "meson fortran_std=legacy" brings up several hits including an open github ticket (12306) in the mesonbuild project which state that meson does not fully support flang yet). Probably just documenting this workaround in the local README.md would be best. I'll also add a note to the README.md about copying the openblas_wrap module to the correct folder on Windows - I'm not sure yet if changing the script to do this automatically would be correct for all platforms. This pybench was primarily written to be run from a CI script on github which checks every new pull request for its impact on the performance of key functions, so I'd rather not risk breaking that functionality. (Edited to add: this may also be the reason why you see an additional openblas_wrap already present in the repo - though I think this contains only the sources for the actual wrapper to be built by meson ?) |
Beta Was this translation helpful? Give feedback.
-
I have followed the same steps mentioned in the discussion (linked above) for running the benchmark tests on x64. However, I am encountering the following error when executing the benchmark script:
Could you please guide me on how to resolve this error? Are there additional steps I should follow to ensure that the benchmark script can locate and load the required _flapack module? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
I'll need to try to reproduce the problem myself - the pybench files were contributed by the Scipy team, and I'm not as familiar with Meson as them. Steps I did to build the wrapper on Linux were
the |
Beta Was this translation helpful? Give feedback.
looks like the openblas_wrap module is not in your python search path (or local site-packages folder) ? but I must admit I have never tried running this on Windows... perhaps try copying the openblas_wrap module into the benchmarks folder to see if it gets found there