-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from dareg/intel_ci
add continous integration with the last intel compilers
- Loading branch information
Showing
3 changed files
with
184 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/fieldapi_tests.yml → .github/workflows/fieldapi_gnu.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: FieldAPI_Tests | ||
name: FieldAPI_GNU | ||
|
||
on: [push, pull_request] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: FieldAPI_intel_classic | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
CI: | ||
name: CI | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false # try to complete all jobs | ||
|
||
matrix: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
build_type: [RelWithDebInfo] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Intel Apt repository | ||
run: | | ||
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main" | ||
- name: Install Intel oneAPI | ||
run: | | ||
sudo apt update | ||
sudo apt install \ | ||
intel-oneapi-compiler-fortran-2023.2.0 \ | ||
intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic-2023.2.0 \ | ||
intel-oneapi-mpi-devel-2021.10.0 \ | ||
intel-oneapi-mkl-2023.2.0 | ||
- name: Setup Intel oneAPI environment | ||
run: | | ||
source /opt/intel/oneapi/setvars.sh | ||
printenv >> $GITHUB_ENV | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax | ||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | ||
|
||
- name: Install up-to-date CMake | ||
run: pip install cmake | ||
|
||
- name: Clone ecbuild | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ecmwf/ecbuild | ||
path: ecbuild | ||
ref: develop | ||
|
||
- name: Clone fiat | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ecmwf-ifs/fiat | ||
path: fiat | ||
ref: develop | ||
|
||
- name: Build fiat | ||
env: | ||
ecbuild_ROOT: ${{github.workspace}}/ecbuild/bin | ||
working-directory: ${{github.workspace}}/fiat | ||
run: | | ||
cmake -B ${{github.workspace}}/fiat/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc -DCMAKE_Fortran_COMPILER=ifort | ||
cmake --build ${{github.workspace}}/fiat/build -- -j | ||
- name: Configure field_api | ||
env: | ||
ecbuild_ROOT: ${{github.workspace}}/ecbuild/bin | ||
fiat_ROOT: ${{github.workspace}}/fiat/build | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: | | ||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DENABLE_ACC=OFF -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc -DCMAKE_Fortran_COMPILER=ifort | ||
- name: Build field_api | ||
# Build your program | ||
run: cmake --build ${{github.workspace}}/build -- -j | ||
|
||
- name: Test field_api | ||
env: | ||
DEV_ALLOC_SIZE: 1000000 | ||
working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
run: ctest --output-on-failure | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: FieldAPI_intel_modern | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
CI: | ||
name: CI | ||
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac. | ||
# You can convert this to a matrix build if you need cross-platform coverage. | ||
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false # try to complete all jobs | ||
|
||
matrix: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
build_type: [RelWithDebInfo] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Intel Apt repository | ||
run: | | ||
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | ||
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main" | ||
- name: Install Intel oneAPI | ||
run: | | ||
sudo apt update | ||
sudo apt install intel-hpckit | ||
- name: Setup Intel oneAPI environment | ||
run: | | ||
source /opt/intel/oneapi/setvars.sh | ||
printenv >> $GITHUB_ENV | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax | ||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | ||
|
||
- name: Install up-to-date CMake | ||
run: pip install cmake | ||
|
||
- name: Clone ecbuild | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ecmwf/ecbuild | ||
path: ecbuild | ||
ref: develop | ||
|
||
- name: Clone fiat | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: ecmwf-ifs/fiat | ||
path: fiat | ||
ref: develop | ||
|
||
- name: Build fiat | ||
env: | ||
ecbuild_ROOT: ${{github.workspace}}/ecbuild/bin | ||
working-directory: ${{github.workspace}}/fiat | ||
run: | | ||
cmake -B ${{github.workspace}}/fiat/build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DENABLE_TESTS=OFF -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_Fortran_COMPILER=ifx | ||
cmake --build ${{github.workspace}}/fiat/build -- -j | ||
- name: Configure field_api | ||
env: | ||
ecbuild_ROOT: ${{github.workspace}}/ecbuild/bin | ||
fiat_ROOT: ${{github.workspace}}/fiat/build | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: | | ||
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DENABLE_ACC=OFF -DCMAKE_C_COMPILER=icx -DCMAKE_CXX_COMPILER=icpx -DCMAKE_Fortran_COMPILER=ifx | ||
- name: Build field_api | ||
# Build your program | ||
run: cmake --build ${{github.workspace}}/build -- -j | ||
|
||
- name: Test field_api | ||
env: | ||
DEV_ALLOC_SIZE: 1000000 | ||
working-directory: ${{github.workspace}}/build | ||
# Execute tests defined by the CMake configuration. | ||
run: ctest --output-on-failure | ||
|