Skip to content

Commit

Permalink
delete non-default constructors for Rocfft wrappers
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuuichi Asahi committed Jan 7, 2025
1 parent c03d035 commit 8df33b0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion fft/src/KokkosFFT_ROCM_types.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <numeric>
#include <algorithm>
#include <complex>
#include <iostream>
#include <rocfft/rocfft.h>
#include <Kokkos_Abort.hpp>
#include "KokkosFFT_common_types.hpp"
Expand Down Expand Up @@ -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; }
};

Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 8df33b0

Please sign in to comment.