diff --git a/fft/src/KokkosFFT_ROCM_types.hpp b/fft/src/KokkosFFT_ROCM_types.hpp index 2cde960b..78b7e63d 100644 --- a/fft/src/KokkosFFT_ROCM_types.hpp +++ b/fft/src/KokkosFFT_ROCM_types.hpp @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include "KokkosFFT_common_types.hpp" @@ -56,6 +55,14 @@ struct ScopedRocfftPlanDescription { Kokkos::abort("rocfft_plan_description_destroy failed"); } + ScopedRocfftPlanDescription() = delete; + ScopedRocfftPlanDescription(const ScopedRocfftPlanDescription &) = delete; + ScopedRocfftPlanDescription &operator=(const ScopedRocfftPlanDescription &) = + delete; + ScopedRocfftPlanDescription &operator=(ScopedRocfftPlanDescription &&) = + delete; + ScopedRocfftPlanDescription(ScopedRocfftPlanDescription &&) = delete; + rocfft_plan_description description() const noexcept { return m_description; } }; @@ -83,6 +90,13 @@ struct ScopedRocfftExecutionInfo { Kokkos::abort("rocfft_execution_info_destroy failed"); } + ScopedRocfftExecutionInfo() = delete; + ScopedRocfftExecutionInfo(const ScopedRocfftExecutionInfo &) = delete; + ScopedRocfftExecutionInfo &operator=(const ScopedRocfftExecutionInfo &) = + delete; + ScopedRocfftExecutionInfo &operator=(ScopedRocfftExecutionInfo &&) = delete; + ScopedRocfftExecutionInfo(ScopedRocfftExecutionInfo &&) = delete; + rocfft_execution_info execution_info() const noexcept { return m_execution_info; }