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

Commit c269266

Browse files
Merge pull request #5 from IntelPython/updates
Updates
2 parents bfa51db + 02a24bf commit c269266

File tree

12 files changed

+72
-89
lines changed

12 files changed

+72
-89
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"

.github/workflows/ci.yaml

Lines changed: 55 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ on:
44
push:
55
branches: [main]
66

7+
permissions: read-all
8+
79
jobs:
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

common_ext/cy_kde.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Intel Corporation
1+
# Copyright 2022-2024 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

common_ext/py_kde.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Intel Corporation
1+
// Copyright 2022-2024 Intel Corporation
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

common_src/kde.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2022 Intel Corporation
1+
// Copyright 2022-2024 Intel Corporation
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

common_src/main.cpp

Lines changed: 0 additions & 59 deletions
This file was deleted.

kde_setuptools/kde_setuptools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Intel Corporation
1+
# Copyright 2022-2024 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

kde_setuptools/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Intel Corporation
1+
# Copyright 2022-2024 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

kde_setuptools/tests/test_cy_kde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Intel Corporation
1+
# Copyright 2022-2024 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

kde_setuptools/tests/test_py_kde.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2022 Intel Corporation
1+
# Copyright 2022-2024 Intel Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)