Skip to content

Commit

Permalink
Add IntelLLVM support
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderRichert-NOAA committed Aug 21, 2023
1 parent 95acd40 commit 6337a5b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/Intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ defaults:
jobs:
Intel:
runs-on: ubuntu-latest
env:
CC: icc
FC: ifort
CXX: icpc
strategy:
matrix:
compilers: ["CC=icc FC=ifort","CC=icx FC=ifx"]

steps:

Expand All @@ -51,7 +50,7 @@ jobs:
run: |
cd bacio
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=~/bacio
${{ matrix.compilers }} cmake .. -DCMAKE_INSTALL_PREFIX=~/bacio
make -j2
make install
Expand All @@ -67,14 +66,14 @@ jobs:
uses: actions/cache@v2
with:
path: ~/bufr
key: bufr-Linux_options_${{ runner.os }}-v11.7.1
key: bufr-intel-${{ matrix.compilers }}-${{ runner.os }}-v11.7.1

- name: build-bufr
if: steps.cache-bufr.outputs.cache-hit != 'true'
run: |
cd bufr
mkdir build && cd build
cmake -DCMAKE_INSTALL_PREFIX=~/bufr ..
${{ matrix.compilers }} cmake -DCMAKE_INSTALL_PREFIX=~/bufr ..
make -j2
make install
Expand All @@ -87,7 +86,7 @@ jobs:
run: |
cd w3emc
mkdir build && cd build
cmake -DOPENMP=ON -DCMAKE_PREFIX_PATH="~/bacio;~/bufr" ..
${{ matrix.compilers }} cmake -DCMAKE_PREFIX_PATH="~/bacio;~/bufr" ..
make -j2
- name: test-w3emc
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ else()
endif()

# Set compiler flags.
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel)$")
if(CMAKE_Fortran_COMPILER_ID MATCHES "^(Intel|IntelLLVM)$")
set(CMAKE_Fortran_FLAGS "-g -traceback ${CMAKE_Fortran_FLAGS}")
set(CMAKE_Fortran_FLAGS_RELEASE "-O2")
set(fortran_d_flags "-r8")
Expand Down

0 comments on commit 6337a5b

Please sign in to comment.