Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Intel compiler build to CI #36

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/Intel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Intel
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
Intel:
strategy:
matrix:
backend: ['SERIAL']
cmake_build_type: ['Release']
kokkos_ver: ['develop']
runs-on: ubuntu-20.04
container: fedora:latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Install Deps
run: |
sudo dnf -y update
sudo dnf -y install make cmake hwloc-devel
- name: Install Intel packages
run: |
curl -O http://registrationcenter-download.intel.com/akdlm/irc_nas/tec/16756/parallel_studio_xe_2020_update2_professional_edition.tgz
tar -xf parallel_studio_xe_*.tgz
pushd parallel_studio_xe_*/rpm
printf "[icc]\nname=icc\nbaseurl=$PWD\nenabled=1" | sudo tee -a /etc/yum.repos.d/icc.repo
popd
sudo dnf -y update
sudo dnf --nogpgcheck -y install intel-parallel-studio-xe-icc intel-parallel-studio-xe-mkl intel-parallel-studio-xe-ifort
echo "LD_LIBRARY_PATH=/opt/intel/lib/intel64:/opt/intel/mkl/lib/intel64" >> $GITHUB_ENV
echo "/opt/intel/bin" >> $GITHUB_PATH
Comment on lines +28 to +36
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dalg24 this part, downloading/installing icc, takes 30 min, so if we can create a base container and store it on Github's ghcr.io that would help a lot. We could use the same container to test kokkos with icc as well.

- name: Get trial license
run: |
mkdir ~/Licenses
Copy link
Contributor Author

@junghans junghans Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@certik Does the line below answer your question?

curl https://dynamicinstaller.intel.com/api/v2/license > ~/Licenses/intel.lic
- name: Checkout kokkos
uses: actions/[email protected]
with:
repository: kokkos/kokkos
ref: ${{ matrix.kokkos_ver }}
path: kokkos
- name: Build kokkos
working-directory: kokkos
run: |
cmake -B build \
-DCMAKE_INSTALL_PREFIX=$HOME/kokkos \
-DKokkos_ENABLE_${{ matrix.backend }}=ON \
-DKokkos_ENABLE_HWLOC=ON \
-DCMAKE_CXX_COMPILER=icpc \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
cmake --build build --parallel 2
cmake --install build
- name: Checkout FLCL
uses: actions/[email protected]
- name: Build FLCL
run: |
cmake -B build \
-DCMAKE_INSTALL_PREFIX=$HOME/flcl \
-DCMAKE_PREFIX_PATH="$HOME/kokkos" \
-DCMAKE_CXX_COMPILER=icpc \
-DCMAKE_C_COMPILER=icc \
-DCMAKE_Fortran_COMPILER=ifort \
-DCMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }}
cmake --build build --parallel 2
cmake --build build --target test
cmake --install build