@@ -153,93 +153,92 @@ jobs:
153
153
working-directory : ${{env.BUILD_DIR}}
154
154
run : ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
155
155
156
- # TODO fix #843
157
- # icx:
158
- # name: ICX
159
- # env:
160
- # VCPKG_PATH: "${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows"
161
- # BUILD_DIR : "${{github.workspace}}/build"
162
- # strategy:
163
- # matrix:
164
- # os: ['windows-2019', 'windows-2022']
165
- # build_type: [Debug]
166
- # compiler: [{c: icx, cxx: icx}]
167
- # shared_library: ['ON', 'OFF']
168
- # include:
169
- # - os: windows-2022
170
- # build_type: Release
171
- # compiler: {c: icx, cxx: icx}
172
- # shared_library: 'ON'
173
- #
174
- # runs-on: ${{matrix.os}}
175
- #
176
- # steps:
177
- # - name: Checkout
178
- # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
179
- # with:
180
- # fetch-depth: 0
181
- #
182
- # - name: Initialize vcpkg
183
- # uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
184
- # with:
185
- # vcpkgGitCommitId: 3dd44b931481d7a8e9ba412621fa810232b66289
186
- # vcpkgDirectory: ${{env.BUILD_DIR}}/vcpkg
187
- # vcpkgJsonGlob: '**/vcpkg.json'
188
- #
189
- # - name: Install dependencies
190
- # run: vcpkg install
191
- #
192
- # - name: Install Ninja
193
- # uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
194
- #
195
- # - name: Download icx compiler
196
- # env:
197
- # # Link source: https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html
198
- # CMPLR_LINK: "https://registrationcenter-download.intel.com/akdlm/IRC_NAS/15a35578-2f9a-4f39-804b-3906e0a5f8fc/w_dpcpp-cpp-compiler_p_2024.2.1.83_offline.exe"
199
- # run: |
200
- # Invoke-WebRequest -Uri "${{ env.CMPLR_LINK }}" -OutFile compiler_install.exe
201
- #
202
- # - name: Install icx compiler
203
- # shell: cmd
204
- # run: |
205
- # start /b /wait .\compiler_install.exe -s -x -f extracted --log extract.log
206
- # extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 ^
207
- # -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=.
208
- #
209
- # - name: Configure build
210
- # shell: cmd
211
- # run: |
212
- # call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
213
- # call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
214
- # cmake ^
215
- # -B ${{env.BUILD_DIR}} ^
216
- # -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}" ^
217
- # -DCMAKE_C_COMPILER=${{matrix.compiler.c}} ^
218
- # -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} ^
219
- # -G Ninja ^
220
- # -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} ^
221
- # -DUMF_FORMAT_CODE_STYLE=OFF ^
222
- # -DUMF_DEVELOPER_MODE=ON ^
223
- # -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON ^
224
- # -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON ^
225
- # -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON ^
226
- # -DUMF_BUILD_CUDA_PROVIDER=ON ^
227
- # -DUMF_TESTS_FAIL_ON_SKIP=ON
228
- #
229
- # - name: Build UMF
230
- # shell: cmd
231
- # run: |
232
- # call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
233
- # call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
234
- # cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
235
- #
236
- # - name: Run tests
237
- # shell: cmd
238
- # working-directory: ${{env.BUILD_DIR}}
239
- # run: |
240
- # call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
241
- # call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
242
- # ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
156
+ icx :
157
+ name : ICX
158
+ env :
159
+ VCPKG_PATH : " ${{github.workspace}}/build/vcpkg/packages/hwloc_x64-windows;${{github.workspace}}/build/vcpkg/packages/tbb_x64-windows;${{github.workspace}}/build/vcpkg/packages/jemalloc_x64-windows"
160
+ BUILD_DIR : " ${{github.workspace}}/build"
161
+ strategy :
162
+ matrix :
163
+ os : ['windows-2019', 'windows-2022']
164
+ build_type : [Debug]
165
+ compiler : [{c: icx, cxx: icx}]
166
+ shared_library : ['ON', 'OFF']
167
+ include :
168
+ - os : windows-2022
169
+ build_type : Release
170
+ compiler : {c: icx, cxx: icx}
171
+ shared_library : ' ON'
172
+
173
+ runs-on : ${{matrix.os}}
174
+
175
+ steps :
176
+ - name : Checkout
177
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
178
+ with :
179
+ fetch-depth : 0
180
+
181
+ - name : Initialize vcpkg
182
+ uses : lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
183
+ with :
184
+ vcpkgGitCommitId : 3dd44b931481d7a8e9ba412621fa810232b66289
185
+ vcpkgDirectory : ${{env.BUILD_DIR}}/vcpkg
186
+ vcpkgJsonGlob : ' **/vcpkg.json'
187
+
188
+ - name : Install dependencies
189
+ run : vcpkg install
190
+
191
+ - name : Install Ninja
192
+ uses : seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
193
+
194
+ - name : Download icx compiler
195
+ env :
196
+ # Link source: https://www.intel.com/content/www/us/en/developer/tools/oneapi/dpc-compiler-download.html
197
+ CMPLR_LINK : " https://registrationcenter-download.intel.com/akdlm/IRC_NAS/15a35578-2f9a-4f39-804b-3906e0a5f8fc/w_dpcpp-cpp-compiler_p_2024.2.1.83_offline.exe"
198
+ run : |
199
+ Invoke-WebRequest -Uri "${{ env.CMPLR_LINK }}" -OutFile compiler_install.exe
200
+
201
+ - name : Install icx compiler
202
+ shell : cmd
203
+ run : |
204
+ start /b /wait .\compiler_install.exe -s -x -f extracted --log extract.log
205
+ extracted\bootstrapper.exe -s --action install --eula=accept -p=NEED_VS2017_INTEGRATION=0 ^
206
+ -p=NEED_VS2019_INTEGRATION=0 -p=NEED_VS2022_INTEGRATION=0 --log-dir=.
207
+
208
+ - name : Configure build
209
+ shell : cmd
210
+ run : |
211
+ call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
212
+ call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
213
+ cmake ^
214
+ -B ${{env.BUILD_DIR}} ^
215
+ -DCMAKE_PREFIX_PATH="${{env.VCPKG_PATH}}" ^
216
+ -DCMAKE_C_COMPILER=${{matrix.compiler.c}} ^
217
+ -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}} ^
218
+ -G Ninja ^
219
+ -DUMF_BUILD_SHARED_LIBRARY=${{matrix.shared_library}} ^
220
+ -DUMF_FORMAT_CODE_STYLE=OFF ^
221
+ -DUMF_DEVELOPER_MODE=ON ^
222
+ -DUMF_BUILD_LIBUMF_POOL_DISJOINT=ON ^
223
+ -DUMF_BUILD_LIBUMF_POOL_JEMALLOC=ON ^
224
+ -DUMF_BUILD_LEVEL_ZERO_PROVIDER=ON ^
225
+ -DUMF_BUILD_CUDA_PROVIDER=ON ^
226
+ -DUMF_TESTS_FAIL_ON_SKIP=ON
227
+
228
+ - name : Build UMF
229
+ shell : cmd
230
+ run : |
231
+ call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
232
+ call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
233
+ cmake --build ${{env.BUILD_DIR}} --config ${{matrix.build_type}} -j %NUMBER_OF_PROCESSORS%
234
+
235
+ - name : Run tests
236
+ shell : cmd
237
+ working-directory : ${{env.BUILD_DIR}}
238
+ run : |
239
+ call "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
240
+ call "C:\Program Files (x86)\Intel\oneAPI\setvars-vcvarsall.bat"
241
+ ctest -C ${{matrix.build_type}} --output-on-failure --test-dir test
243
242
244
243
L0 :
245
244
uses : ./.github/workflows/reusable_gpu.yml
0 commit comments