Skip to content
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

Outerloop suggestions #2495

Merged
merged 87 commits into from
May 17, 2022
Merged

Conversation

ZedThree
Copy link
Member

There's one breaking change in here: CMake will now look for HYPRE_ROOT instead of HYPRE_DIR/HYPRE_SEARCH_DIR, as *_ROOT is more idiomatic (and more importantly, built-in) CMake.
That probably means some of the config scripts will need updating.

This fixes various of @johnomotani, mine, and clang-tidy's comments on #2397, and manages to shave a few hundred lines off the PR.

There's still a few things I've not fixed. The hypre interface still uses malloc and I would very much like to get rid of that if possible. next needs to be merged in and conflicts fixed.

@ZedThree
Copy link
Member Author

Hmm, merging in next brings in a black formatting commit, so the merge commit has [skip ci] in it, and I can't see how to trigger the CI manually

@ZedThree
Copy link
Member Author

I've reverted the next merge, as it was too much noise, and we can do that directly in #2397

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clang-tidy made some suggestions

@ZedThree
Copy link
Member Author

I think RTD is failing due to something we've fixed in next

ZedThree and others added 20 commits March 1, 2022 09:43
use git submodule for cloning on RTD
Co-authored-by: Peter Hill <peter.hill@york.ac.uk>
older version not tested, but should still work
I have newer python versions installed for testing, but they dont have all
the libraries installed, thus bout++ always fails. If a new enough cmake is
present we should find the one that appears first in PATH, rather then the
most recent one. It is easy to change PATH to ensure the correct python is found.
ensure zoidberg is installed for documentation
Check the bout++Config.cmake file is working
Adds a header for common backports shared between the different
SUNDIALS solvers such that the main code only needs to differentiate
between SUNDIALS pre/post 3.0.0
Various fixes and updates for CI
Add backports and shims for SUNDIALS 6
* next: (27 commits)
  Also avoid warning from CMP0127
  ensure zoidberg is installed for documentation
  Using python based on version is a pain.
  Add comments
  Update filename for cmake
  Ensure all files get formatted
  Add bout++Config.cmake check to CI
  Fix NLS detection
  use git submodule for cloning on RTD
  CI: Cancel previous workflows on same branch
  CI: Apply clang-format changes immediately
  CI: Only run clang-tidy on changes to C++ files
  CI: Turn off Python for clang-tidy
  CI: Better fix for clang-format?
  CI: Fix clang-tidy-review version
  CI: Fix for actions/checkout not fetching other branches
  CI: Tweak some build names
  CI: Make CMake build use release flags
  CI: Remove unneeded HDF5 flag from build
  CI: Remove OpenMP build
  ...
@@ -1,8 +1,8 @@
cmake_minimum_required(VERSION 3.13...3.16)
if(${CMAKE_VERSION} VERSION_LESS 3.13)
cmake_minimum_required(VERSION 3.17...3.20)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The clang-tidy-review CI has only cmake 3.16 - so that workflow needs to be adapted.

bendudson and others added 7 commits May 16, 2022 16:58
Outerloop suggestions - resolve merge conflicts
Previously nvcc would fail claiming that symbols were
defined multiple times. Now needs these symbols to be
defined or linker errors result.
HYPRE_SOLVER_TYPE can't be directly formatted with nvcc compiler,
but needs to be first converted to a string.
@bendudson bendudson merged commit 08f25c6 into next-hypre-outerloop-cuda-merged May 17, 2022
@bendudson bendudson deleted the outerloop-suggestions branch May 17, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants