spcl / dace

DaCe - Data Centric Parallel Programming
http://dace.is/fast
BSD 3-Clause "New" or "Revised" License
499 stars 129 forks source link

Size in `new[]` explicitly casted to `size_t` #1775

Open philip-paul-mueller opened 3 days ago

philip-paul-mueller commented 3 days ago

In PR#1748 we tried to enable the Stockham FFT tests. Their problem is that the size of an array is given as b**e which the code generator translates to

new double [dace::math::pow(b, e)

currently, pow will generate a float, which leads to a compilation error. In PR#1748, the solution was to specialize pow to handle this case. But it was concluded that this was the wrong approach. This is now the second attempt.