Skip to content

Commit 97ba5a5

Browse files
authored
Add BMG workflow (intel#328)
This PR adds the workflow to run unit tests on BMG
1 parent 8864bf9 commit 97ba5a5

File tree

2 files changed

+69
-1
lines changed

2 files changed

+69
-1
lines changed

.github/actions/install-dpcpp/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919
if: inputs.DPCPP_RELEASE == 'NIGHTLY'
2020
shell: bash
2121
run: |
22-
sudo apt update && sudo apt install -y intel-opencl-icd ocl-icd-opencl-dev
22+
sudo apt update && sudo apt install -y intel-opencl-icd ocl-icd-opencl-dev g++
2323
dpkg -l | grep libhwloc15 > /dev/null || sudo apt install -y libhwloc15
2424
export DPCPP_PATH=${{ inputs.DPCPP_PATH }}
2525
mkdir -p $DPCPP_PATH
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: "SYCL Intel BMG Test"
2+
3+
on:
4+
push:
5+
branches: [ "sycl-develop" ]
6+
pull_request:
7+
branches: [ "sycl-develop" ]
8+
merge_group:
9+
branches: [ "sycl-develop" ]
10+
workflow_dispatch:
11+
inputs:
12+
DPCPP_VERSION:
13+
description: "DPCPP version to use"
14+
type: string
15+
16+
permissions: {}
17+
18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
20+
cancel-in-progress: true
21+
22+
jobs:
23+
run-tests:
24+
strategy:
25+
matrix:
26+
# Disable the release check due to an issue with IGC versions 2.7 to 2.10.8.
27+
# compiler: [ NIGHTLY, RELEASE ]
28+
compiler: [ NIGHTLY ]
29+
name: Run Intel BMG tests
30+
runs-on: cp-b580-gpu
31+
timeout-minutes: 30
32+
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
36+
# For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
37+
# for example using the tag: 'nightly-2024-04-22'
38+
- name: Install DPC++
39+
uses: ./.github/actions/install-dpcpp
40+
with:
41+
DPCPP_RELEASE: ${{ matrix.compiler }}
42+
DPCPP_VERSION: ${{ inputs.DPCPP_VERSION }}
43+
- name: Setup virtual environment
44+
shell: bash
45+
run: |
46+
. setvars.sh
47+
# Persist environment variables to following steps
48+
env >> $GITHUB_ENV
49+
which $CXX
50+
$CXX --version
51+
sycl-ls
52+
- name: Build
53+
shell: bash
54+
run: |
55+
cmake -G Ninja \
56+
-DCUTLASS_ENABLE_SYCL=ON \
57+
-DDPCPP_SYCL_TARGET=intel_gpu_bmg_g21
58+
cmake --build .
59+
60+
- name: Unit test
61+
shell: bash
62+
run: |
63+
cmake --build . --target test_unit -j 24
64+
65+
- name: Examples
66+
shell: bash
67+
run: |
68+
cmake --build . --target test_examples -j 24

0 commit comments

Comments
 (0)