Skip to content

Commit

Permalink
CI: Bye Bye ICC (#409)
Browse files Browse the repository at this point in the history
Goodbye classic ICC/ICPC. Hello ICX/ICPX.

See AMReX-Codes/amrex#4303
  • Loading branch information
ax3l authored Jan 29, 2025
1 parent bd57c00 commit ed9ed53
Showing 1 changed file with 0 additions and 63 deletions.
63 changes: 0 additions & 63 deletions .github/workflows/intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,66 +108,3 @@ jobs:
set -e
cd build
ctest --output-on-failure
# "Classic" EDG Intel Compiler
# Ref.: https://github.com/rscohn2/oneapi-ci
# intel-basekit intel-hpckit are too large in size
tests-icc:
name: ICC
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: install dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -qqq update
sudo apt-get install -y wget build-essential pkg-config cmake ca-certificates gnupg
sudo wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic intel-oneapi-compiler-fortran intel-oneapi-mpi-devel
.github/workflows/dependencies/dependencies_ccache.sh
- name: Set Up Cache
uses: actions/cache@v4
with:
path: ~/.cache/ccache
key: ccache-${{ github.workflow }}-${{ github.job }}-git-${{ github.sha }}
restore-keys: |
ccache-${{ github.workflow }}-${{ github.job }}-git-
- name: build
env: {CXXFLAGS: "-Werror"}
run: |
set +e
source /opt/intel/oneapi/setvars.sh
set -e
export CCACHE_COMPRESS=1
export CCACHE_COMPRESSLEVEL=10
export CCACHE_MAXSIZE=600M
ccache -z
export CXX=$(which icpc)
export CC=$(which icc)
python3 -m pip install -U pip importlib_metadata launchpadlib setuptools wheel
python3 -m pip install -U cmake
python3 -m pip install -U pytest mpi4py
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DBUILD_SHARED_LIBS=ON \
-DAMReX_MPI=ON \
-DAMReX_SPACEDIM="1;2;3"
cmake --build build --target pip_install -j 2
ccache -s
du -hs ~/.cache/ccache
- name: Run tests
run: |
set +e
source /opt/intel/oneapi/setvars.sh
set -e
cd build
ctest --output-on-failure

0 comments on commit ed9ed53

Please sign in to comment.