From 715cc0d68610c97556ee57fa267e1487f0efe91d Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Thu, 24 Oct 2024 16:08:17 +0900 Subject: [PATCH] Use Kokkos::numbers::pi instead of M_PI --- fft/unit_test/Test_Utils.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fft/unit_test/Test_Utils.hpp b/fft/unit_test/Test_Utils.hpp index 2d27baf5..31ec53d3 100644 --- a/fft/unit_test/Test_Utils.hpp +++ b/fft/unit_test/Test_Utils.hpp @@ -99,7 +99,8 @@ void fft1(ViewType& in, ViewType& out) { Kokkos::parallel_reduce( Kokkos::TeamThreadRange(team_member, L), [&](const int i, value_type& lsum) { - auto phase = -2 * I * M_PI * static_cast(i) / + auto phase = -2 * I * Kokkos::numbers::pi * + static_cast(i) / static_cast(L); auto tmp_in = in(i); @@ -145,7 +146,8 @@ void ifft1(ViewType& in, ViewType& out) { Kokkos::parallel_reduce( Kokkos::TeamThreadRange(team_member, L), [&](const int i, value_type& lsum) { - auto phase = 2 * I * M_PI * static_cast(i) / + auto phase = 2 * I * Kokkos::numbers::pi * + static_cast(i) / static_cast(L); auto tmp_in = in(i);