-
Notifications
You must be signed in to change notification settings - Fork 2.2k
CI: Intel icx/icpx via oneAPI #2769
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -592,6 +592,107 @@ jobs: | |
cmake --build build-14 --target test_cmake_build | ||
|
||
|
||
# Testing on ICX/ICPX, Intel's next-gen C/C++ compiler using the oneAPI apt repo | ||
icx: | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
fail-fast: false | ||
|
||
name: "🐍 3 • ICPX latest • x64" | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Add apt repo | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y wget build-essential pkg-config cmake ca-certificates gnupg | ||
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB | ||
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB | ||
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list | ||
|
||
- name: Add ICPC & Python 3 | ||
run: sudo apt-get update; sudo apt-get install -y intel-oneapi-compiler-dpcpp-cpp cmake python3-dev python3-numpy python3-pytest python3-pip | ||
ax3l marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Update pip | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
python3 -m pip install --upgrade pip | ||
|
||
- name: Install dependencies | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
henryiii marked this conversation as resolved.
Show resolved
Hide resolved
|
||
python3 -m pip install -r tests/requirements.txt --prefer-binary | ||
|
||
- name: Configure C++11 | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake -S . -B build-11 \ | ||
-DPYBIND11_WERROR=ON \ | ||
-DDOWNLOAD_CATCH=ON \ | ||
-DDOWNLOAD_EIGEN=OFF \ | ||
-DCMAKE_VERBOSE_MAKEFILE=ON \ | ||
-DCMAKE_CXX_COMPILER=$(which icpx) \ | ||
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") | ||
ax3l marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this actually preferred over There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This works on bash for Windows or something like that, I don't remember exactly why. Pretty sure it had to do with portability somehow. |
||
|
||
- name: Build | ||
shell: bash | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake --build build-11 -j 2 | ||
|
||
- name: Python tests | ||
shell: bash | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
sudo service apport stop | ||
cmake --build build-11 --target check | ||
|
||
- name: C++ tests | ||
shell: bash | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake --build build-11 --target cpptest | ||
|
||
- name: Interface test | ||
shell: bash | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake --build build-11 --target test_cmake_build | ||
|
||
- name: Configure C++17 | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake -S . -B build-17 \ | ||
-DPYBIND11_WERROR=ON \ | ||
-DDOWNLOAD_CATCH=ON \ | ||
-DDOWNLOAD_EIGEN=OFF \ | ||
-DCMAKE_CXX_STANDARD=17 \ | ||
-DCMAKE_CXX_COMPILER=$(which icpx) \ | ||
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") | ||
|
||
- name: Build C++17 | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake --build build-17 -j 2 -v | ||
|
||
- name: Python tests C++17 | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
sudo service apport stop | ||
cmake --build build-17 --target check | ||
|
||
- name: C++ tests C++17 | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake --build build-17 --target cpptest | ||
|
||
- name: Interface test C++17 | ||
run: | | ||
set +e; source /opt/intel/oneapi/setvars.sh; set -e | ||
cmake --build build-17 --target test_cmake_build | ||
|
||
|
||
# Testing on CentOS (manylinux uses a centos base, and this is an easy way | ||
# to get GCC 4.8, which is the manylinux1 compiler). | ||
centos: | ||
|
Uh oh!
There was an error while loading. Please reload this page.