Skip to content
This repository was archived by the owner on Sep 26, 2025. It is now read-only.

Commit a789806

Browse files
Merge pull request #2 from IntelPython/add-ci
Add workflow
2 parents d2b33ac + 2be0cad commit a789806

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@oleksandr-pavlyk @diptorupd

.github/workflows/ci.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Build sample data-parallel extensions
2+
on:
3+
pull_request:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
setup_develop:
9+
name: Build packages with DPC++
10+
runs-on: Ubuntu-20.04
11+
12+
steps:
13+
- name: Cancel Previous Runs
14+
uses: styfle/[email protected]
15+
with:
16+
access_token: ${{ github.token }}
17+
18+
- name: Add Intel repository
19+
run: |
20+
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
21+
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
22+
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
23+
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
24+
sudo apt-get update
25+
26+
- name: Install Intel OneAPI
27+
run: |
28+
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
29+
sudo apt-get install intel-oneapi-tbb
30+
31+
- name: Add conda to system path
32+
run: echo $CONDA/bin >> $GITHUB_PATH
33+
34+
- name: Checkout repo
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Install dependencies
40+
run: |
41+
conda install cmake ninja
42+
conda install -c intel dpcpp-cpp-rt
43+
conda install dpctl -c dppy/label/dev
44+
pip install --no-cache-dir cython scikit-build pybind11 pytest
45+
conda list
46+
47+
- name: Build kde_setuptools
48+
run: |
49+
source /opt/intel/oneapi/setvars.sh
50+
export OCL_ICD_FILENAMES=libintelocl.so
51+
pushd kde_setuptools
52+
python setup.py develop
53+
python -m pytest tests
54+
popd
55+
56+
- name: Build kde_skbuild
57+
run: |
58+
source /opt/intel/oneapi/setvars.sh
59+
export OCL_ICD_FILENAMES=libintelocl.so
60+
pushd kde_skbuild
61+
CC=icx CXX=icpx python setup.py develop -G Ninja \
62+
-- -DDPCTL_MODULE_PATH=$(python -m dpctl --cmakedir)
63+
python -m pytest tests
64+
popd

.github/workflows/ci.yaml~

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
name: Build sample data-parallel extensions

0 commit comments

Comments
 (0)