Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Oct 23, 2024
1 parent 59af3f5 commit 52b81ed
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 15 deletions.
9 changes: 4 additions & 5 deletions common/unit_test/Test_Helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,9 @@ void test_get_shift(int direction) {
KokkosFFT::axis_type<2> shift1_axis1_odd_ref = {0, direction * n2 / 2};
KokkosFFT::axis_type<2> shift1_axis1_even_ref = {0, direction * n2 / 2};
KokkosFFT::axis_type<2> shift2_odd_ref = {direction * n_odd / 2,
direction * n2 / 2};
direction * n2 / 2};
KokkosFFT::axis_type<2> shift2_even_ref = {direction * n_even / 2,
direction * n2 / 2};
direction * n2 / 2};

auto shift1_odd = KokkosFFT::Impl::get_shift(
x1_odd, KokkosFFT::axis_type<1>({0}), direction);
Expand Down Expand Up @@ -266,7 +266,7 @@ void test_fftshift1D_2DView(int n0) {

if (n0 % 2 == 0) {
_x_ref = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
-15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
-15, -14, -13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
_y0_ref = {
5, 6, 7, 8, 9, 0, 1, 2, 3, 4, -15, -14, -13, -12, -11,
10, 11, 12, 13, 14, -5, -4, -3, -2, -1, -10, -9, -8, -7, -6,
Expand All @@ -276,7 +276,7 @@ void test_fftshift1D_2DView(int n0) {
10, 11, 12, 13, 14, -15, -14, -13, -12, -11};
} else {
_x_ref = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13,
-13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
-13, -12, -11, -10, -9, -8, -7, -6, -5, -4, -3, -2, -1};
_y0_ref = {5, 6, 7, 8, 0, 1, 2, 3, 4, -13, -12, -11, -10, 9,
10, 11, 12, 13, -4, -3, -2, -1, -9, -8, -7, -6, -5};
_y1_ref = {-9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4,
Expand Down Expand Up @@ -388,4 +388,3 @@ TEST_P(FFTShiftParamTests, 2DShift2DView) {

INSTANTIATE_TEST_SUITE_P(FFTShift, FFTShiftParamTests,
::testing::Values(9, 10));

2 changes: 1 addition & 1 deletion common/unit_test/Test_Layouts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,4 +721,4 @@ TYPED_TEST(Layouts2D, 2DFFT_3DView) {
using layout_type = typename TestFixture::layout_type;

test_layouts_2d_batched_FFT_3d<layout_type>();
}
}
2 changes: 1 addition & 1 deletion common/unit_test/Test_Normalization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ TEST(Normalization, None) {
KokkosFFT::Direction::backward,
KokkosFFT::Normalization::none, len);
EXPECT_TRUE(allclose(x_b, ref_b, 1.e-5, 1.e-12));
}
}
2 changes: 1 addition & 1 deletion examples/01_1DFFT/01_1DFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ int main(int argc, char* argv[]) {
Kokkos::finalize();

return 0;
}
}
2 changes: 1 addition & 1 deletion examples/02_2DFFT/02_2DFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ int main(int argc, char* argv[]) {
Kokkos::finalize();

return 0;
}
}
2 changes: 1 addition & 1 deletion examples/04_batchedFFT/04_batchedFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ int main(int argc, char* argv[]) {
Kokkos::finalize();

return 0;
}
}
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 @@ -82,4 +82,4 @@ int main(int argc, char* argv[]) {
Kokkos::finalize();

return 0;
}
}
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 @@ -57,4 +57,4 @@ int main(int argc, char* argv[]) {
Kokkos::finalize();

return 0;
}
}
2 changes: 1 addition & 1 deletion fft/src/KokkosFFT.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
#include "KokkosFFT_Plans.hpp"
#include "KokkosFFT_Transform.hpp"

#endif
#endif
2 changes: 1 addition & 1 deletion install_test/as_library/hello.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ int main(int argc, char* argv[]) {
Kokkos::finalize();

return 0;
}
}
2 changes: 1 addition & 1 deletion install_test/as_subdirectory/hello.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ int main(int argc, char* argv[]) {
Kokkos::finalize();

return 0;
}
}

0 comments on commit 52b81ed

Please sign in to comment.