44 push :
55 branches : [main]
66
7+ permissions : read-all
8+
79jobs :
8- setup_develop :
9- name : Build packages with DPC++
10+ build_and_test_kde_setuptools :
11+ name : Build kde_setuptools with DPC++
1012 runs-on : Ubuntu-latest
1113
1214 steps :
1315 - name : Cancel Previous Runs
14- uses : styfle/cancel-workflow-action@0.11.0
16+ uses : styfle/cancel-workflow-action@0.12.1
1517 with :
1618 access_token : ${{ github.token }}
1719
@@ -32,32 +34,77 @@ jobs:
3234 run : echo $CONDA/bin >> $GITHUB_PATH
3335
3436 - name : Checkout repo
35- uses : actions/checkout@v2
37+ uses : actions/checkout@v4.1.1
3638 with :
3739 fetch-depth : 0
3840
3941 - name : Install dependencies
4042 run : |
41- conda install python=3.10 dpctl -c dppy/label/dev -c intel -c conda-forge --override-channels
42- pip install --no-cache-dir cython scikit-build pybind11 pytest cmake ninja
43+ source $CONDA/etc/profile.d/conda.sh
44+ conda create -n build_kde_setuptools python=3.10 dpctl -c dppy/label/dev -c intel -c conda-forge --override-channels
45+ conda activate build_kde_setuptools
46+ pip install --no-cache-dir cython pybind11 pytest cmake ninja
4347 conda list
4448
4549 - name : Build kde_setuptools
4650 run : |
4751 source /opt/intel/oneapi/setvars.sh
4852 export OCL_ICD_FILENAMES=libintelocl.so
4953 pushd kde_setuptools
54+ source $CONDA/etc/profile.d/conda.sh
55+ conda activate build_kde_setuptools
5056 python setup.py develop
5157 python -m pytest tests
5258 popd
5359
60+
61+ build_and_test_kde_skbuild :
62+ name : Build kde_skbuild with DPC++
63+ runs-on : Ubuntu-latest
64+
65+ steps :
66+ - name : Cancel Previous Runs
67+ uses : styfle/cancel-workflow-action@0.12.1
68+ with :
69+ access_token : ${{ github.token }}
70+
71+ - name : Add Intel repository
72+ run : |
73+ wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
74+ sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
75+ rm GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
76+ sudo add-apt-repository "deb https://apt.repos.intel.com/oneapi all main"
77+ sudo apt-get update
78+
79+ - name : Install Intel OneAPI
80+ run : |
81+ sudo apt-get install intel-oneapi-compiler-dpcpp-cpp
82+ sudo apt-get install intel-oneapi-tbb
83+
84+ - name : Add conda to system path
85+ run : echo $CONDA/bin >> $GITHUB_PATH
86+
87+ - name : Checkout repo
88+ uses : actions/checkout@v4.1.1
89+ with :
90+ fetch-depth : 0
91+
92+ - name : Install dependencies
93+ run : |
94+ source $CONDA/etc/profile.d/conda.sh
95+ conda create -n build_kde_skbuild python=3.10 dpctl -c dppy/label/dev -c intel -c conda-forge --override-channels
96+ conda activate build_kde_skbuild
97+ pip install --no-cache-dir cython scikit-build pybind11 pytest cmake ninja
98+ conda list
99+
54100 - name : Build kde_skbuild
55101 run : |
56102 source /opt/intel/oneapi/setvars.sh
57103 export OCL_ICD_FILENAMES=libintelocl.so
58104 pushd kde_skbuild
105+ source $CONDA/etc/profile.d/conda.sh
106+ conda activate build_kde_skbuild
59107 CC=icx CXX=icpx python setup.py develop -G Ninja \
60- -- -DCMAKE_VERBOSE_MAKEFILE=ON \
61- -DDPCTL_MODULE_PATH=$(python -m dpctl --cmakedir)
108+ -- -DCMAKE_VERBOSE_MAKEFILE=ON
62109 python -m pytest tests
63110 popd
0 commit comments