mpicbg-scicomp / gearshifft

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

fixes incorrect calculation of input length of rocfft r2c type #149

Open hoptony opened 4 years ago

hoptony commented 4 years ago

fixes 2D && 3D incorrect calculation of input length of rocfft real2complex type

psteinb commented 4 years ago

@hoptony thanks for this contribution. Maybe @tdd11235813 or @zyzzyxdonta can comment too?

zyzzyxdonta commented 4 years ago

I haven't used rocfft, sorry :man_shrugging:

zyzzyxdonta commented 4 years ago

I wanted to try it out but quickly failed because I can't get rocm and rocfft to build on my machine.

However, I noticed that gearshifft's build system is broken with CMake >= 3.17 because it uses a variable name starting with CMAKE (CMAKE_DEFAULT_BUILD_TYPE) and that name was introduced in CMake 3.17 to actually mean something. Maybe it could be renamed using the GEARSHIFFT_ prefix:

sed -i 's/CMAKE_DEFAULT_BUILD_TYPE/GEARSHIFFT_DEFAULT_BUILD_TYPE/g' cmake/init_build_type.cmake

@hoptony I noticed you commented out the old code and left it in. Maybe you could remove it. This would decrease the number of changed lines in your PR dramatically and the change would be more easily understandable by looking at the diff.