alpaka-group / alpaka

Abstraction Library for Parallel Kernel Acceleration :llama:
https://alpaka.readthedocs.io
Mozilla Public License 2.0
356 stars 74 forks source link

fix complex math pow test #2336

Closed psychocoderHPC closed 3 months ago

psychocoderHPC commented 3 months ago

Increase the margin for results comparison for single precision floating point operations due to high computing error compared to std::pow.

With the seed 2913388561 for the pow complex math tests I was able to reproduce the reported issue. In general the calculation is correct but is slidly more off than our old margins allows.

fix issues seen here: https://github.com/alpaka-group/alpaka/pull/2327#issuecomment-2257873170