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 CI to use Intel LLVM #28

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 24 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ jobs:
run: |
${FC} --version
cmake --version

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -54,32 +55,25 @@ jobs:
- name: Set all directories as git safe
run: |
git config --global --add safe.directory '*'

- name: Cache MPI
id: cache-mpi
uses: actions/cache@v3
with:
path: ~/local/openmpi
key: mpi-${{ runner.os }}-${{ matrix.os }}-${{ matrix.compiler }}

# For some reason the GitHub Actions macOS image seems to have triggered
# a 7-year old bug: https://github.com/Homebrew/legacy-homebrew/issues/19046
# For now we only fix if MPI isn't cached already as it only seems important
# for OpenMPI

- name: Fix gmp and mpfr on macOS if MPI isn't cached
if: steps.cache-mpi.outputs.cache-hit != 'true' && matrix.os == 'macos-10.15'
run: |
brew reinstall --build-from-source gmp mpfr

- name: Build MPI
if: steps.cache-mpi.outputs.cache-hit != 'true'
run: |
sh ${GITHUB_WORKSPACE}/tools/ci-install-mpi.sh openmpi 4.1.4

- name: Set MPI Environment
run: |
echo "${HOME}/local/openmpi/bin" >> $GITHUB_PATH
echo "LD_LIBRARY_PATH=${HOME}/local/openmpi/lib" >> $GITHUB_ENV
echo "DYLD_LIBRARY_PATH=${HOME}/local/openmpi/lib" >> $GITHUB_ENV

- name: MPI Versions
run: |
${FC} --version
Expand All @@ -98,7 +92,7 @@ jobs:
cd build
make -j$(nproc 2>/dev/null || sysctl -n hw.logicalcpu) tests
- name: Archive log files on failure
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: logfiles
Expand All @@ -109,7 +103,7 @@ jobs:
runs-on: ubuntu-latest

env:
FC: ifort
FC: ifx
CC: icx

name: Intel Fortran
Expand All @@ -119,17 +113,29 @@ jobs:
with:
fetch-depth: 1
submodules: true
- name: Install Intel compilers

- name: Setup Intel oneAPI repository
run: |
cd /tmp
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt install --no-install-recommends intel-oneapi-compiler-fortran intel-oneapi-mpi \
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-mpi-devel
sudo apt-get update

- name: Install Intel oneAPI compilers
timeout-minutes: 5
run: sudo apt-get install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp

# optional
- name: Install Intel MPI
timeout-minutes: 5
run: sudo apt-get install intel-oneapi-mpi intel-oneapi-mpi-devel

- name: Setup Intel oneAPI environment
run: |
source /opt/intel/oneapi/setvars.sh
printenv >> $GITHUB_ENV
printenv | grep intel

- name: Versions
run: |
${FC} --version
Expand All @@ -148,7 +154,7 @@ jobs:
cd build
make -j$(nproc 2>/dev/null || sysctl -n hw.logicalcpu) tests
- name: Archive log files on failure
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: logfiles
Expand Down
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed

- Update CI to use Intel LLVM

## [1.12.0] - 2023-11-29

### Changed

- Updated submodules for all repos. (See README)

## [1.11.0] - 2023-07-21
Expand Down
Loading