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

Update system guides #179

Merged
merged 15 commits into from
Aug 13, 2022
Merged

Update system guides #179

merged 15 commits into from
Aug 13, 2022

Conversation

MakisH
Copy link
Member

@MakisH MakisH commented Jul 4, 2022

This mainly updates the Ubuntu version from 20.04 (focal) to 22.04 (jammy), since this is now getting popular.

It also removes the (now unsupported by Canonical) 16.04 and adds a warning next to 18.04 that it was supported till preCICE v2.3.0.

Same for the CalculiX adapter page (we provide packages for that and we have a Jammy package since today).

TODO (not in this PR if a lot of work):

  • Check Fedora 36 (I can check)
  • Check which CentOS versions we still support
  • Check OpenSUSE Leap 15.4
  • Check if we still support macOS Catalina
  • Check newer macOS versions

When checking against older versions, main things to check are the Boost version (min 1.71.0) and CMake version (min 3.16.3).

@boris-martin did I forget to update anything? If you feel like checking any of the open points, please write here, to avoid duplicate work.

@MakisH MakisH added the content Content-only issues label Jul 4, 2022
@MakisH MakisH requested a review from boris-martin July 4, 2022 21:33
@MakisH MakisH self-assigned this Jul 4, 2022
Copy link
Contributor

@boris-martin boris-martin left a comment

Choose a reason for hiding this comment

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

Current changes look good. I don't really now how to check other OSes properly but I can have a look to list pages that could require an update.

@boris-martin
Copy link
Contributor

boris-martin commented Jul 5, 2022

I made checks on OpenSUSE and managed to configure the build with MPI and PETSc disabled.
Required changes

  • Use Boost 1.75 instead of 1.66 (So in package names the 1_66 must become 1_75).
  • Numpy must be installed. I used pip install but I assume a zypper package exists too.
  • Change 15.2 into 15.4 in the title

However I couldn't get it to compile and have no idea why (it's a fresh VM and I'm quite unfamiliar with OpenSUSE)
Build successful, I just didn't give enough RAM to the VM

@MakisH
Copy link
Member Author

MakisH commented Jul 5, 2022

I made checks on OpenSUSE and managed to configure the build with MPI and PETSc disabled. Required changes

* Use Boost 1.75 instead of 1.66 (So in package names the 1_66 must become 1_75).

* Numpy must be installed. I used pip install but I assume a zypper package exists too.

* Change 15.2 into 15.4 in the title

However I couldn't get it to compile and have no idea why (it's a fresh VM and I'm quite unfamiliar with OpenSUSE) Build successful, I just didn't give enough RAM to the VM

Nice! Can you please push your changes for OpenSUSE here, as well? I guess we can remove the 15.2, then.

@boris-martin
Copy link
Contributor

I tried with the zypper package for Numpy and it didn't work, so I pushed instructions recommending pip.

@MakisH
Copy link
Member Author

MakisH commented Jul 5, 2022

I tried with the zypper package for Numpy and it didn't work, so I pushed instructions recommending pip.

Thanks! No pip install --user? We usually avoid pointing to system-wide installs for pip.
Also, no pip3?

@boris-martin
Copy link
Contributor

Right, --user should probably used. Bad practice coming from my typical usage.
For pip3, I guess so. pip alone works, but I tried on a VM with only python3 and no python2 so the risk of conflcit is low. Better safe than sorry though.

@boris-martin
Copy link
Contributor

I tested Fedora an instructions seem up to data, except that I the module command doesn't seem installed by default. Successful configuration of preCICE with MPI and PETSc disabled otherwise.
(If someone wants to debug the module issue it'd be nice, my computer seems to really hate Fedora which crashes every 5 mins on my VM)

@MakisH
Copy link
Member Author

MakisH commented Jul 5, 2022

I tested Fedora an instructions seem up to data, except that I the module command doesn't seem installed by default.

I tried on a rather new Fedora installation on my laptop. I think that you need to log out and in again before module becomes available. Can you please confirm?

Added the respective documentation.

@MakisH
Copy link
Member Author

MakisH commented Jul 5, 2022

@fsimonis on Fedora 36, CMake behaves weirdly regarding PETSc. Does this log look familiar?

precice-cmake.log

@boris-martin
Copy link
Contributor

I tested Fedora an instructions seem up to data, except that I the module command doesn't seem installed by default.

I tried on a rather new Fedora installation on my laptop. I think that you need to log out and in again before module becomes available. Can you please confirm?

Added the respective documentation.

Rebooted a couple of times and still no sign of it. I wouldn't be surprised if my Fedora installation was broken though

@fsimonis
Copy link
Member

fsimonis commented Jul 5, 2022

@MakisH looks like it can find PETSc, but cannot resolve hdf5 as a dependency.

@fsimonis
Copy link
Member

fsimonis commented Aug 8, 2022

@MakisH Just checked the Fedora 64 issue again. The PETSc detection requires installing hdf5-openmp-devel in addition to the automatically installed hdf5-openmpi.
Currently, dnf install hdf5-openmpi-devel is the solution.

All tests succeed in the docker container.

@MakisH
Copy link
Member Author

MakisH commented Aug 9, 2022

Regarding macOS:

  • @solids4foam could build and run on macOS 11.4 via homebrew (details)
  • Our CI builds and tests preCICE on macos-latest, which currently is macOS 11.6.8 (details). It installs the same packages from Homebrew.

I added a note regarding versions, asking for contributions.

@MakisH
Copy link
Member Author

MakisH commented Aug 9, 2022

Regarding CentOS, I understand that we now don't support either CentOS 7 or CentOS 8, since they both provide very old Boost packages (while we need 1.71 since preCICE v2.4.0).

I added a warning that the last supported version there was preCICE v2.3.0. I will eventually check if Rocky 9 works.

@davidscn davidscn requested a review from fsimonis August 10, 2022 09:13
@MakisH
Copy link
Member Author

MakisH commented Aug 10, 2022

Short dump of updates on Rocky 9:

With disabled PETSc, preCICE builds successfully, and all tests run.

@boris-martin
Copy link
Contributor

Just for my culture: what is the policy on what systems are worth a specific section? Is Rocky added because it's the future of CentOS?

@MakisH
Copy link
Member Author

MakisH commented Aug 10, 2022

Just for my culture: what is the policy on what systems are worth a specific section? Is Rocky added because it's the future of CentOS?

Exactly. CentOS switched to CentOS Stream, which some administrators seem to be upset about. This led to the Rocky Linux fork, which seems to be turning into a major server distribution. So, you can read this as if it was "CentOS 9".

@fsimonis fsimonis merged commit 70de344 into master Aug 13, 2022
@MakisH MakisH deleted the update-system-guides branch August 13, 2022 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content Content-only issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants