Skip to content

Commit c7e1f51

Browse files
authored
Merge e21ed25 into 5cf4883
2 parents 5cf4883 + e21ed25 commit c7e1f51

File tree

2 files changed

+101
-1
lines changed

2 files changed

+101
-1
lines changed
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Test oneMKL interfaces
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
permissions: read-all
10+
11+
env:
12+
CHANNELS: '-c dppy/label/dev -c https://software.repos.intel.com/python/conda/ -c conda-forge --override-channels'
13+
BUILD_DEP_PKGS: >-
14+
mkl-devel-dpcpp
15+
tbb-devel
16+
dpctl
17+
onedpl-devel
18+
setuptools
19+
python
20+
numpy">=2.0"
21+
cython
22+
cmake
23+
ninja
24+
scikit-build
25+
26+
jobs:
27+
build_and_test:
28+
name: Run on ['${{ matrix.os }}', python='${{ matrix.python }}']
29+
30+
strategy:
31+
matrix:
32+
python: ['3.12']
33+
os: [ubuntu-22.04] # windows-2019 - no DFT support for Windows in oneMKL
34+
35+
permissions:
36+
# Needed to cancel any previous runs that are not completed for a given workflow
37+
actions: write
38+
39+
runs-on: ${{ matrix.os }}
40+
41+
defaults:
42+
run:
43+
shell: ${{ matrix.os == 'windows-2019' && 'cmd /C CALL {0}' || 'bash -el {0}' }}
44+
45+
continue-on-error: true
46+
47+
steps:
48+
- name: Cancel Previous Runs
49+
uses: styfle/cancel-workflow-action@85880fa0301c86cca9da44039ee3bb12d3bedbfa # 0.12.1
50+
with:
51+
access_token: ${{ github.token }}
52+
53+
- name: Checkout DPNP repo
54+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
55+
with:
56+
fetch-depth: 0
57+
58+
- name: Setup miniconda
59+
uses: conda-incubator/setup-miniconda@d2e6a045a86077fb6cad6f5adf368e9076ddaa8d # v3.1.0
60+
with:
61+
miniforge-version: latest
62+
use-mamba: 'true'
63+
channels: conda-forge
64+
conda-remove-defaults: 'true'
65+
python-version: ${{ matrix.python }}
66+
activate-environment: 'test_onemkl_interfaces'
67+
68+
# Sometimes `mamba install ...` fails due to slow download speed rate, so disable the check in mamba
69+
- name: Disable speed limit check in mamba
70+
run: echo "MAMBA_NO_LOW_SPEED_LIMIT=1" >> $GITHUB_ENV
71+
72+
- name: Install dpnp build dependencies
73+
run: |
74+
mamba install ${{ env.DPCPP_PKG }} ${{ env.BUILD_DEP_PKGS }} ${{ env.CHANNELS }}
75+
env:
76+
DPCPP_PKG: ${{ matrix.os == 'windows-2019' && 'dpcpp_win-64 vs_win-64=2017.9' || 'dpcpp_linux-64' }}
77+
78+
- name: Conda info
79+
run: |
80+
mamba info
81+
mamba list
82+
83+
- name: Build and install DPNP package
84+
run: |
85+
python scripts/build_locally.py --onemkl-interfaces --verbose
86+
87+
- name: Smoke test
88+
run: |
89+
python -m dpctl -f
90+
python -c "import dpnp; print(dpnp.__version__)"
91+
92+
- name: Install pytest
93+
run: |
94+
mamba install pytest ${{ env.CHANNELS }}
95+
96+
- name: Run tests
97+
run: |
98+
python -m pytest -ra --pyargs dpnp.tests
99+
env:
100+
SYCL_CACHE_PERSISTENT: 1

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ if(_use_onemkl_interfaces)
117117
FetchContent_Declare(
118118
onemkl_interfaces_library
119119
GIT_REPOSITORY https://github.com/oneapi-src/oneMKL.git
120-
GIT_TAG f2d2dcb4213a435bb60fbb88320c5f24892423ce
120+
GIT_TAG 8f4312ef966420b9b8b4b82b9d5c22e2c91a1fe7 # v0.6
121121
)
122122
FetchContent_MakeAvailable(onemkl_interfaces_library)
123123
set(CMAKE_INSTALL_RPATH "${CMAKE_BINARY_DIR}/lib")

0 commit comments

Comments
 (0)