-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RAII issue by introducing wrapper classes for backend plans (#208)
* fix: conflicts * Fix and wrapper for FFTW handle * Wrapper for cufft handle * fix: conflicts * Wrapper for rocfft handle * fix: conflicts * Cleanup plan class based on the introduction of wrappers * fix: conflicts * fix: conflicts * fix: unused variable * fix: work buffer allocation * remove unused variable * remove unused lines * Add missing include header file in KokkosFFT_ROCM_types.hpp * fix: fftwHandle type in SYCL types * Do not return const plan type for fftw * fix: remove const * fix: fftw plan creation * fix: set created * fix: cleanup * fix constructor of fftw wrapper * fix: conflicts * Remove non-default constructors from FFTW wrapper * Remove non-default constructors from cufft wrapper * Remove non-default constructors from hipfft wrapper * Remove non-default constructors from rocfft wrapper * update FFTW wrapper class name * fix: host plan type * fix: fftw rapper name in ROCM_types * update cuda backed based on reviews * update hip backend based on reviews * update rocm backend based on reviews * update host backend based on revies * fix: Rocm types * fix: ROCM types * fix: Rocm types * fix: header files * fix: rocm types * fix: rocm types * remove unused lines * fix: rocm types * Improve the cleanup logic for cufft plan * Improve the cleanup logic for hipfft plan * Improve the cleanup logic for rocfft plan * simplify fftw plan wrapper * fix: rocm types * fix: scoped rocfft plan type * return execution_info by value in scoped rocfft plan * Add commit method to scoped cufft plan * Add commit method to scoped hipfft plan * Add commit method to scoped rocfft plan * Add const qualifer for host transforms * fix: ROCM types * fix cleanup of ScopedCufft and ScopedHIPfft plan * Add ScopedExecutionInfo for rocm backend * fix KokkosFFT_ROCM_types.hpp * fix: KokkosFFT_ROCM_types.hpp * make commit method const * call fftw_cleanup_threads only once * remove static from init and cleanup methods * use local static object for global initialization and finalization * remove cleanup threads for safety * remove unused header from KokkosFFT_FFTW_Types.hpp * delete non-default constructors for Rocfft wrappers * fix: KokkosFFT_ROCM_types.hpp * Add Thomas as a co-author Co-authored-by: Yuuichi Asahi <[email protected]> Co-authored-by: Thomas Padioleau <[email protected]> --------- Co-authored-by: Yuuichi Asahi <[email protected]> Co-authored-by: Thomas Padioleau <[email protected]>
- Loading branch information
1 parent
95bd3b3
commit b4b272a
Showing
16 changed files
with
726 additions
and
651 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.