-
Notifications
You must be signed in to change notification settings - Fork 1
110 lines (92 loc) · 3.62 KB
/
ci.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Build sample data-parallel extensions
on:
pull_request:
push:
branches: [main]
permissions: read-all
jobs:
build_and_test_kde_setuptools:
name: Build kde_setuptools with DPC++
runs-on: Ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Add Intel repository
run: |
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
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get update
- name: Install Intel OneAPI
run: |
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
sudo apt-get install intel-oneapi-tbb
- name: Add conda to system path
run: echo $CONDA/bin >> $GITHUB_PATH
- name: Checkout repo
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install dependencies
run: |
source $CONDA/etc/profile.d/conda.sh
conda create -n build_kde_setuptools python=3.11 dpctl setuptools"<70" -c dppy/label/dev -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
conda activate build_kde_setuptools
pip install --no-cache-dir cython pybind11 pytest cmake ninja
conda list
- name: Build kde_setuptools
run: |
source /opt/intel/oneapi/setvars.sh
export OCL_ICD_FILENAMES=libintelocl.so
pushd kde_setuptools
source $CONDA/etc/profile.d/conda.sh
conda activate build_kde_setuptools
python setup.py develop
python -m pytest tests
popd
build_and_test_kde_skbuild:
name: Build kde_skbuild with DPC++
runs-on: Ubuntu-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Add Intel repository
run: |
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
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
sudo apt-get update
- name: Install Intel OneAPI
run: |
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
sudo apt-get install intel-oneapi-tbb
- name: Add conda to system path
run: echo $CONDA/bin >> $GITHUB_PATH
- name: Checkout repo
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install dependencies
run: |
source $CONDA/etc/profile.d/conda.sh
conda create -n build_kde_skbuild python=3.10 dpctl -c dppy/label/dev -c https://software.repos.intel.com/python/conda -c conda-forge --override-channels
conda activate build_kde_skbuild
pip install --no-cache-dir cython scikit-build pybind11 pytest cmake ninja
conda list
- name: Build kde_skbuild
run: |
source /opt/intel/oneapi/setvars.sh
export OCL_ICD_FILENAMES=libintelocl.so
pushd kde_skbuild
source $CONDA/etc/profile.d/conda.sh
conda activate build_kde_skbuild
CC=icx CXX=icpx python setup.py develop -G Ninja \
-- -DCMAKE_VERBOSE_MAKEFILE=ON
python -m pytest tests
popd