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:
[x] Actually try to compile this with cuFFT and float16 support.
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 ;-))
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:
float16
support.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 ;-))