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

CI: Switch intel build to ifx #183

Merged
merged 9 commits into from
Oct 26, 2024
Merged

CI: Switch intel build to ifx #183

merged 9 commits into from
Oct 26, 2024

Conversation

danielhollas
Copy link
Contributor

@danielhollas danielhollas commented Oct 24, 2024

Partially addresses #176

Instead of testing with the old intel compiled (ifort) let's test with the new LLVM-based ifx.

  • other random minor cleanups

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.83%. Comparing base (0a5d9f3) to head (f089dff).
Report is 2 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #183   +/-   ##
=======================================
  Coverage   92.83%   92.83%           
=======================================
  Files          47       47           
  Lines        6785     6785           
  Branches      762      762           
=======================================
  Hits         6299     6299           
  Misses        474      474           
  Partials       12       12           
Flag Coverage Δ
unittests 21.86% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@danielhollas danielhollas changed the title CI: Switch to testing with ifx CI: Switch intel build to ifx Oct 24, 2024
@@ -88,7 +89,6 @@ jobs:
path: ~/pfunit/build/installed
# To force a pFUnit rebuild (bust the cache), make a change to install_pfunit.sh
key: ${{ runner.os }}-ubuntu20.04-pfunit-gfortran${{ env.GCC_V }}-${{ hashFiles('dev_scripts/install_pfunit.sh') }}
save-always: true
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This option is deprecated (and is likely not working as intented anyway)

runs-on: ubuntu-22.04
needs: basic_build
strategy:
fail-fast: false
matrix:
gcc_v: [9, 11, 12]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Let's have one less build. The optimized builds never caught any issues. At some point I'll switch to just having a one of these.

@@ -0,0 +1 @@
12
Copy link
Contributor Author

@danielhollas danielhollas Oct 24, 2024

Choose a reason for hiding this comment

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

There are some numerical differences in the ifx build in the restart files for this test, so we decrease required numerical accuracy to 1e-12. The NUM_THRE file is read in the tests/numdiff.py script.

@@ -27,7 +27,7 @@ namespace {

// two body parameters
const double reoh = 0.958649;
const double thetae = 104.3475;
// const double thetae = 104.3475;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got a compiler warning that this param is not used.

sudo apt-get install ${{ env.APT_PACKAGES }}
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
- uses: fortran-lang/setup-fortran@v1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For now I haven't switched the gfortran builds to this GH action since it does not support gfortran v7.

@JanosJiri Are some Prague clusters still on gcc-7?

Copy link
Contributor

Choose a reason for hiding this comment

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

Prague cluster status:
Krypton: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
Neon: gcc version 4.7.2 (Debian 4.7.2-5)
Argon: gcc version 4.4.5 (Debian 4.4.5-8)

Argon is almost dead, Neon is still used but Polách...

Copy link
Contributor

@JanosJiri JanosJiri left a comment

Choose a reason for hiding this comment

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

Looks good!

sudo apt-get install ${{ env.APT_PACKAGES }}
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
- uses: fortran-lang/setup-fortran@v1
Copy link
Contributor

Choose a reason for hiding this comment

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

Prague cluster status:
Krypton: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
Neon: gcc version 4.7.2 (Debian 4.7.2-5)
Argon: gcc version 4.4.5 (Debian 4.4.5-8)

Argon is almost dead, Neon is still used but Polách...

@danielhollas danielhollas merged commit 7ab1dd6 into master Oct 26, 2024
18 checks passed
@danielhollas danielhollas deleted the ci-setup-fortran branch October 26, 2024 22:14
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