spcl / dace

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

Fixed an error regarding the `pow()` function of the DaCe runtime. #1582

Closed philip-paul-mueller closed 2 months ago

philip-paul-mueller commented 3 months ago

Currently there was an inplementation for T pow(T, T), where T is a template and two for the case where T is a signed or unsigned integer. This is a problem if we consider the call pow(double, long long) because the call is ambigious and results in a compiler error. As a solution I added the function T pow(T, E), where both T and E are templates.

BenWeber42 commented 2 months ago

I'm closing this one, since it's superseded by https://github.com/spcl/dace/pull/1583