Skip to content

Commit 77217e9

Browse files
committed
added dockers
1 parent da4fb4c commit 77217e9

File tree

5 files changed

+180
-97
lines changed

5 files changed

+180
-97
lines changed

.github/workflows/sycl-linux-precommit-aws.yml

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ permissions:
2121

2222
jobs:
2323
create-check:
24+
if: false
2425
runs-on: [Linux, aux-tasks]
2526
permissions:
2627
checks: write
@@ -45,6 +46,7 @@ jobs:
4546
})
4647
4748
aws-start:
49+
if: false
4850
runs-on: ubuntu-latest
4951
environment: aws
5052
steps:
@@ -61,6 +63,7 @@ jobs:
6163
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
6264

6365
e2e-cuda:
66+
if: false
6467
needs: [aws-start]
6568
uses: ./.github/workflows/sycl-linux-run-tests.yml
6669
with:
@@ -78,6 +81,7 @@ jobs:
7881
sycl_toolchain_decompress_command: zstd
7982

8083
update-check:
84+
if: false
8185
needs: [create-check, e2e-cuda]
8286
if: always()
8387
runs-on: [Linux, aux-tasks]
@@ -104,6 +108,7 @@ jobs:
104108
})
105109
106110
aws-stop:
111+
if: false
107112
needs: [aws-start, e2e-cuda]
108113
if: always()
109114
runs-on: ubuntu-latest

.github/workflows/sycl-linux-precommit.yml

+12-8
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444

4545
build:
4646
needs: [detect_changes]
47-
if: always() && success()
47+
# if: always() && success()
48+
if: false
4849
uses: ./.github/workflows/sycl-linux-build.yml
4950
with:
5051
build_ref: ${{ github.sha }}
@@ -64,7 +65,8 @@ jobs:
6465
# The idea is to ensure that the code works with both CUDA versions.
6566
build_ubuntu2204:
6667
needs: [detect_changes]
67-
if: always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur_cuda_adapter')
68+
# if: always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur_cuda_adapter')
69+
if: false
6870
uses: ./.github/workflows/sycl-linux-build.yml
6971
with:
7072
build_ref: ${{ github.sha }}
@@ -76,7 +78,8 @@ jobs:
7678

7779
run_prebuilt_e2e_tests:
7880
needs: [build, detect_changes]
79-
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
81+
# if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
82+
if: false
8083
strategy:
8184
fail-fast: false
8285
matrix:
@@ -160,11 +163,12 @@ jobs:
160163

161164
test-perf:
162165
needs: [build, detect_changes]
163-
if: |
164-
always() && !cancelled()
165-
&& needs.build.outputs.build_conclusion == 'success'
166-
&& (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
167-
|| contains(needs.detect_changes.outputs.filters, 'perf-tests'))
166+
# if: |
167+
# always() && !cancelled()
168+
# && needs.build.outputs.build_conclusion == 'success'
169+
# && (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
170+
# || contains(needs.detect_changes.outputs.filters, 'perf-tests'))
171+
if: false
168172
strategy:
169173
fail-fast: false
170174
matrix:

.github/workflows/sycl-windows-precommit.yml

+14-11
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,22 @@ jobs:
4343

4444
build:
4545
needs: [detect_changes]
46-
if: |
47-
always() && success()
48-
&& github.repository == 'intel/llvm'
46+
# if: |
47+
# always() && success()
48+
# && github.repository == 'intel/llvm'
49+
if: false
4950
uses: ./.github/workflows/sycl-windows-build.yml
5051
with:
5152
changes: ${{ needs.detect_changes.outputs.filters }}
5253

5354
build-e2e:
5455
needs: build
5556
# Continue if build was successful.
56-
if: |
57-
always()
58-
&& !cancelled()
59-
&& needs.build.outputs.build_conclusion == 'success'
57+
# if: |
58+
# always()
59+
# && !cancelled()
60+
# && needs.build.outputs.build_conclusion == 'success'
61+
if: false
6062
uses: ./.github/workflows/sycl-windows-run-tests.yml
6163
with:
6264
name: Build Windows E2E tests
@@ -69,10 +71,11 @@ jobs:
6971
run_prebuilt_e2e_tests:
7072
needs: [build, build-e2e]
7173
# Continue if build was successful.
72-
if: |
73-
always()
74-
&& !cancelled()
75-
&& needs.build.outputs.build_conclusion == 'success'
74+
# if: |
75+
# always()
76+
# && !cancelled()
77+
# && needs.build.outputs.build_conclusion == 'success'
78+
if: false
7679
strategy:
7780
fail-fast: false
7881
matrix:

.github/workflows/ur-build-hw.yml

+54-19
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ on:
2626
required: false
2727
type: string
2828
default: OFF
29+
docker_image:
30+
required: true
31+
type: string
32+
default: ""
33+
image_options:
34+
required: true
35+
type: string
36+
default: ""
2937
workflow_dispatch:
3038
inputs:
3139
adapter_name:
@@ -51,22 +59,30 @@ on:
5159
required: false
5260
type: string
5361
default: OFF
62+
docker_image:
63+
required: true
64+
type: string
65+
default: ""
66+
image_options:
67+
required: true
68+
type: string
69+
default: ""
5470

55-
permissions:
56-
contents: read
71+
permissions: read-all
5772

5873
env:
5974
UR_LOG_CUDA: "level:error;flush:error"
6075
UR_LOG_HIP: "level:error;flush:error"
6176
UR_LOG_LEVEL_ZERO: "level:error;flush:error"
6277
UR_LOG_NATIVE_CPU: "level:error;flush:error"
6378
UR_LOG_OPENCL: "level:error;flush:error"
79+
CURRENT_DIR: $(pwd)
6480

6581
jobs:
6682
adapter_build_hw:
6783
name: Build & CTS
6884
# run only on upstream; forks won't have the HW
69-
if: github.repository == 'intel/llvm'
85+
# if: github.repository == 'intel/llvm'
7086
strategy:
7187
fail-fast: false
7288
matrix:
@@ -83,6 +99,9 @@ jobs:
8399
compiler: [{c: gcc, cxx: g++}]
84100

85101
runs-on: ${{inputs.runner_name}}
102+
container:
103+
image: ${{ inputs.docker_image }}
104+
options: ${{ inputs.image_options }}
86105

87106
steps:
88107
# TODO:
@@ -94,28 +113,42 @@ jobs:
94113
- name: Checkout LLVM
95114
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
96115

97-
# Latest distros do not allow global pip installation
116+
- name: Set up Python 3.10
117+
if: ${{ inputs.docker_image == 'ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps' }}
118+
uses: actions/setup-python@v5
119+
with:
120+
python-version: '3.10'
121+
98122
- name: Install UR python dependencies in venv
99-
working-directory: ${{github.workspace}}/unified-runtime
123+
working-directory: ./unified-runtime
100124
run: |
101125
python3 -m venv .venv
102126
. .venv/bin/activate
103-
echo "$PATH" >> $GITHUB_PATH
127+
echo "${PWD}/.venv/bin" >> $GITHUB_PATH
104128
pip install -r third_party/requirements.txt
105129
pip install -r third_party/requirements_testing.txt
106130
107131
- name: Download DPC++
108132
run: |
109-
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-12-12/sycl_linux.tar.gz
110-
mkdir dpcpp_compiler
111-
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C dpcpp_compiler
133+
wget -O dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-12-12/sycl_linux.tar.gz
134+
mkdir -p dpcpp_compiler
135+
tar -xvf dpcpp_compiler.tar.gz -C dpcpp_compiler
136+
137+
- name: Install OpenCL
138+
if: ${{ inputs.adapter_name == 'OPENCL' }}
139+
run: |
140+
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB \
141+
| gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
142+
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
143+
sudo apt-get update
144+
sudo apt-get install -y intel-oneapi-runtime-opencl
112145
113146
- name: Configure Unified Runtime project
114-
working-directory: ${{github.workspace}}/unified-runtime
115147
# ">" is used to avoid adding "\" at the end of each line; this command is quite long
116148
run: >
117149
cmake
118-
-B${{github.workspace}}/build
150+
-S unified-runtime
151+
-B build
119152
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
120153
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
121154
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
@@ -127,32 +160,34 @@ jobs:
127160
${{ matrix.adapter.other_name != '' && format('-DUR_BUILD_ADAPTER_{0}=ON', matrix.adapter.other_name) || '' }}
128161
-DUR_STATIC_LOADER=${{matrix.adapter.static_Loader}}
129162
-DUR_STATIC_ADAPTER_${{matrix.adapter.name}}=${{matrix.adapter.static_adapter}}
130-
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
131-
-DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
132-
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install
163+
-DUR_DPCXX=./dpcpp_compiler/bin/clang++
164+
-DUR_SYCL_LIBRARY_DIR=./dpcpp_compiler/lib
165+
-DCMAKE_INSTALL_PREFIX=./install
133166
${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
134167
${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
135168
136169
- name: Build
137170
# This is so that device binaries can find the sycl runtime library
138-
run: cmake --build ${{github.workspace}}/build -j $(nproc)
171+
run: cmake --build build -j $(nproc)
139172

140173
- name: Install
141174
# This is to check that install command does not fail
142-
run: cmake --install ${{github.workspace}}/build
175+
run: cmake --install build
143176

144177
- name: Test adapter specific
145178
env:
146179
ZE_ENABLE_LOADER_DEBUG_TRACE: 1
147-
run: ctest -C ${{matrix.build_type}} --test-dir ${{github.workspace}}/build --output-on-failure -L "adapter-specific" -E "memcheck" --timeout 600 -VV
180+
ZE_DEBUG: 1
181+
run: ctest -C ${{matrix.build_type}} --test-dir build --output-on-failure -L "adapter-specific" -E "memcheck" --timeout 600
148182
# Don't run adapter specific tests when building multiple adapters
149183
if: ${{ matrix.adapter.other_name == '' }}
150184

151185
- name: Test adapters
152186
env:
153187
ZE_ENABLE_LOADER_DEBUG_TRACE: 1
154-
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --test-dir ${{github.workspace}}/build --output-on-failure -L "conformance" --timeout 600 -VV
188+
ZE_DEBUG: 1
189+
run: env UR_CTS_ADAPTER_PLATFORM="${{matrix.adapter.platform}}" ctest -C ${{matrix.build_type}} --test-dir build --output-on-failure -L "conformance" --timeout 600
155190

156191
- name: Get information about platform
157192
if: ${{ always() }}
158-
run: ${{github.workspace}}/unified-runtime/.github/scripts/get_system_info.sh
193+
run: ./unified-runtime/.github/scripts/get_system_info.sh

0 commit comments

Comments
 (0)