forked from NVIDIA/cutlass
-
Notifications
You must be signed in to change notification settings - Fork 21
269 lines (243 loc) · 10.8 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
name: "Test"
on:
push:
branches: [ "sycl-develop" ]
pull_request:
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:
# name: Run tests with NVIDIA GPU
# runs-on: cp-nvidia-gpu
# timeout-minutes: 30
# steps:
# - name: Checkout repository
# uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
# - name: Install dependencies
# shell: bash
# run: |
# nvidia-smi
# mkdir ~/dpcpp
# pushd ~/dpcpp
# echo "Will use DPCPP ${{ inputs.DPCPP_VERSION }}."
# if [[ "${{ inputs.DPCPP_VERSION }}" != "" ]]; then \
# echo "Downloading DPCPP from https://github.com/intel/llvm/releases/download/${{ inputs.DPCPP_VERSION }}/sycl_linux.tar.gz"; \
# wget -q https://github.com/intel/llvm/releases/download/${{ inputs.DPCPP_VERSION }}/sycl_linux.tar.gz; \
# else
# latest=$(curl -sS https://api.github.com/repos/intel/llvm/releases | jq -r '[.[].tag_name|select(match("nightly-[0-9]{4}-[0-9]{2}-[0-9]{2}"))][0]') && \
# echo "Downloading DPCPP from https://github.com/intel/llvm/releases/download/${latest}/sycl_linux.tar.gz"; \
# wget -q https://github.com/intel/llvm/releases/download/${latest}/sycl_linux.tar.gz; \
# fi
# tar -xf sycl_linux.tar.gz
# rm sycl_linux.tar.gz
# popd
# # For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
# # for example using the tag: 'nightly-2024-04-22'
# - name: Build
# shell: bash
# run: |
# export PATH=~/dpcpp/bin/:$PATH
# export C_INCLUDE_PATH=~/dpcpp/include/:$C_INCLUDE_PATH
# export CPLUS_INCLUDE_PATH=~/dpcpp/include/:$CPLUS_INCLUDE_PATH
# export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
# export CC=clang
# export CXX=clang++
# clang++ --version
# cmake -G Ninja \
# -DCMAKE_CUDA_HOST_COMPILER=clang++ \
# -DCUTLASS_ENABLE_SYCL=ON \
# -DDPCPP_SYCL_TARGET=nvptx64-nvidia-cuda \
# -DDPCPP_SYCL_ARCH=sm_80
# cmake --build .
# - name: Unit test
# shell: bash
# run: |
# export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
# cmake --build . --target test_unit -j 24
# - name: Examples
# shell: bash
# run: |
# export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
# cmake --build . --target test_examples -j 24
run-tests-intel:
name: Run tests with Intel GPU
runs-on: cp-gpumax-1100-gpu
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install dependencies
shell: bash
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install -y level-zero intel-ocloc intel-opencl-icd libze-intel-gpu1
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install -y intel-dpcpp-cpp-compiler-2025.0
# For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
# for example using the tag: 'nightly-2024-04-22'
- name: Build
shell: bash
run: |
export PATH=~/dpcpp/bin/:$PATH
export C_INCLUDE_PATH=~/dpcpp/include/:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=~/dpcpp/include/:$CPLUS_INCLUDE_PATH
export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
export CC=clang
export CXX=clang++
which sycl-ls
sycl-ls
run-tests-intel-cpu:
name: Run tests with Intel CPU
runs-on: cp-ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install dependencies
shell: bash
run: |
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy unified" | \
sudo tee /etc/apt/sources.list.d/intel.gpu.list
sudo apt update
sudo apt upgrade -y
sudo apt install -y level-zero intel-ocloc intel-opencl-icd libze-intel-gpu1
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install -y intel-dpcpp-cpp-compiler-2025.0
# For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
# for example using the tag: 'nightly-2024-04-22'
- name: Build
shell: bash
run: |
export PATH=~/dpcpp/bin/:$PATH
export C_INCLUDE_PATH=~/dpcpp/include/:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=~/dpcpp/include/:$CPLUS_INCLUDE_PATH
export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
export CC=clang
export CXX=clang++
which sycl-ls
sycl-ls
run-tests-intel-cpu2:
name: Run tests with Intel CPU 2
runs-on: cp-ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install dependencies
shell: bash
run: |
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy unified" | \
sudo tee /etc/apt/sources.list.d/intel.gpu.list
sudo apt update
sudo apt upgrade -y
sudo apt install -y level-zero intel-ocloc intel-opencl-icd libze-intel-gpu1
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install -y intel-dpcpp-cpp-compiler-2025.0
# For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
# for example using the tag: 'nightly-2024-04-22'
- name: Build
shell: bash
run: |
export PATH=~/dpcpp/bin/:$PATH
export C_INCLUDE_PATH=~/dpcpp/include/:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=~/dpcpp/include/:$CPLUS_INCLUDE_PATH
export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
export CC=clang
export CXX=clang++
which sycl-ls
sycl-ls
run-tests-intel-cpu3:
name: Run tests with Intel CPU 3
runs-on: cp-ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install dependencies
shell: bash
run: |
wget -qO - https://repositories.intel.com/gpu/intel-graphics.key | \
sudo gpg --yes --dearmor --output /usr/share/keyrings/intel-graphics.gpg
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/gpu/ubuntu jammy unified" | \
sudo tee /etc/apt/sources.list.d/intel.gpu.list
sudo apt update
sudo apt upgrade -y
sudo apt install -y level-zero intel-ocloc intel-opencl-icd libze-intel-gpu1
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install -y intel-dpcpp-cpp-compiler-2025.0
# For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
# for example using the tag: 'nightly-2024-04-22'
- name: Build
shell: bash
run: |
export PATH=~/dpcpp/bin/:$PATH
export C_INCLUDE_PATH=~/dpcpp/include/:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=~/dpcpp/include/:$CPLUS_INCLUDE_PATH
export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
export CC=clang
export CXX=clang++
which sycl-ls
sycl-ls
run-tests-intel-docker:
name: Run tests with docker on Intel GPU
runs-on: cp-gpumax-1100-gpu
timeout-minutes: 30
container:
image: intel/oneapi-basekit:2025.0.0-0-devel-ubuntu22.04
steps:
- name: Checkout repository
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Install dependencies
shell: bash
run: |
sudo apt update
sudo apt upgrade -y
sudo apt install -y level-zero intel-ocloc intel-opencl-icd libze-intel-gpu1
wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
rm GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB && \
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt update
sudo apt install -y intel-dpcpp-cpp-compiler-2025.0
# For a specific DPC++ nightly build define the repository variable DPCPP_VERSION
# for example using the tag: 'nightly-2024-04-22'
- name: Build
shell: bash
run: |
export PATH=~/dpcpp/bin/:$PATH
export C_INCLUDE_PATH=~/dpcpp/include/:$C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH=~/dpcpp/include/:$CPLUS_INCLUDE_PATH
export LD_LIBRARY_PATH=~/dpcpp/lib/:$LD_LIBRARY_PATH
export CC=clang
export CXX=clang++
which sycl-ls
sycl-ls