Skip to content

Commit

Permalink
[CI] Enable Cuda test-e2e per PR
Browse files Browse the repository at this point in the history
  • Loading branch information
wlemkows committed Jan 26, 2024
1 parent 5d58871 commit 867d4e9
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
name: E2E Nightly
name: E2E build & run

on:
schedule:
# Run every day at 23:00 UTC
- cron: '0 23 * * *'
# this workflow can by only triggered by other workflows
# for example by: e2e_cuda.yml or e2e_opencl.yml
workflow_call:
# acceptable input from adapter-specific workflows
inputs:
name:
type: string
required: true
str_name:
type: string
required: true
prefix:
type: string
required: true
config:
type: string
required: true
unit:
type: string
required: true
runner_tag:
type: string
required: true

permissions:
contents: read
Expand All @@ -14,13 +34,16 @@ jobs:
strategy:
matrix:
adapter: [
{name: CUDA, str_name: cuda, prefix: "ext_oneapi_", config: "--cuda --hip", unit: "gpu"},
{name: OPENCL, str_name: opencl, prefix: "", config: "", unit: "cpu"}
{name: "${{inputs.name}}",
str_name: "${{inputs.str_name}}",
prefix: "${{inputs.prefix}}",
config: "${{inputs.config}}",
unit: "${{inputs.unit}}"}
]
build_type: [Release]
compiler: [{c: clang, cxx: clang++}]

runs-on: ${{matrix.adapter.name}}
runs-on: ${{inputs.runner_tag}}

steps:
# Workspace on self-hosted runners is not cleaned automatically.
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/e2e_cuda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: E2E Cuda

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
e2e-build-hw:
# trigger only if head commit contains "test-e2e"
if: ${{ contains(github.event.head_commit.message, 'test-e2e') }}
name: Start e2e job
# use core flow, run it with cuda specific parameters
uses: ./.github/workflows/e2e_core.yml
# parameters that we pass to the core flow
with:
name: "CUDA"
runner_tag: "CUDA_E2E"
str_name: "cuda"
prefix: "ext_oneapi_"
config: "--cuda"
unit: "gpu"
24 changes: 24 additions & 0 deletions .github/workflows/e2e_opencl.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: E2E OpenCL

on:
workflow_dispatch:
schedule:
# Run every day at 23:00 UTC
- cron: '0 23 * * *'

permissions:
contents: read

jobs:
e2e-build-hw:
name: Start e2e job
# use core flow, run it with OpenCL specific parameters
uses: ./.github/workflows/e2e_core.yml
# parameters that we pass to the core flow
with:
name: "OPENCL"
runner_tag: "OPENCL"
str_name: "opencl"
prefix: ""
config: ""
unit: "cpu"

0 comments on commit 867d4e9

Please sign in to comment.