Skip to content

Commit

Permalink
Raphael suggested improvement to stride validity check
Browse files Browse the repository at this point in the history
  • Loading branch information
hjabird committed Aug 9, 2024
1 parent 128ef68 commit 529521c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dft/backends/rocfft/commit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ class rocfft_commit final : public dft::detail::commit_impl<prec, dom> {
auto& domain_lengths) {
return dimensions == 1 ||
(domain_lengths[sindices[0]] <= svec[sindices[1]] &&
(dimensions == 2 || domain_lengths[sindices[0]] * domain_lengths[sindices[1]] <=
svec[sindices[2]]));
(dimensions == 2 ||
svec[sindices[1]] * domain_lengths[sindices[1]] <= svec[sindices[2]]));
};

const bool vec_a_valid_as_fwd_domain =
Expand Down

0 comments on commit 529521c

Please sign in to comment.