File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -74,11 +74,12 @@ struct wg_factorization {
7474 * @return a factorization for workgroup dft or null if the size won't work with the implemenation of workgroup dfts.
7575 */
7676template <typename Scalar>
77- inline std::optional<wg_factorization> factorize_for_wg (IdxGlobal fft_size, Idx subgroup_size) {
77+ std::optional<wg_factorization> factorize_for_wg (IdxGlobal fft_size, Idx subgroup_size) {
7878 IdxGlobal n_idx_global = detail::factorize (fft_size);
7979 if (n_idx_global == 1 ) {
80- throw unsupported_configuration ( " FFT size " , fft_size, " : Large Prime sized FFT currently is unsupported " ) ;
80+ return std:: nullopt ;
8181 }
82+
8283 IdxGlobal m_idx_global = fft_size / n_idx_global;
8384 if (detail::can_cast_safely<IdxGlobal, Idx>(n_idx_global) && detail::can_cast_safely<IdxGlobal, Idx>(m_idx_global)) {
8485 Idx n = static_cast <Idx>(n_idx_global);
You can’t perform that action at this time.
0 commit comments