Skip to content

Commit

Permalink
Remove constexpr in the examples (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau authored Nov 4, 2024
1 parent 0bff334 commit 6b410e8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/01_1DFFT/01_1DFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using View1D = Kokkos::View<T*, execution_space>;
int main(int argc, char* argv[]) {
Kokkos::initialize(argc, argv);
{
constexpr int n0 = 128;
const int n0 = 128;
const Kokkos::complex<double> z(1.0, 1.0);

// 1D C2C FFT (Forward and Backward)
Expand Down
2 changes: 1 addition & 1 deletion examples/02_2DFFT/02_2DFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using View2D = Kokkos::View<T**, execution_space>;
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<double> z(1.0, 1.0);

// 2D C2C FFT (Forward and Backward)
Expand Down
2 changes: 1 addition & 1 deletion examples/03_NDFFT/03_NDFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ using axis_type = KokkosFFT::axis_type<DIM>;
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<double> z(1.0, 1.0);

// 3D C2C FFT (Forward and Backward)
Expand Down
2 changes: 1 addition & 1 deletion examples/04_batchedFFT/04_batchedFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using View3D = Kokkos::View<T***, execution_space>;
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<double> z(1.0, 1.0);

// 1D batched C2C FFT (Forward and Backward)
Expand Down
2 changes: 1 addition & 1 deletion examples/05_1DFFT_HOST_DEVICE/05_1DFFT_HOST_DEVICE.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ using HostView1D = Kokkos::View<T*, host_execution_space>;
int main(int argc, char* argv[]) {
Kokkos::initialize(argc, argv);
{
constexpr int n0 = 128;
const int n0 = 128;
const Kokkos::complex<double> z(1.0, 1.0);

// 1D C2C FFT (Forward and Backward)
Expand Down
2 changes: 1 addition & 1 deletion examples/06_1DFFT_reuse_plans/06_1DFFT_reuse_plans.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ using View1D = Kokkos::View<T*, execution_space>;
int main(int argc, char* argv[]) {
Kokkos::initialize(argc, argv);
{
constexpr int n0 = 128;
const int n0 = 128;
const Kokkos::complex<double> z(1.0, 1.0);

// 1D C2C FFT (Forward and Backward)
Expand Down
2 changes: 1 addition & 1 deletion examples/07_unmanaged_views/07_unmanaged_views.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ using shape_type = KokkosFFT::shape_type<DIM>;
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<double> z(1.0, 1.0);

shape_type<3> shape;
Expand Down

0 comments on commit 6b410e8

Please sign in to comment.