Skip to content

Commit e40aa08

Browse files
lukaszstolarczukaarongreig
authored andcommitted
Verify if CUDA runner works good now
1 parent 7cf6eec commit e40aa08

14 files changed

+539
-5
lines changed

.github/workflows/bandit.yml

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ permissions:
1212

1313
jobs:
1414
bandit:
15+
if: false
1516
name: Bandit
1617
strategy:
1718
matrix:

.github/workflows/benchmarks-reusable.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -219,14 +219,12 @@ jobs:
219219
--adapter ${{ matrix.adapter.str_name }}
220220
--compute-runtime ${{ inputs.compute_runtime_commit }}
221221
--build-igc
222-
--compare baseline
223222
${{ inputs.upload_report && '--output-html' || '' }}
224-
${{ inputs.pr_no != 0 && '--output-markdown' || '' }}
225223
${{ inputs.bench_script_params }}
226224
227225
- name: Print benchmark results
228226
run: |
229-
cat ${{ github.workspace }}/ur-repo/benchmark_results.md || true
227+
cat ${{ github.workspace }}/ur-repo/benchmark_results.md
230228
231229
- name: Add comment to PR
232230
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1

.github/workflows/benchmarks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ on:
2424
type: number
2525
required: true
2626
bench_script_params:
27-
description: Parameters passed to the script executing benchmark
27+
description: Parameters passed to script executing benchmark
2828
type: string
2929
required: false
3030
default: ''
+114
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
---
2+
name: Build - Adapters on HW - Reusable
3+
4+
on:
5+
workflow_call:
6+
inputs:
7+
adapter_name:
8+
required: true
9+
type: string
10+
other_adapter_name:
11+
required: false
12+
type: string
13+
default: ""
14+
runner_name:
15+
required: true
16+
type: string
17+
platform:
18+
description: "Platform string, `UR_CTS_ADAPTER_PLATFORM` will be set to this."
19+
required: false
20+
type: string
21+
default: ""
22+
static_loader:
23+
required: false
24+
type: string
25+
default: OFF
26+
static_adapter:
27+
required: false
28+
type: string
29+
default: OFF
30+
31+
permissions:
32+
contents: read
33+
34+
env:
35+
UR_LOG_CUDA: "level:error;flush:error"
36+
UR_LOG_HIP: "level:error;flush:error"
37+
UR_LOG_LEVEL_ZERO: "level:error;flush:error"
38+
UR_LOG_NATIVE_CPU: "level:error;flush:error"
39+
UR_LOG_OPENCL: "level:error;flush:error"
40+
41+
jobs:
42+
adapter-build-hw:
43+
name: Build & CTS
44+
if: github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
45+
strategy:
46+
matrix:
47+
adapter: [
48+
{
49+
name: "${{inputs.adapter_name}}",
50+
other_name: "${{inputs.other_adapter_name}}",
51+
platform: "${{inputs.platform}}",
52+
static_Loader: "${{inputs.static_loader}}",
53+
static_adapter: "${{inputs.static_loader}}"
54+
}
55+
]
56+
build_type: [Release]
57+
compiler: [{c: gcc, cxx: g++}]
58+
59+
runs-on: CUDA_E2E
60+
61+
steps:
62+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
63+
64+
- name: Install pip packages
65+
run: pip install -r third_party/requirements.txt
66+
67+
- name: Download DPC++
68+
run: |
69+
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-12-12/sycl_linux.tar.gz
70+
mkdir dpcpp_compiler
71+
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C dpcpp_compiler
72+
73+
- name: Configure CMake
74+
run: >
75+
cmake
76+
-B${{github.workspace}}/build
77+
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
78+
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
79+
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
80+
-DUR_ENABLE_TRACING=ON
81+
-DUR_DEVELOPER_MODE=ON
82+
-DUR_BUILD_TESTS=ON
83+
-DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
84+
-DUR_CONFORMANCE_TEST_LOADER=${{ matrix.adapter.other_name != '' && 'ON' || 'OFF' }}
85+
${{ matrix.adapter.other_name != '' && format('-DUR_BUILD_ADAPTER_{0}=ON', matrix.adapter.other_name) || '' }}
86+
-DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
87+
-DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
88+
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
89+
-DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
90+
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
91+
${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
92+
${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
93+
94+
- name: Build
95+
# This is so that device binaries can find the sycl runtime library
96+
run: cmake --build ${{github.workspace}}/build -j $(nproc)
97+
98+
- name: Install
99+
# This is to check that install command does not fail
100+
run: cmake --install ${{github.workspace}}/build
101+
102+
- name: Test adapter specific
103+
working-directory: ${{github.workspace}}/build
104+
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "adapter-specific" -E "memcheck" --timeout 180
105+
# Don't run adapter specific tests when building multiple adapters
106+
if: ${{ matrix.adapter.other_name == '' }}
107+
108+
- name: Test adapters
109+
working-directory: ${{github.workspace}}/build
110+
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --output-on-failure -L "conformance" --timeout 180
111+
112+
- name: Get information about platform
113+
if: ${{ always() }}
114+
run: .github/scripts/get_system_info.sh

.github/workflows/codeql.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ permissions:
1111

1212
jobs:
1313
analyze-ubuntu:
14+
if: false
1415
name: Analyze on Ubuntu
1516
runs-on: ${{ github.repository_owner == 'oneapi-src' && 'intel-ubuntu-22.04' || 'ubuntu-latest' }}
1617
permissions:

.github/workflows/e2e.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: SYCL E2E
2+
3+
on: [push, pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
7+
cancel-in-progress: true
8+
9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
13+
jobs:
14+
15+
e2e-level-zero:
16+
name: Level Zero
17+
permissions:
18+
contents: read
19+
pull-requests: write
20+
uses: ./.github/workflows/e2e_level_zero.yml
21+
22+
e2e-opencl:
23+
name: OpenCL
24+
permissions:
25+
contents: read
26+
pull-requests: write
27+
uses: ./.github/workflows/e2e_opencl.yml
28+
29+
# Causes hangs: https://github.com/oneapi-src/unified-runtime/issues/2398
30+
#e2e-cuda:
31+
# name: CUDA
32+
# permissions:
33+
# contents: read
34+
# pull-requests: write
35+
# needs: [ubuntu-build, cuda]
36+
# uses: ./.github/workflows/e2e_cuda.yml

0 commit comments

Comments
 (0)