[DFT] Rearrange DFT compute tests so unimplemented always skips#311
[DFT] Rearrange DFT compute tests so unimplemented always skips#311FMarno merged 2 commits intouxlfoundation:developfrom
Conversation
hjabird
left a comment
There was a problem hiding this comment.
The code itself looks good, but I don't understand the need to move from return test_skipped to GTEST_SKIP.
The original use of test_skipped seems more consistent with the tests from the other backends (eg. here). Can you comment on why GTEST_SKIP is needed in something that seems otherwise functionally equivalent?
|
|
mklgpu_run.log |
|
Do you also think you can move if constexpr (domain == oneapi::mkl::dft::domain::REAL) {
std::cout << "skipping real split tests as they are not supported" << std::endl;
return test_skipped;
}this bit from the real_real test and skip the REAL domain from the |
|
Please attach the CPU logs as well |
I would rather save that for a separate PR, I need to convince myself that its impossible for that to be implemented. Also I see it as a separate issue. |
mklcpu_run.log |
|
this time around the logs have this : but previously the behavior was to show these as passed but in the full logs (sample is from running old LastTest.log: what attributes this change in behavior ? |
|
The test log is from a run of ctest. the example you gave will have come from directly running |
|
@anantsrivastava30 are you satisfied with this answer? Is there anything you would like clarified/changed for this to be approved? |
I updated my initial question to indicate that I am running tests using I however do not see that as a huge concern and every thing else looks good. |
|
@anantsrivastava30 Thanks for clarifying. Unfortunately I don't see the same behaviour on develop (sha 4c7e7eb). I always see 977 tests running with the real to complex "real_real" tests being skipped. |
* [DFT] Rearrange DFT compute tests so unimplemented always skips (#311) * rearrange tests so unimplemented always skips * wait to wait_and_throw, detect skipped tests * Initial cuFFT integration Currently only has support for inplace complex-to-complex single precision transforms * throw from host task directly * remove detail namespace where possible * format * update after rebase * style change * Implemented all cufft execution functions * Increase the relative error margin so cufft backend passes tests * Fix swapped input and output strides * fix compile-time tests for cufft * fix macro typo * fix non cuda build and increase test accuracy error margin * update README * format with clang-format-10 * enable recommit in cuda backend * change cuda context after call to cufftDestroy * update dft example cmake * update example readme * typo in ENABLE_CUFFT_BACKEND description * Update help text for the various backends * use the correct copyright headers * Fix cmake comment * fix binary name in example * Add an exception for when the user tries to scale with cufft * fix warnings * removed forward_scale in runtime example for cufft * avoid creating plans with invalid strides
…oundation#311) * rearrange tests so unimplemented always skips * wait to wait_and_throw, detect skipped tests
…on#284) * [DFT] Rearrange DFT compute tests so unimplemented always skips (uxlfoundation#311) * rearrange tests so unimplemented always skips * wait to wait_and_throw, detect skipped tests * Initial cuFFT integration Currently only has support for inplace complex-to-complex single precision transforms * throw from host task directly * remove detail namespace where possible * format * update after rebase * style change * Implemented all cufft execution functions * Increase the relative error margin so cufft backend passes tests * Fix swapped input and output strides * fix compile-time tests for cufft * fix macro typo * fix non cuda build and increase test accuracy error margin * update README * format with clang-format-10 * enable recommit in cuda backend * change cuda context after call to cufftDestroy * update dft example cmake * update example readme * typo in ENABLE_CUFFT_BACKEND description * Update help text for the various backends * use the correct copyright headers * Fix cmake comment * fix binary name in example * Add an exception for when the user tries to scale with cufft * fix warnings * removed forward_scale in runtime example for cufft * avoid creating plans with invalid strides
Description
Since #288, MKLGPU now fails the REAL_REAL tests because the descriptor commit throws (due to not supporting REAL_REAL for COMPLEX_STORAGE). I've rearranged the tests so they always skip when something is not implemented.
To reproduce run the tests with the MKLGPU backend. The complex-to-complex
*real_real*test will fail.Fixes # (GitHub issue)
Checklist
All Submissions
Bug fixes
GitHub issue or in this PR)?