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 platforms #218

Merged
merged 4 commits into from
Jun 30, 2021
Merged

Update platforms #218

merged 4 commits into from
Jun 30, 2021

Conversation

koecher
Copy link
Contributor

@koecher koecher commented Jun 29, 2021

  • fedora
  • macos
  • opensuse (Leap/15)
  • ubuntu

@koecher koecher mentioned this pull request Jun 29, 2021
@koecher
Copy link
Contributor Author

koecher commented Jun 29, 2021

@tjhei can you have a look on that PR?

README.md Outdated Show resolved Hide resolved
@koecher koecher mentioned this pull request Jun 29, 2021
23 tasks
@koecher
Copy link
Contributor Author

koecher commented Jun 29, 2021

A commit for recent openSuse systems is coming soon, I need to collect my changes first.

@ghost
Copy link

ghost commented Jun 29, 2021

When using ubuntu 20.04 and intel's 11gen cores (TigerLake) it is only possible to use native compiler optimizations if the default gcc/g++ version is updated from 9 to 10. A possible way to achive this is to install the packages gcc-10 g++-10 etc. from apt and update the alternatives (see below). I think it would be helpful to add such a comment in the ubuntu20 platform file just below the comment on what packages are assumed to be installed?

Use GNU gcc g++ gfortran version 10 by default

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 20
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-9 10
sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-10 20

@tjhei
Copy link
Member

tjhei commented Jun 29, 2021

it is only possible to use native compiler optimizations if the default gcc/g++ version is updated from 9 to 10

What happens otherwise?

README.md Outdated Show resolved Hide resolved
@koecher koecher force-pushed the update-platforms branch 2 times, most recently from 4cf0884 to ff90471 Compare June 29, 2021 14:58
@koecher
Copy link
Contributor Author

koecher commented Jun 29, 2021

it is only possible to use native compiler optimizations if the default gcc/g++ version is updated from 9 to 10

What happens otherwise?

I think @gfcas told me, that then the CPU isn't recognized. As the switch NATIVE_OPTIMIZATIONS=OFF by default, I've added some additional remarks for that to the ubuntu20.platform file.

fixes typo in readme

updates readme

updates Ubuntu 20 platform notes; reorders packages; adds remark for v10 GNU Compilers

Update README.md

Co-authored-by: Timo Heister <timo.heister@gmail.com>

fixes typo
@tjhei
Copy link
Member

tjhei commented Jun 29, 2021

I see. But this is not specific to Ubuntu 20.04 but any system where the compiler is older than the hardware generation.

@ghost
Copy link

ghost commented Jun 29, 2021

it is only possible to use native compiler optimizations if the default gcc/g++ version is updated from 9 to 10

What happens otherwise?

Let me rerun the install tomorrow.

@koecher koecher merged commit c0254c4 into dealii:master Jun 30, 2021
@ghost
Copy link

ghost commented Jun 30, 2021

Sorry, forgot, that I crashed my laptop with 11gen intel and have now an older pc... If you are interested in the error message I can test it as soon as I get the new laptop?

@koecher koecher deleted the update-platforms branch June 30, 2021 14:06
@ghost ghost mentioned this pull request Jun 30, 2021
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.

2 participants