-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci: test with C++14 and treat compile warnings as errors * replace fold expressions in `extents.hpp` with macro Use the `_MDSPAN_FOLD_AND` macro to avoid using fold expressions when building for C++14. * use empty message with static assert Add an empty message to static assert in `layout_padded_fwd.hpp` to avoid use of C++17 extensions when building for C++14. * replace constexpr if in p0009 bits Replace use of constexpr if in headers used to implement p0009 in order to allow compilation for C++14 without C++17 extensions. * define precondition macro and violation handler * Make new precondition macros IMPL only * Make test for dims C++14 compatible * replace `std::is_signed_v` for C++14 compatibility * isolate precondition tests Move test cases that test preconditions with `ASSERT_DEATH` to separate test files. This allows other (non-precondition) tests to be compiled with or without preconditions. CMake test targets will enable preconditions during compilation if passed the option `ENABLE_PRECONDITIONS`. This only requires moving a single test case from `test_layout_ctors` - `test_alternate_precondition_violation_handler` and `test_macros` are test files have been written primary to test preconditions. * use MDSPAN_IMPL_PRECONDITION in layout_padded_fwd * test that precondition checks can be disabled * handle precondition error printing for multiple archs * Fix CUDA (and hopefully HIP/SYCL) compilation * Fix CUDA build and run issues * More fixes for cpp14 and warnings * Guard inclusion of layout_padded_fwd --------- Co-authored-by: Christian Trott <crtrott@sandia.gov>
- Loading branch information
Showing
15 changed files
with
446 additions
and
121 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
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.