-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DFT][rocFFt] Address rocFFT failing tests #563
Changes from 1 commit
092054b
54e0cf9
691b237
a9a65ac
fe8e133
aed1f63
e84a5b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
Removing rocFFT version check during configurations. Update checks on dft command for rocFFT version with known issue.
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -266,15 +266,9 @@ class rocfft_commit final : public dft::detail::commit_impl<prec, dom> { | |
// Link to rocFFT issue: https://github.com/ROCm/rocFFT/issues/507 | ||
if constexpr (rocfft_version_major == 1 && rocfft_version_minor == 0 && | ||
(rocfft_version_patch > 22 && rocfft_version_patch < 31)) { | ||
if (dom == dft::domain::COMPLEX && dimensions > 2) { | ||
auto stride_checker = [&](const auto& a, const auto& b) { | ||
for (ulong i = 0; i < dimensions; ++i) { | ||
if (a[i] != b[i]) | ||
return false; | ||
} | ||
return true; | ||
}; | ||
if (!stride_checker(stride_vecs.vec_a, stride_vecs.vec_b)) | ||
if (dom == dft::domain::COMPLEX && | ||
config_values.placement == dft::config_value::NOT_INPLACE && dimensions > 2) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we certain this is limited to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thank you for your review @raphael-egan Skipping test because: "oneMKL: DFT/commit: function is not implemented rocfft requires a stride to be divisible by all dimensions associated with smaller strides!" If a configuration that respect inputs requirement is provided, tests are passed. Similar configurations are already in the test suite, so I don't think adding this test is a priority. For 1D there isn't a test that reproduces what you suggested. I added it to check. It is computed correctly with the input above, although the Therefore, I wouldn't change the if-statement condition There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that the exception is thrown by this project and not by rocFFT itself, I would recommend to add a comment like Unless an explicit mention of that as a known limitation is found in rocFFT's documentation/release notes (I could not find any), it looks to me that the check triggering this exception to be thrown is present here to ensure consistency of subsequent stride-related implementation steps (sorting operations, in particular). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree, added comment in e84a5b2 |
||
if (stride_vecs.vec_a != stride_vecs.vec_b) | ||
throw oneapi::mkl::unimplemented( | ||
"DFT", func, | ||
"due to a bug in rocfft version in use, it requires fwd and bwd stride to be the same for COMPLEX out_of_place computations"); | ||
Rbiessy marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This if-statement could be converted to
#if
directive. I preferred to use this style instead, but I am open to change it