Skip to content

Commit

Permalink
Merge branch 'no-Intel-classic' into 'development'
Browse files Browse the repository at this point in the history
icc does not exist anymore

See merge request damask/DAMASK!849
  • Loading branch information
MarDiehl committed Nov 20, 2023
2 parents 56ae726 + 5d6fcd4 commit b63dd75
Showing 1 changed file with 3 additions and 31 deletions.
34 changes: 3 additions & 31 deletions .github/workflows/Fortran.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,8 @@ jobs:
runs-on: [ubuntu-22.04]

strategy:
matrix:
intel_v: [classic, llvm] # Variant of Intel compilers
fail-fast: false

env:
INTEL_V: ${{ matrix.intel_v }}

steps:
- uses: actions/checkout@v3

Expand Down Expand Up @@ -133,29 +128,17 @@ jobs:
sed -i "1719s/if not os.path.isfile(os.path.join(self.packageDir,'configure')):/if True:/g" \
./petsc-${PETSC_VERSION}/config/BuildSystem/config/package.py
export PETSC_DIR=${PWD}/petsc-${PETSC_VERSION}
export PETSC_ARCH=intel-${INTEL_V}
export PETSC_ARCH=intel
printenv >> $GITHUB_ENV
- name: PETSc - Cache installation
id: petsc-install
uses: actions/cache@v3
with:
path: petsc-${{ env.PETSC_VERSION }}
key: petsc-${{ env.PETSC_VERSION }}-intel-${{ matrix.intel_v }}-${{ hashFiles('**/petscversion.h') }}

- name: PETSc - Install (classic)
if: contains( matrix.intel_v, 'classic')
run: |
cd petsc-${PETSC_VERSION}
./configure \
--with-fc='mpiifort -fc=ifort -diag-disable=10441' \
--with-cc='mpiicc -cc=icc -diag-disable=10441' \
--with-cxx='mpiicpc -cxx=icpc -diag-disable=10441' \
--download-fftw --download-hdf5 --download-hdf5-fortran-bindings=1 --download-zlib
make all
key: petsc-${{ env.PETSC_VERSION }}-intel-${{ hashFiles('**/petscversion.h') }}

- name: PETSc - Install (LLVM)
if: contains( matrix.intel_v, 'llvm')
- name: PETSc - Install
run: |
cd petsc-${PETSC_VERSION}
./configure \
Expand All @@ -165,20 +148,9 @@ jobs:
--download-fftw --download-hdf5 --download-hdf5-fortran-bindings=1 --download-zlib
make all
- name: DAMASK - Compile
if: contains( matrix.intel_v, 'classic')
run: |
cmake -B build/grid -DDAMASK_SOLVER=grid -DCMAKE_INSTALL_PREFIX=${PWD}
cmake --build build/grid --parallel
cmake --install build/grid
cmake -B build/mesh -DDAMASK_SOLVER=mesh -DCMAKE_INSTALL_PREFIX=${PWD}
cmake --build build/mesh --parallel
cmake --install build/mesh
# ifx has issue with openMP
# https://community.intel.com/t5/Intel-Fortran-Compiler/ifx-ICE-and-SEGFAULT/m-p/1459877
- name: DAMASK - Compile
if: contains( matrix.intel_v, 'llvm')
run: |
cmake -B build/grid -DDAMASK_SOLVER=grid -DCMAKE_INSTALL_PREFIX=${PWD} -DOPENMP=OFF
cmake --build build/grid --parallel
Expand Down

0 comments on commit b63dd75

Please sign in to comment.