xref: /libCEED/.github/workflows/c-fortran-test-icc.yml (revision 49a40c8a2d720db341b0b117b89656b473cbebfb)
1*49a40c8aSKenneth E. Jansenname: ICX and IFX
23446d1b5SJeremy L Thompson
33446d1b5SJeremy L Thompsonon:
43446d1b5SJeremy L Thompson  push:
5dcd9f19cSJeremy L Thompson    branches:
6dcd9f19cSJeremy L Thompson      - main
7dcd9f19cSJeremy L Thompson  pull_request:
83446d1b5SJeremy L Thompson
96c00a25aSJeremy L Thompsonenv:
100983a37fSRobert Cohn  LINUX_CPP_COMPONENTS: intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
117113573bSJames Wright  LINUX_FORTRAN_COMPONENTS: intel-oneapi-compiler-fortran
126c00a25aSJeremy L Thompson
133446d1b5SJeremy L Thompsonjobs:
143446d1b5SJeremy L Thompson  test:
153446d1b5SJeremy L Thompson    strategy:
163446d1b5SJeremy L Thompson      matrix:
176c0547c1SJeremy L Thompson        os: [ubuntu-22.04]
183446d1b5SJeremy L Thompson
193446d1b5SJeremy L Thompson    runs-on: ${{ matrix.os }}
203446d1b5SJeremy L Thompson
213446d1b5SJeremy L Thompson    steps:
220adbbf50SJeremy L Thompson      - uses: actions/checkout@v3
233446d1b5SJeremy L Thompson      - name: Install Intel compilers
24*49a40c8aSKenneth E. Jansen        uses: rscohn2/setup-oneapi@v0
25*49a40c8aSKenneth E. Jansen        with:
26*49a40c8aSKenneth E. Jansen          components: |
27*49a40c8aSKenneth E. Jansen            icx
28*49a40c8aSKenneth E. Jansen            ifx
293446d1b5SJeremy L Thompson      - name: Build and test libCEED
303446d1b5SJeremy L Thompson        run: |
31*49a40c8aSKenneth E. Jansen          source /opt/intel/oneapi/setvars.sh
32*49a40c8aSKenneth E. Jansen          export CC=icx CXX=icx FC=ifx
33*49a40c8aSKenneth E. Jansen          export OPENMP=1
34*49a40c8aSKenneth E. Jansen          make -v
35*49a40c8aSKenneth E. Jansen          make info
36*49a40c8aSKenneth E. Jansen          make -j2
37*49a40c8aSKenneth E. Jansen          PROVE_OPTS=-v make prove -j2
383446d1b5SJeremy L Thompson
39