@@ -6,6 +6,9 @@ concurrency:
66 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
77 cancel-in-progress : true
88
9+ permissions :
10+ contents : read
11+
912jobs :
1013 ubuntu-build :
1114 name : Build - Ubuntu
3639 runs-on : ${{matrix.os}}
3740
3841 steps :
39- - uses : actions/checkout@v3
42+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
4043
4144 - name : Install apt packages
4245 run : |
6568 if : matrix.os == 'ubuntu-22.04'
6669 run : |
6770 sudo apt install libncurses5
68- wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2023-09-21 /sycl_linux.tar.gz
71+ wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29 /sycl_linux.tar.gz
6972 mkdir -p ${{github.workspace}}/dpcpp_compiler
7073 tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C ${{github.workspace}}/dpcpp_compiler
7174
@@ -122,7 +125,7 @@ jobs:
122125 runs-on : ' ubuntu-22.04'
123126
124127 steps :
125- - uses : actions/checkout@v3
128+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
126129
127130 - name : Install pip packages
128131 run : pip install -r third_party/requirements.txt
@@ -163,25 +166,26 @@ jobs:
163166 strategy :
164167 matrix :
165168 adapter : [
166- {name: CUDA, triplet: nvptx64-nvidia-cuda, platform: ""},
167- {name: HIP, triplet: amdgcn-amd-amdhsa, platform: ""},
168- {name: L0, triplet: spir64, platform: ""},
169- {name: OPENCL, triplet: spir64, platform: "Intel(R) OpenCL"}
169+ {name: CUDA, platform: ""},
170+ {name: HIP, platform: ""},
171+ {name: L0, platform: ""},
172+ {name: OPENCL, platform: "Intel(R) OpenCL"},
173+ {name: NATIVE_CPU, platform: ""}
170174 ]
171175 build_type : [Debug, Release]
172176 compiler : [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
173177
174178 runs-on : ${{matrix.adapter.name}}
175179
176180 steps :
177- - uses : actions/checkout@v3
181+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
178182
179183 - name : Install pip packages
180184 run : pip install -r third_party/requirements.txt
181185
182186 - name : Download DPC++
183187 run : |
184- wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2023-09-21 /sycl_linux.tar.gz
188+ wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/nightly-2024-01-29 /sycl_linux.tar.gz
185189 mkdir dpcpp_compiler
186190 tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz -C dpcpp_compiler
187191
@@ -198,8 +202,7 @@ jobs:
198202 -DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
199203 -DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
200204 -DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
201- -DUR_CONFORMANCE_TARGET_TRIPLES=${{matrix.adapter.triplet}}
202- ${{ matrix.adapter.name == 'HIP' && '-DAMD_ARCH=gfx1030' || '' }}
205+ ${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
203206 ${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
204207
205208 - name : Build
@@ -228,7 +231,8 @@ jobs:
228231
229232 examples-build-hw :
230233 name : Build - examples on HW
231- if : github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
234+ # if: github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW
235+ if : false # temporaily disabled due to conda env setup issues
232236 strategy :
233237 matrix :
234238 adapter : [
@@ -240,13 +244,13 @@ jobs:
240244 runs-on : ${{matrix.adapter.name}}
241245
242246 steps :
243- - uses : actions/checkout@v3
247+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
244248
245249 - name : Install pip packages
246250 run : pip install -r third_party/requirements.txt
247251
248252 - name : Init conda env
249- uses : conda-incubator/setup-miniconda@v2
253+ uses : conda-incubator/setup-miniconda@9f54435e0e72c53962ee863144e47a4b094bfd35 # v2.3.0
250254 with :
251255 miniconda-version : " latest"
252256 activate-environment : examples
@@ -306,9 +310,9 @@ jobs:
306310 runs-on : ${{matrix.os}}
307311
308312 steps :
309- - uses : actions/checkout@v3
313+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
310314
311- - uses : actions/setup-python@v4
315+ - uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
312316 with :
313317 python-version : 3.9
314318
@@ -357,9 +361,9 @@ jobs:
357361 runs-on : ${{matrix.os}}
358362
359363 steps :
360- - uses : actions/checkout@v3
364+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
361365
362- - uses : actions/setup-python@v4
366+ - uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
363367 with :
364368 python-version : 3.9
365369
0 commit comments