From 8df33b08b6948cbf54d15db1df3fc3d8a2fb9022 Mon Sep 17 00:00:00 2001 From: Yuuichi Asahi Date: Tue, 7 Jan 2025 19:06:43 +0900 Subject: [PATCH] delete non-default constructors for Rocfft wrappers --- fft/src/KokkosFFT_ROCM_types.hpp | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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; }