Skip to content

Commit 1dfea70

Browse files
authored
initial version of CI for oneDPL (#750)
1 parent 6757aef commit 1dfea70

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

.github/workflows/onedpl.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-FileCopyrightText: Intel Corporation
2+
#
3+
# SPDX-License-Identifier: BSD-3-Clause
4+
5+
name: "oneDPL"
6+
7+
on:
8+
workflow_dispatch:
9+
# 6am UTC is 10pm PST, 11pm PDT
10+
schedule:
11+
- cron: '0 6 * * *'
12+
13+
jobs:
14+
onedpl:
15+
runs-on: gkpvc
16+
timeout-minutes: 20
17+
env:
18+
CXX: icpx
19+
CTEST_OUTPUT_ON_FAILURE: 1
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Checkout Distributed Ranges branch in oneDPL
23+
uses: actions/checkout@v4
24+
with:
25+
repository: oneapi-src/oneDPL
26+
ref: distributed-ranges
27+
path: dr
28+
- name: Generate
29+
run: |
30+
. /opt/intel/oneapi/setvars.sh
31+
cmake -B dr/build -DCMAKE_CXX_STANDARD=23 -DCMAKE_CXX_COMPILER=icpx -DONEDPL_BACKEND=dpcpp -DCMAKE_BUILD_TYPE=Release dr
32+
- name: Build SHP tests
33+
run: |
34+
. /opt/intel/oneapi/setvars.sh
35+
cmake --build dr/build --target shp-all-tests -- -j
36+
- name: Run SHP tests
37+
run: |
38+
. /opt/intel/oneapi/setvars.sh
39+
ctest --test-dir dr/build -L SHP -j 4
40+
# srun -p cluster dr/scripts/run_command_on_compute_node.sh dr/build/Testing/tests.outerr.txt ctest --test-dir dr/build -L TESTLABEL -j 4
41+
- uses: actions/upload-artifact@v4
42+
if: always()
43+
with:
44+
name: log-pvc-impi-icpx
45+
path: |
46+
dr/build/CMakeCache.txt
47+
dr/build/test/distributed-ranges/shp/*.log

0 commit comments

Comments
 (0)