From 6b410e8547666ea4aca09cdc4263ec0220e2f8cd Mon Sep 17 00:00:00 2001 From: Thomas Padioleau Date: Mon, 4 Nov 2024 17:35:52 +0100 Subject: [PATCH] Remove constexpr in the examples (#194) --- examples/01_1DFFT/01_1DFFT.cpp | 2 +- examples/02_2DFFT/02_2DFFT.cpp | 2 +- examples/03_NDFFT/03_NDFFT.cpp | 2 +- examples/04_batchedFFT/04_batchedFFT.cpp | 2 +- examples/05_1DFFT_HOST_DEVICE/05_1DFFT_HOST_DEVICE.cpp | 2 +- examples/06_1DFFT_reuse_plans/06_1DFFT_reuse_plans.cpp | 2 +- examples/07_unmanaged_views/07_unmanaged_views.cpp | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/01_1DFFT/01_1DFFT.cpp b/examples/01_1DFFT/01_1DFFT.cpp index 9ef3ca8f..7eb92107 100644 --- a/examples/01_1DFFT/01_1DFFT.cpp +++ b/examples/01_1DFFT/01_1DFFT.cpp @@ -14,7 +14,7 @@ using View1D = Kokkos::View; int main(int argc, char* argv[]) { Kokkos::initialize(argc, argv); { - constexpr int n0 = 128; + const int n0 = 128; const Kokkos::complex z(1.0, 1.0); // 1D C2C FFT (Forward and Backward) diff --git a/examples/02_2DFFT/02_2DFFT.cpp b/examples/02_2DFFT/02_2DFFT.cpp index 45b7d424..fc01b4a8 100644 --- a/examples/02_2DFFT/02_2DFFT.cpp +++ b/examples/02_2DFFT/02_2DFFT.cpp @@ -14,7 +14,7 @@ using View2D = Kokkos::View; int main(int argc, char* argv[]) { Kokkos::initialize(argc, argv); { - constexpr int n0 = 128, n1 = 128; + const int n0 = 128, n1 = 128; const Kokkos::complex z(1.0, 1.0); // 2D C2C FFT (Forward and Backward) diff --git a/examples/03_NDFFT/03_NDFFT.cpp b/examples/03_NDFFT/03_NDFFT.cpp index 13347cc3..2c07ee84 100644 --- a/examples/03_NDFFT/03_NDFFT.cpp +++ b/examples/03_NDFFT/03_NDFFT.cpp @@ -16,7 +16,7 @@ using axis_type = KokkosFFT::axis_type; int main(int argc, char* argv[]) { Kokkos::initialize(argc, argv); { - constexpr int n0 = 128, n1 = 128, n2 = 16; + const int n0 = 128, n1 = 128, n2 = 16; const Kokkos::complex z(1.0, 1.0); // 3D C2C FFT (Forward and Backward) diff --git a/examples/04_batchedFFT/04_batchedFFT.cpp b/examples/04_batchedFFT/04_batchedFFT.cpp index 1cd5fad8..7cad003d 100644 --- a/examples/04_batchedFFT/04_batchedFFT.cpp +++ b/examples/04_batchedFFT/04_batchedFFT.cpp @@ -14,7 +14,7 @@ using View3D = Kokkos::View; int main(int argc, char* argv[]) { Kokkos::initialize(argc, argv); { - constexpr int n0 = 128, n1 = 128, n2 = 16; + const int n0 = 128, n1 = 128, n2 = 16; const Kokkos::complex z(1.0, 1.0); // 1D batched C2C FFT (Forward and Backward) diff --git a/examples/05_1DFFT_HOST_DEVICE/05_1DFFT_HOST_DEVICE.cpp b/examples/05_1DFFT_HOST_DEVICE/05_1DFFT_HOST_DEVICE.cpp index 114836fb..76437db2 100644 --- a/examples/05_1DFFT_HOST_DEVICE/05_1DFFT_HOST_DEVICE.cpp +++ b/examples/05_1DFFT_HOST_DEVICE/05_1DFFT_HOST_DEVICE.cpp @@ -17,7 +17,7 @@ using HostView1D = Kokkos::View; int main(int argc, char* argv[]) { Kokkos::initialize(argc, argv); { - constexpr int n0 = 128; + const int n0 = 128; const Kokkos::complex z(1.0, 1.0); // 1D C2C FFT (Forward and Backward) diff --git a/examples/06_1DFFT_reuse_plans/06_1DFFT_reuse_plans.cpp b/examples/06_1DFFT_reuse_plans/06_1DFFT_reuse_plans.cpp index 90a61ad2..0542755f 100644 --- a/examples/06_1DFFT_reuse_plans/06_1DFFT_reuse_plans.cpp +++ b/examples/06_1DFFT_reuse_plans/06_1DFFT_reuse_plans.cpp @@ -14,7 +14,7 @@ using View1D = Kokkos::View; int main(int argc, char* argv[]) { Kokkos::initialize(argc, argv); { - constexpr int n0 = 128; + const int n0 = 128; const Kokkos::complex z(1.0, 1.0); // 1D C2C FFT (Forward and Backward) diff --git a/examples/07_unmanaged_views/07_unmanaged_views.cpp b/examples/07_unmanaged_views/07_unmanaged_views.cpp index 7c8ead30..9baf502d 100644 --- a/examples/07_unmanaged_views/07_unmanaged_views.cpp +++ b/examples/07_unmanaged_views/07_unmanaged_views.cpp @@ -26,7 +26,7 @@ using shape_type = KokkosFFT::shape_type; int main(int argc, char* argv[]) { Kokkos::initialize(argc, argv); { - constexpr int n0 = 128, n1 = 128, n2 = 16; + const int n0 = 128, n1 = 128, n2 = 16; const Kokkos::complex z(1.0, 1.0); shape_type<3> shape;