Skip to content

Commit

Permalink
Rename: KokkosFFT_OpenMP*.hpp to KokkosFFT_Host*.hpp for fftw backend (
Browse files Browse the repository at this point in the history
…#114)

Co-authored-by: Yuuichi Asahi <[email protected]>
  • Loading branch information
yasahi-hpc and Yuuichi Asahi authored Jul 5, 2024
1 parent 9d4c33c commit f49a2e8
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception

#ifndef KOKKOSFFT_OPENMP_PLANS_HPP
#define KOKKOSFFT_OPENMP_PLANS_HPP
#ifndef KOKKOSFFT_HOST_PLANS_HPP
#define KOKKOSFFT_HOST_PLANS_HPP

#include <numeric>
#include "KokkosFFT_default_types.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception

#ifndef KOKKOSFFT_OPENMP_TRANSFORM_HPP
#define KOKKOSFFT_OPENMP_TRANSFORM_HPP
#ifndef KOKKOSFFT_HOST_TRANSFORM_HPP
#define KOKKOSFFT_HOST_TRANSFORM_HPP

#include <fftw3.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
//
// SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception

#ifndef KOKKOSFFT_OPENMP_TYPES_HPP
#define KOKKOSFFT_OPENMP_TYPES_HPP
#ifndef KOKKOSFFT_HOST_TYPES_HPP
#define KOKKOSFFT_HOST_TYPES_HPP

#include <fftw3.h>
#include "KokkosFFT_common_types.hpp"
Expand Down
12 changes: 6 additions & 6 deletions fft/src/KokkosFFT_Plans.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#if defined(KOKKOS_ENABLE_CUDA)
#include "KokkosFFT_Cuda_plans.hpp"
#ifdef ENABLE_HOST_AND_DEVICE
#include "KokkosFFT_OpenMP_plans.hpp"
#include "KokkosFFT_Host_plans.hpp"
#endif
#elif defined(KOKKOS_ENABLE_HIP)
#if defined(KOKKOSFFT_ENABLE_TPL_ROCFFT)
Expand All @@ -29,19 +29,19 @@
#include "KokkosFFT_HIP_plans.hpp"
#endif
#ifdef ENABLE_HOST_AND_DEVICE
#include "KokkosFFT_OpenMP_plans.hpp"
#include "KokkosFFT_Host_plans.hpp"
#endif
#elif defined(KOKKOS_ENABLE_SYCL)
#include "KokkosFFT_SYCL_plans.hpp"
#ifdef ENABLE_HOST_AND_DEVICE
#include "KokkosFFT_OpenMP_plans.hpp"
#include "KokkosFFT_Host_plans.hpp"
#endif
#elif defined(KOKKOS_ENABLE_OPENMP)
#include "KokkosFFT_OpenMP_plans.hpp"
#include "KokkosFFT_Host_plans.hpp"
#elif defined(KOKKOS_ENABLE_THREADS)
#include "KokkosFFT_OpenMP_plans.hpp"
#include "KokkosFFT_Host_plans.hpp"
#else
#include "KokkosFFT_OpenMP_plans.hpp"
#include "KokkosFFT_Host_plans.hpp"
#endif

namespace KokkosFFT {
Expand Down
12 changes: 6 additions & 6 deletions fft/src/KokkosFFT_Transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#if defined(KOKKOS_ENABLE_CUDA)
#include "KokkosFFT_Cuda_transform.hpp"
#ifdef ENABLE_HOST_AND_DEVICE
#include "KokkosFFT_OpenMP_transform.hpp"
#include "KokkosFFT_Host_transform.hpp"
#endif
#elif defined(KOKKOS_ENABLE_HIP)
#if defined(KOKKOSFFT_ENABLE_TPL_ROCFFT)
Expand All @@ -25,19 +25,19 @@
#include "KokkosFFT_HIP_transform.hpp"
#endif
#ifdef ENABLE_HOST_AND_DEVICE
#include "KokkosFFT_OpenMP_transform.hpp"
#include "KokkosFFT_Host_transform.hpp"
#endif
#elif defined(KOKKOS_ENABLE_SYCL)
#include "KokkosFFT_SYCL_transform.hpp"
#ifdef ENABLE_HOST_AND_DEVICE
#include "KokkosFFT_OpenMP_transform.hpp"
#include "KokkosFFT_Host_transform.hpp"
#endif
#elif defined(KOKKOS_ENABLE_OPENMP)
#include "KokkosFFT_OpenMP_transform.hpp"
#include "KokkosFFT_Host_transform.hpp"
#elif defined(KOKKOS_ENABLE_THREADS)
#include "KokkosFFT_OpenMP_transform.hpp"
#include "KokkosFFT_Host_transform.hpp"
#else
#include "KokkosFFT_OpenMP_transform.hpp"
#include "KokkosFFT_Host_transform.hpp"
#endif

#include <type_traits>
Expand Down
6 changes: 3 additions & 3 deletions fft/src/KokkosFFT_default_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
#elif defined(KOKKOS_ENABLE_SYCL)
#include "KokkosFFT_SYCL_types.hpp"
#elif defined(KOKKOS_ENABLE_OPENMP)
#include "KokkosFFT_OpenMP_types.hpp"
#include "KokkosFFT_Host_types.hpp"
#elif defined(KOKKOS_ENABLE_THREADS)
#include "KokkosFFT_OpenMP_types.hpp"
#include "KokkosFFT_Host_types.hpp"
#else
#include "KokkosFFT_OpenMP_types.hpp"
#include "KokkosFFT_Host_types.hpp"
#endif

#include "KokkosFFT_utils.hpp"
Expand Down

0 comments on commit f49a2e8

Please sign in to comment.