Skip to content

Add BMG workflow #328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
2 changes: 1 addition & 1 deletion .github/actions/install-dpcpp/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runs:
if: inputs.DPCPP_RELEASE == 'NIGHTLY'
shell: bash
run: |
sudo apt update && sudo apt install -y intel-opencl-icd ocl-icd-opencl-dev
sudo apt update && sudo apt install -y intel-opencl-icd ocl-icd-opencl-dev g++
dpkg -l | grep libhwloc15 > /dev/null || sudo apt install -y libhwloc15
export DPCPP_PATH=${{ inputs.DPCPP_PATH }}
mkdir -p $DPCPP_PATH
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/intel_bmg_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: "SYCL Intel BMG Test"

on:
push:
branches: [ "sycl-develop" ]
pull_request:
branches: [ "sycl-develop" ]
merge_group:
branches: [ "sycl-develop" ]
workflow_dispatch:
inputs:
DPCPP_VERSION:
description: "DPCPP version to use"
type: string

permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
run-tests:
strategy:
matrix:
# Disable the release check due to an issue with IGC versions 2.7 to 2.10.8.
# compiler: [ NIGHTLY, RELEASE ]
compiler: [ NIGHTLY ]
name: Run Intel BMG tests
runs-on: cp-b580-gpu
timeout-minutes: 30

steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
# For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
# for example using the tag: 'nightly-2024-04-22'
- name: Install DPC++
uses: ./.github/actions/install-dpcpp
with:
DPCPP_RELEASE: ${{ matrix.compiler }}
DPCPP_VERSION: ${{ inputs.DPCPP_VERSION }}
- name: Setup virtual environment
shell: bash
run: |
. setvars.sh
# Persist environment variables to following steps
env >> $GITHUB_ENV
which $CXX
$CXX --version
sycl-ls
- name: Build
shell: bash
run: |
cmake -G Ninja \
-DCUTLASS_ENABLE_SYCL=ON \
-DDPCPP_SYCL_TARGET=intel_gpu_bmg_g21
cmake --build .

- name: Unit test
shell: bash
run: |
cmake --build . --target test_unit -j 24

- name: Examples
shell: bash
run: |
cmake --build . --target test_examples -j 24
Loading