Skip to content

Commit

Permalink
Additional changes in all CI for ifx
Browse files Browse the repository at this point in the history
  • Loading branch information
loganoz committed Nov 21, 2024
1 parent 696aca9 commit f81fb4c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 36 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/CI_parallel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: ['gfortran','ifort']
compiler: ['gfortran','ifx']
mode: ['RELEASE','DEBUG']
comm: ['PARALLEL']
enable_threads: ['NO']

env:
METIS_HOME: /home/runner/work/horses3d/horses3d/metis-5.1.0/build/Linux-x86_64
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2024.1
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2025.0
# Steps represent a sequence of tasks that will be executed as part of the job

steps:
Expand All @@ -46,18 +46,18 @@ jobs:
run: |
sudo apt-get install openmpi-bin libopenmpi-dev
# IF COMPILER = IFORT -> INSTALL IFORT #
# UNCOMMENT TO USE CACHED IFORT
# IF COMPILER = ifx -> INSTALL ifx #
# UNCOMMENT TO USE CACHED ifx
#- name: cache-intel-compilers
# if: (matrix.compiler == 'ifort')
# if: (matrix.compiler == 'ifx')
# id: cache-intel-compilers
# uses: actions/cache@v3
# with:
# path: /opt/intel
# key: intel-${{ runner.os }}-compilers-b

- name: Intel Apt repository
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
Expand All @@ -66,7 +66,7 @@ jobs:
sudo apt-get update
- name: Install Intel oneAPI
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: sudo apt-get install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mpi intel-oneapi-mpi-devel intel-oneapi-mkl-devel ninja-build

Expand All @@ -80,7 +80,7 @@ jobs:
- name: Install METIS (intel)
# if: (steps.cache-metis.outputs.cache-hit != 'true')
# wget "http://glaros.dtc.umn.edu/gkhome/fetch/sw/metis/metis-5.1.0.tar.gz" (OLD LINK TO METIS)
if: (matrix.compiler == 'ifort')
if: (matrix.compiler == 'ifx')
run: |
source /opt/intel/oneapi/setvars.sh || true
wget "https://src.fedoraproject.org/lookaside/pkgs/metis/metis-5.1.0.tar.gz/5465e67079419a69e0116de24fce58fe/metis-5.1.0.tar.gz"
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/CI_sequential 1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: ['gfortran','ifort']
compiler: ['gfortran','ifx']
mode: ['RELEASE', 'DEBUG']
comm: ['SEQUENTIAL']
enable_threads: ['YES']
mkl: ['YES','NO']
exclude:
- compiler: gfortran
mkl: 'YES'
- compiler: ifort
- compiler: ifx
mkl: 'NO'
env:
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2024.1
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2025.0

# Steps represent a sequence of tasks that will be executed as part of the job

Expand All @@ -53,10 +53,10 @@ jobs:
# sudo apt install libhdf5-dev
# dpkg -L libhdf5-dev

# IF COMPILER = IFORT -> INSTALL IFORT #
# UNCOMMENT TO USE CACHED IFORT
# IF COMPILER = ifx -> INSTALL ifx #
# UNCOMMENT TO USE CACHED ifx
#- name: cache-intel-compilers
# if: (matrix.compiler == 'ifort')
# if: (matrix.compiler == 'ifx')
# id: cache-intel-compilers
# uses: actions/cache@v3
# with:
Expand All @@ -65,7 +65,7 @@ jobs:


- name: Intel Apt repository
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
Expand All @@ -74,7 +74,7 @@ jobs:
sudo apt-get update
- name: Install Intel oneAPI
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: sudo apt-get install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mpi intel-oneapi-mpi-devel intel-oneapi-mkl-devel ninja-build
# Runs a single command using the runners shell
Expand Down
24 changes: 12 additions & 12 deletions .github/workflows/CI_sequential 3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: ['gfortran','ifort']
compiler: ['gfortran','ifx']
mode: ['RELEASE', 'DEBUG']
comm: ['SEQUENTIAL']
enable_threads: ['YES']
mkl: ['YES','NO']
exclude:
- compiler: gfortran
mkl: 'YES'
- compiler: ifort
- compiler: ifx
mkl: 'NO'
env:
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2024.1
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2025.0
# Steps represent a sequence of tasks that will be executed as part of the job

steps:
Expand All @@ -52,10 +52,10 @@ jobs:
# sudo apt install libhdf5-dev
# dpkg -L libhdf5-dev

# IF COMPILER = IFORT -> INSTALL IFORT #
# UNCOMMENT TO USE CACHED IFORT
# IF COMPILER = ifx -> INSTALL ifx #
# UNCOMMENT TO USE CACHED ifx
#- name: cache-intel-compilers
# if: (matrix.compiler == 'ifort')
# if: (matrix.compiler == 'ifx')
# id: cache-intel-compilers
# uses: actions/cache@v3
# with:
Expand All @@ -64,7 +64,7 @@ jobs:


- name: Intel Apt repository
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
Expand All @@ -73,7 +73,7 @@ jobs:
sudo apt-get update
- name: Install Intel oneAPI
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: sudo apt-get install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mpi intel-oneapi-mpi-devel intel-oneapi-mkl-devel ninja-build
# Runs a single command using the runners shell
Expand Down Expand Up @@ -183,14 +183,14 @@ jobs:
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: ('!cancelled()' && matrix.compiler == 'ifort')
if: ('!cancelled()' && matrix.compiler == 'ifx')

- name: Run MultiphaseConvergence
working-directory: ./Solver/test/Multiphase/Convergence
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.mu Convergence.control
if: ('!cancelled()' && matrix.compiler == 'ifort')
if: ('!cancelled()' && matrix.compiler == 'ifx')

#
# 2) RisingBubble
Expand All @@ -202,14 +202,14 @@ jobs:
run: |
source /opt/intel/oneapi/setvars.sh || true
make MODE=${{matrix.mode}} COMPILER=${{matrix.compiler}} COMM=${{matrix.comm}} ENABLE_THREADS=${{matrix.enable_threads}} WITH_MKL=${{matrix.mkl}}
if: ('!cancelled()' && matrix.compiler == 'ifort')
if: ('!cancelled()' && matrix.compiler == 'ifx')

- name: Run MultiphaseRisingBubble
working-directory: ./Solver/test/Multiphase/RisingBubble
run: |
source /opt/intel/oneapi/setvars.sh || true
./horses3d.mu RisingBubble.control
if: ('!cancelled()' && matrix.compiler == 'ifort')
if: ('!cancelled()' && matrix.compiler == 'ifx')

#
# 3) Pipe
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/CI_sequential 4.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@ jobs:
strategy:
fail-fast: false
matrix:
compiler: ['gfortran','ifort']
compiler: ['gfortran','ifx']
mode: ['RELEASE', 'DEBUG']
comm: ['SEQUENTIAL']
enable_threads: ['YES']
mkl: ['YES','NO']
exclude:
- compiler: gfortran
mkl: 'YES'
- compiler: ifort
- compiler: ifx
mkl: 'NO'
env:
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2024.1
INTEL_COMPILER_DIR : /opt/intel/oneapi/compiler/2025.0
# Steps represent a sequence of tasks that will be executed as part of the job

steps:
Expand All @@ -52,10 +52,10 @@ jobs:
# sudo apt install libhdf5-dev
# dpkg -L libhdf5-dev

# IF COMPILER = IFORT -> INSTALL IFORT #
# UNCOMMENT TO USE CACHED IFORT
# IF COMPILER = ifx -> INSTALL ifx #
# UNCOMMENT TO USE CACHED ifx
#- name: cache-intel-compilers
# if: (matrix.compiler == 'ifort')
# if: (matrix.compiler == 'ifx')
# id: cache-intel-compilers
# uses: actions/cache@v3
# with:
Expand All @@ -64,7 +64,7 @@ jobs:


- name: Intel Apt repository
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: |
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB
Expand All @@ -73,7 +73,7 @@ jobs:
sudo apt-get update
- name: Install Intel oneAPI
# UNCOMMENT TO USE CACHED IFORT
# UNCOMMENT TO USE CACHED ifx
# if: (steps.cache-intel-compilers.outputs.cache-hit != 'true')
run: sudo apt-get install intel-oneapi-compiler-fortran intel-oneapi-compiler-dpcpp-cpp intel-oneapi-mpi intel-oneapi-mpi-devel intel-oneapi-mkl-devel ninja-build
# Runs a single command using the runners shell
Expand Down

0 comments on commit f81fb4c

Please sign in to comment.