mpicbg-scicomp / gearshifft

Benchmark Suite for Heterogenuous FFT Implementations
Apache License 2.0
34 stars 9 forks source link

Use std::generate to generate benchmark data #156

Open zyzzyxdonta opened 8 months ago

zyzzyxdonta commented 8 months ago

This pull request implements benchmark data generation with generator structs used with std::generate. This clearly communicates the intent, making the code more readable than the raw loops used before.

TODO:

Thoughts:

It would also be interesting to know whether the sparseness of the benchmark data (float16 case) affects results. There are even special FFT implementations for certain kinds of sparse data. With that in mind, it might even make sense to make benchmark data generators user-selectable at compile time. (Not now but as a possible new feature ;-))