-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding perftest #527
Merged
Merged
Adding perftest #527
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
a1fd341
added perftest
DiamonDinoia 38a9c62
added-perftests
DiamonDinoia 3b3388e
initial script
DiamonDinoia e14e8f6
draft for the performance page
DiamonDinoia cc1b067
updated scripts to handle all cases
DiamonDinoia 8dd0b48
removed spurious import
DiamonDinoia 54eb774
First draft of performance page
DiamonDinoia de92732
Build type was not defaulted to release in 2.2.0
DiamonDinoia ffcb2f1
fixed plots
DiamonDinoia 0100dba
added fftw forget wisdom
DiamonDinoia a08eebd
added taskset and fixed wisdom
DiamonDinoia 821db9b
removed redundant ifdef
DiamonDinoia bae6ea8
using the proper ifdef
DiamonDinoia d584982
using nruns=10 remove commented out tests
DiamonDinoia 3e183d6
updated plots; fftw_forget_wisdom called before each test; using 10 r…
DiamonDinoia 0a51b2c
updated plots
DiamonDinoia 98525fc
updated plots
DiamonDinoia aded209
Merge remote-tracking branch 'flatiron/master' into perftests
DiamonDinoia 2dc0412
added temperature check
DiamonDinoia 8d97fb3
updated images clock frequency locked at 3.1 GHz
DiamonDinoia 3cd9b07
updated tests and documentation page
DiamonDinoia 2559a5e
fixing windows getopt
DiamonDinoia efdc8f2
removed unused sh file
DiamonDinoia d8e3272
using a warning
DiamonDinoia 97bfe85
Fixing OSx build issue
DiamonDinoia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,112 @@ | ||
Performance | ||
============ | ||
|
||
This page shows the performance of the various version of FINUFFT starting from version 2.2.0. The goal is to ensure that performance does not regress between releases. | ||
The results serve also as a user guideline to select the best compile time configuration (compiler, flags, fft implementation) and the best runtime parameters (upsampling factor, number of threads). | ||
Please note that the performance depends on multiple parameters. | ||
Notably: dimensions, size, digits requested, upsamplig factor, CPU utilised, compiler flags, SIMD instructions. | ||
Due to the curse of dimensionality it is not possible to test all possible configurations. | ||
Hence, we selected some use cases from this `GitHub discussion <https://github.com/flatironinstitute/finufft/discussions/398>`_. | ||
If none of the following examples is of any help for your specific use case, participating in the discussion is the best way to communicate with us and the benchmarks may be updated to satisfy the majority of the users. | ||
|
||
This `GitHub discussion <https://github.com/flatironinstitute/finufft/discussions/452>`_ shows instead the performance of the spreader/interpolator with different compilers and gives more insight on which one might be the faster for a specific CPU. | ||
|
||
|
||
The CPU used for all benchmarks is Intel(R) Xeon(R) w5-3435X, the compiler is GCC 13.2.0. | ||
The compiler flags are the ones used as a default in the CMakeLists.txt of the version tested we only impose a Release build and `-march=native`. | ||
The title of the image contains the parameters used. | ||
- pref: precision f=float, d=double | ||
- N(x): dimension along one axes | ||
- M: number of non-uniform points | ||
- type: transform type (1, 2 or 3) | ||
|
||
The other parameters are the same as finufft_opts. | ||
|
||
To generate the results run `bench.py` as is inside perftest. It requires ``numpy``, ``pandas`` and ``matplotlib``. | ||
The script assumes a bash like shell and it might not work on Windows. | ||
.. warning:: | ||
DO NOT RUN the script from inside the finufft git directory as it will mess up the git directory and fail! | ||
|
||
1D Transforms | ||
--------------------------------------------- | ||
|
||
Type 1 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/10000x1x1-type-1-upsamp2.00-precf-thread1.png | ||
.. image:: pics/10000x1x1-type-1-upsamp1.25-precf-thread1.png | ||
.. image:: pics/10000x1x1-type-1-upsamp2.00-precd-thread1.png | ||
.. image:: pics/10000x1x1-type-1-upsamp1.25-precd-thread1.png | ||
|
||
Type 2 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/10000x1x1-type-2-upsamp1.25-precd-thread1.png | ||
.. image:: pics/10000x1x1-type-2-upsamp1.25-precf-thread1.png | ||
.. image:: pics/10000x1x1-type-2-upsamp2.00-precd-thread1.png | ||
.. image:: pics/10000x1x1-type-2-upsamp2.00-precf-thread1.png | ||
|
||
Type 3 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/10000x1x1-type-3-upsamp1.25-precd-thread1.png | ||
.. image:: pics/10000x1x1-type-3-upsamp1.25-precf-thread1.png | ||
.. image:: pics/10000x1x1-type-3-upsamp2.00-precd-thread1.png | ||
.. image:: pics/10000x1x1-type-3-upsamp2.00-precf-thread1.png | ||
|
||
2D transforms | ||
--------------------------------------------- | ||
Type 1 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
.. image:: pics/320x320x1-type-1-upsamp1.25-precf-thread1.png | ||
.. image:: pics/320x320x1-type-1-upsamp1.25-precd-thread1.png | ||
.. image:: pics/320x320x1-type-1-upsamp2.00-precf-thread1.png | ||
.. image:: pics/320x320x1-type-1-upsamp2.00-precd-thread1.png | ||
|
||
Type 2 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/320x320x1-type-2-upsamp1.25-precf-thread1.png | ||
.. image:: pics/320x320x1-type-2-upsamp1.25-precd-thread1.png | ||
.. image:: pics/320x320x1-type-2-upsamp2.00-precf-thread1.png | ||
.. image:: pics/320x320x1-type-2-upsamp2.00-precd-thread1.png | ||
|
||
Type 3 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/320x320x1-type-3-upsamp1.25-precf-thread1.png | ||
.. image:: pics/320x320x1-type-3-upsamp1.25-precd-thread1.png | ||
.. image:: pics/320x320x1-type-3-upsamp2.00-precf-thread1.png | ||
.. image:: pics/320x320x1-type-3-upsamp2.00-precd-thread1.png | ||
|
||
2D transforms Multi-Threaded | ||
--------------------------------------------- | ||
|
||
Type 1 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/320x320x1-type-1-upsamp1.25-precf-thread32.png | ||
.. image:: pics/320x320x1-type-1-upsamp2.00-precf-thread32.png | ||
|
||
Type 2 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/320x320x1-type-2-upsamp1.25-precf-thread32.png | ||
.. image:: pics/320x320x1-type-2-upsamp2.00-precf-thread32.png | ||
|
||
Type 3 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/320x320x1-type-3-upsamp1.25-precf-thread32.png | ||
.. image:: pics/320x320x1-type-3-upsamp2.00-precf-thread32.png | ||
|
||
3D transforms Multi-Threaded (float32) | ||
--------------------------------------------- | ||
|
||
Type 1 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/192x192x128-type-1-upsamp1.25-precf-thread32.png | ||
.. image:: pics/192x192x128-type-1-upsamp2.00-precf-thread32.png | ||
|
||
Type 2 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/192x192x128-type-2-upsamp1.25-precf-thread32.png | ||
.. image:: pics/192x192x128-type-2-upsamp2.00-precf-thread32.png | ||
|
||
Type 3 | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
.. image:: pics/192x192x128-type-3-upsamp1.25-precf-thread32.png | ||
.. image:: pics/192x192x128-type-3-upsamp2.00-precf-thread32.png |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script downloads finufft and builds it.