-
Notifications
You must be signed in to change notification settings - Fork 219
/
Copy pathci.yml
executable file
·586 lines (567 loc) · 22.3 KB
/
ci.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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
# Copyright contributors to the oneDAL project
# C/C++ with GCC
# Build your C/C++ project with GCC using make.
# Add steps that publish test results, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/c-cpp/gcc
trigger:
branches:
include:
- main
- rls/*
paths:
exclude:
- docs
- .ci/pipeline/docs.yml
pr:
branches:
include:
- main
- rls/*
paths:
exclude:
- docs
- .ci/pipeline/docs.yml
variables:
OPENBLAS_VERSION : 'v0.3.27'
TBB_VERSION : 'v2021.10.0'
VM_IMAGE : 'ubuntu-22.04'
SYSROOT_OS: 'jammy'
WINDOWS_BASEKIT_URL: 'https://registrationcenter-download.intel.com/akdlm/IRC_NAS/b380d914-366b-4b77-a74a-05e3c38b3514/intel-oneapi-base-toolkit-2025.0.0.882_offline.exe'
WINDOWS_DPCPP_COMPONENTS: 'intel.oneapi.win.mkl.devel:intel.oneapi.win.tbb.devel'
resources:
repositories:
- repository: sklearnex
type: github
name: uxlfoundation/scikit-learn-intelex
ref: main
endpoint: intel-daal-connection
jobs:
- job: 'FormatterChecks'
pool:
vmImage: '$(VM_IMAGE)'
steps:
- script: |
.ci/env/apt.sh clang-format
.ci/env/editorconfig-checker.sh
displayName: 'Install Dependencies'
- script: |
.ci/scripts/clang-format.sh
displayName: 'clang-format check'
failOnStderr: true
- script: |
editorconfig-checker
displayName: 'editorconfig-checker'
failOnStderr: true
- job: 'LinuxMakeGNU_MKL'
timeoutInMinutes: 0
variables:
release.dir: '__release_lnx_gnu'
platform.type : 'lnx32e'
pool:
vmImage: '$(VM_IMAGE)'
steps:
- script: |
.ci/env/apt.sh dev-base
displayName: 'apt-get and conda install'
- script: |
.ci/env/apt.sh mkl
displayName: 'mkl installation'
- script: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/describe_system.sh
displayName: 'System info'
- script: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/build.sh --compiler gnu --optimizations avx2 --target daal --conda-env ci-env
displayName: 'make daal'
- script: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/build.sh --compiler gnu --optimizations avx2 --target onedal_c
displayName: 'make onedal_c'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) build'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Upload build artifacts'
continueOnError: true
- task: PublishPipelineArtifact@1
inputs:
artifactName: 'oneDAL environment'
targetPath: '$(Build.Repository.LocalPath)/.ci/env'
displayName: 'Upload environment artifacts'
continueOnError: true
- script: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler gnu --interface daal/cpp --build-system cmake
displayName: 'daal/cpp examples'
- script: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler gnu --interface oneapi/cpp --build-system cmake
displayName: 'oneapi/cpp examples'
- script: |
source /opt/intel/oneapi/setvars.sh
.ci/scripts/test.sh --test-kind samples --build-dir $(release.dir) --compiler gnu --interface daal/cpp/mpi --conda-env ci-env --build-system cmake
displayName: 'daal/cpp/mpi samples'
- script: |
deploy/nuget/prepare_dal_nuget.sh --release-dir $(release.dir) --build-nupkg yes
tree -h -I include __nuget/inteldal*/
ls -lh __nuget/inteldal*.nupkg
displayName: 'nuget pkg'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) fail'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Uploading on fail'
condition: failed()
continueOnError: true
- job: 'LinuxMakeGNU_OpenBLAS_ARM'
timeoutInMinutes: 0
variables:
release.dir: '__release_lnx_gnu'
platform.type : 'lnxarm'
OPENBLAS_CACHE_DIR: $(Pipeline.Workspace)/openblas-aarch64-gnu
TBB_CACHE_DIR: $(Pipeline.Workspace)/tbb-aarch64-gnu
pool:
vmImage: '$(VM_IMAGE)'
steps:
- script: |
.ci/env/apt.sh dev-base
displayName: 'apt-get and conda install'
- script: |
.ci/env/apt.sh gnu-cross-compilers aarch64
displayName: 'arm-compiler installation'
- script: |
.ci/env/apt.sh qemu-apt
displayName: 'qemu-emulation installation'
- script: |
.ci/scripts/describe_system.sh
displayName: 'System info'
- task: Cache@2
inputs:
key: '"gcc" | "aarch64" | "openblas" | "$(OPENBLAS_VERSION)" | "$(VM_IMAGE)" | "ILP64"'
path: $(OPENBLAS_CACHE_DIR)
cacheHitVar: OPENBLAS_RESTORED
- script: |
.ci/env/openblas.sh --target ARMV8 --host-compiler gcc --compiler aarch64-linux-gnu-gcc --cflags -march=armv8-a+sve --cross-compile --target-arch aarch64 --prefix $(OPENBLAS_CACHE_DIR) --version $(OPENBLAS_VERSION)
displayName: 'Build OpenBLAS'
condition: ne(variables.OPENBLAS_RESTORED, 'true')
- task: Cache@2
inputs:
key: '"gcc" | "aarch64" | "tbb" | "$(TBB_VERSION)" | "$(VM_IMAGE)"'
path: $(TBB_CACHE_DIR)
cacheHitVar: TBB_RESTORED
- script: |
.ci/env/tbb.sh --cross-compile --toolchain-file $(Build.Repository.LocalPath)/.ci/env/arm-gnu-crosscompile-toolchain.cmake --target-arch aarch64 --prefix $(TBB_CACHE_DIR) --version $(TBB_VERSION)
displayName: 'Build oneTBB'
condition: ne(variables.TBB_RESTORED, 'true')
- script: |
.ci/scripts/build.sh --compiler gnu --optimizations sve --target daal --backend-config ref --conda-env ci-env --cross-compile --plat lnxarm --blas-dir $(OPENBLAS_CACHE_DIR) --tbb-dir $(TBB_CACHE_DIR)
displayName: 'make daal'
- script: |
.ci/scripts/build.sh --compiler gnu --optimizations sve --target onedal_c --backend-config ref --cross-compile --plat lnxarm --blas-dir $(OPENBLAS_CACHE_DIR) --tbb-dir $(TBB_CACHE_DIR)
displayName: 'make onedal_c'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) ARM OpenBLAS gnu build'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Upload build artifacts'
continueOnError: true
- script: |
export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu
export QEMU_CPU="max,sve-default-vector-length=256"
export TBBROOT=$(TBB_CACHE_DIR)
export ARCH_ONEDAL=aarch64
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler gnu --interface daal/cpp --build-system cmake --platform lnxarm --cross-compile --backend ref
displayName: 'daal/cpp examples'
- script: |
export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu
export QEMU_CPU="max,sve-default-vector-length=256"
export TBBROOT=$(TBB_CACHE_DIR)
export ARCH_ONEDAL=aarch64
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler gnu --interface oneapi/cpp --build-system cmake --platform lnxarm --cross-compile --backend ref
displayName: 'oneapi/cpp examples'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) fail'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Uploading on fail'
condition: failed()
continueOnError: true
- job: 'LinuxMakeLLVM_OpenBLAS_ARM'
timeoutInMinutes: 0
variables:
release.dir: '__release_lnx_clang'
platform.type : 'lnxarm'
OPENBLAS_CACHE_DIR : $(Pipeline.Workspace)/openblas-aarch64-clang
TBB_CACHE_DIR : $(Pipeline.Workspace)/tbb-aarch64-clang
SYSROOT_CACHE_DIR: $(Pipeline.Workspace)/sysroot-aarch64
pool:
vmImage: '$(VM_IMAGE)'
steps:
- script: |
.ci/env/apt.sh dev-base
displayName: 'apt-get and conda install'
- script: |
.ci/env/apt.sh gnu-cross-compilers aarch64
displayName: 'arm-compiler installation'
- script: |
.ci/env/apt.sh llvm-version 18
displayName: 'llvm 18 installation'
- script: |
.ci/env/apt.sh qemu-apt
displayName: 'qemu-emulation installation'
- task: Cache@2
inputs:
key: '"aarch64" | "sysroot" | "$(SYSROOT_OS)"'
path: $(SYSROOT_CACHE_DIR)
cacheHitVar: SYSROOT_RESTORED
- script: |
.ci/env/apt.sh build-sysroot $(Pipeline.Workspace) arm64 $(SYSROOT_OS) sysroot-aarch64
displayName: 'build aarch64 sysroot'
condition: ne(variables.SYSROOT_RESTORED, 'true')
- script: |
.ci/scripts/describe_system.sh
displayName: 'System info'
- task: Cache@2
inputs:
key: '"clang" | "18" | "aarch64" | "openblas" | "$(OPENBLAS_VERSION)" | "$(VM_IMAGE)" | "ILP64"'
path: $(OPENBLAS_CACHE_DIR)
cacheHitVar: OPENBLAS_RESTORED
- script: |
.ci/env/openblas.sh --target ARMV8 --host-compiler gcc --compiler clang --target-arch arm --cflags -march=armv8-a+sve --cross-compile --prefix $(OPENBLAS_CACHE_DIR) --sysroot $(SYSROOT_CACHE_DIR) --version $(OPENBLAS_VERSION)
displayName: 'Build OpenBLAS'
condition: ne(variables.OPENBLAS_RESTORED, 'true')
- task: Cache@2
inputs:
key: '"clang" | "aarch64" | "tbb" | "$(TBB_VERSION)" | "$(VM_IMAGE)"'
path: $(TBB_CACHE_DIR)
cacheHitVar: TBB_RESTORED
- script: |
export ONEDAL_SYSROOT=$(SYSROOT_CACHE_DIR)
.ci/env/tbb.sh --cross-compile --toolchain-file $(Build.Repository.LocalPath)/.ci/env/arm-clang-crosscompile-toolchain.cmake --target-arch aarch64 --prefix $(TBB_CACHE_DIR) --version $(TBB_VERSION)
displayName: 'Build oneTBB'
condition: ne(variables.TBB_RESTORED, 'true')
- script: |
.ci/scripts/build.sh --compiler clang --optimizations sve --target daal --backend-config ref --conda-env ci-env --cross-compile --plat lnxarm --sysroot $(SYSROOT_CACHE_DIR) --blas-dir $(OPENBLAS_CACHE_DIR) --tbb-dir $(TBB_CACHE_DIR)
displayName: 'make daal'
- script: |
.ci/scripts/build.sh --compiler clang --optimizations sve --target onedal_c --backend-config ref --cross-compile --plat lnxarm --sysroot $(SYSROOT_CACHE_DIR) --blas-dir $(OPENBLAS_CACHE_DIR) --tbb-dir $(TBB_CACHE_DIR)
displayName: 'make onedal_c'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) ARM OpenBLAS LLVM build'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Upload build artifacts'
continueOnError: true
- script: |
export QEMU_LD_PREFIX=$(SYSROOT_CACHE_DIR)
export QEMU_CPU="max,sve-default-vector-length=256"
export TBBROOT=$(TBB_CACHE_DIR)
export ARCH_ONEDAL=aarch64
export ONEDAL_SYSROOT=$(SYSROOT_CACHE_DIR)
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface daal/cpp --build-system cmake --platform lnxarm --cross-compile --backend ref
displayName: 'daal/cpp examples'
- script: |
export QEMU_LD_PREFIX=$(SYSROOT_CACHE_DIR)
export QEMU_CPU="max,sve-default-vector-length=256"
export TBBROOT=$(TBB_CACHE_DIR)
export ARCH_ONEDAL=aarch64
export ONEDAL_SYSROOT=$(SYSROOT_CACHE_DIR)
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface oneapi/cpp --build-system cmake --platform lnxarm --cross-compile --backend ref
displayName: 'oneapi/cpp examples'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) fail'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Uploading on fail'
condition: failed()
continueOnError: true
- job: 'LinuxMakeLLVM_OpenBLAS_rv64'
timeoutInMinutes: 0
variables:
release.dir: '__release_lnx_clang'
platform.type : 'lnxriscv64'
OPENBLAS_VERSION : 'v0.3.27'
OPENBLAS_CACHE_DIR : $(Pipeline.Workspace)/openblas-riscv64-clang
TBB_VERSION : 'v2021.10.0'
TBB_CACHE_DIR : $(Pipeline.Workspace)/tbb-riscv64-clang
SYSROOT_CACHE_DIR: $(Pipeline.Workspace)/sysroot-riscv64
pool:
vmImage: 'ubuntu-22.04'
steps:
- script: |
.ci/env/apt.sh dev-base
displayName: 'apt-get and conda install'
- script: |
.ci/env/apt.sh gnu-cross-compilers riscv64
displayName: 'riscv64-compiler installation'
- script: |
.ci/env/apt.sh llvm-version 18
displayName: 'llvm 18 installation'
- script: |
.ci/env/apt.sh qemu-deb
displayName: 'qemu-emulation installation'
- task: Cache@2
inputs:
key: '"riscv64" | "sysroot"'
path: $(SYSROOT_CACHE_DIR)
cacheHitVar: SYSROOT_RESTORED
- script: |
.ci/env/apt.sh build-sysroot $(Pipeline.Workspace) riscv64 $(SYSROOT_OS) sysroot-riscv64
displayName: 'Build riscv64 sysroot'
condition: ne(variables.SYSROOT_RESTORED, 'true')
- script: |
.ci/scripts/describe_system.sh
displayName: 'System info'
- task: Cache@2
inputs:
key: '"clang" | "riscv64" | "openblas" | "$(OPENBLAS_VERSION)" | "ILP64"'
path: $(OPENBLAS_CACHE_DIR)
cacheHitVar: OPENBLAS_RESTORED
- script: |
.ci/env/openblas.sh --target RISCV64_ZVL128B --host-compiler gcc --compiler clang --target-arch riscv64 --cross-compile --prefix $(OPENBLAS_CACHE_DIR) --sysroot $(SYSROOT_CACHE_DIR) --version $(OPENBLAS_VERSION)
displayName: 'Build OpenBLAS'
condition: ne(variables.OPENBLAS_RESTORED, 'true')
- task: Cache@2
inputs:
key: '"clang" | "riscv64" | "tbb" | "$(TBB_VERSION)"'
path: $(TBB_CACHE_DIR)
cacheHitVar: TBB_RESTORED
- script: |
export ONEDAL_SYSROOT=$(SYSROOT_CACHE_DIR)
.ci/env/tbb.sh --cross-compile --toolchain-file $(Build.Repository.LocalPath)/.ci/env/riscv64-clang-crosscompile-toolchain.cmake --target-arch riscv64 --prefix $(TBB_CACHE_DIR) --version $(TBB_VERSION)
displayName: 'Build oneTBB'
condition: ne(variables.TBB_RESTORED, 'true')
- script: |
.ci/scripts/build.sh --compiler clang --optimizations rv64 --target daal --backend-config ref --conda-env ci-env --cross-compile --plat lnxriscv64 --sysroot $(SYSROOT_CACHE_DIR) --blas-dir $(OPENBLAS_CACHE_DIR) --tbb-dir $(TBB_CACHE_DIR)
displayName: 'make daal'
- script: |
.ci/scripts/build.sh --compiler clang --optimizations rv64 --target onedal_c --backend-config ref --cross-compile --plat lnxriscv64 --sysroot $(SYSROOT_CACHE_DIR) --blas-dir $(OPENBLAS_CACHE_DIR) --tbb-dir $(TBB_CACHE_DIR)
displayName: 'make onedal_c'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) RISCV64 OpenBLAS build'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Upload build artifacts'
continueOnError: true
- script: |
export QEMU_LD_PREFIX=$(SYSROOT_CACHE_DIR)
export QEMU_CPU="max"
export TBBROOT=$(TBB_CACHE_DIR)
export ARCH_ONEDAL=riscv64
export ONEDAL_SYSROOT=$(SYSROOT_CACHE_DIR)
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface daal/cpp --build-system cmake --platform lnxriscv64 --cross-compile --backend ref
displayName: 'daal/cpp examples'
- script: |
export QEMU_LD_PREFIX=$(SYSROOT_CACHE_DIR)
export QEMU_CPU="max"
export TBBROOT=$(TBB_CACHE_DIR)
export ARCH_ONEDAL=riscv64
export ONEDAL_SYSROOT=$(SYSROOT_CACHE_DIR)
.ci/scripts/test.sh --test-kind examples --build-dir $(release.dir) --compiler clang --interface oneapi/cpp --build-system cmake --platform lnxriscv64 --cross-compile --backend ref
displayName: 'oneapi/cpp examples'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) fail'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Uploading on fail'
condition: failed()
continueOnError: true
- job: 'LinuxBazel'
timeoutInMinutes: 0
pool:
vmImage: '$(VM_IMAGE)'
variables:
platform.type : 'lnx32e'
BAZEL_CACHE_DIR: $(Pipeline.Workspace)/.bazel-cache
BAZEL_VERSION: $(Pipeline.Workspace)/bazelisk-linux-amd64
BAZEL_CACHE_MAX_SIZE_KB: 4194304 # Size in kilobytes ~ 4Gb
steps:
- script: |
# sourcing done to set bazel version value from script
source .ci/env/bazelisk.sh
echo "##vso[task.setvariable variable=BAZEL_VERSION]${BAZEL_VERSION}"
displayName: 'install-bazel'
- script: |
.ci/scripts/describe_system.sh
displayName: 'System info'
- task: Cache@2
inputs:
# Commit ID is added to a cache key. Caches are immutable by design,
# so we always need to change a key to upload the last version
# of the Bazel cache. Cache lookup is based on `restoreKeys` option.
key: '"$(BAZEL_VERSION)" | "$(Agent.OS)" | "v1" | "$(Build.SourceVersion)"'
restoreKeys: |
"$(BAZEL_VERSION)" | "$(Agent.OS)" | "v1"
path: $(BAZEL_CACHE_DIR)
displayName: 'bazel-cache'
- script: |
if [ -f "${BAZEL_CACHE_DIR}/cache-clean-timestamp" ]; then
echo
echo "Last time the cache is cleaned:"
cat "${BAZEL_CACHE_DIR}/cache-clean-timestamp"
echo
fi
# Create `.bazelrc` and set cache directory
# Minimal CPU instruction set in Azure is AVX2
echo "build --disk_cache=$(BAZEL_CACHE_DIR) --cpu=avx2" > ~/.bazelrc
# Display oneDAL build configuration
bazel build @config//:dump
echo
cat bazel-bin/external/config/config.json
echo
displayName: 'bazel-configure'
- script: |
bazel build :release
displayName: 'release'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) Bazel build'
targetPath: '$(Build.Repository.LocalPath)/bazel-bin/release'
displayName: 'Upload build artifacts'
- script: |
bazel test //examples/oneapi/cpp:all \
--test_link_mode=dev \
--test_thread_mode=par
displayName: 'cpp-examples-thread-dev'
- script: |
export DALROOT=`pwd`/bazel-bin/release/daal/latest
bazel test //examples/oneapi/cpp:all \
--test_link_mode=release_static \
--test_thread_mode=par
displayName: 'cpp-examples-thread-release-static'
- script: |
export DALROOT=`pwd`/bazel-bin/release/daal/latest
bazel test //examples/oneapi/cpp:all \
--test_link_mode=release_dynamic \
--test_thread_mode=par
displayName: 'cpp-examples-thread-release-dynamic'
- script: |
bazel test //cpp/daal:tests
displayName: 'daal-tests-algorithms'
- script: |
bazel test //cpp/oneapi/dal:tests \
--config=host \
--test_link_mode=dev \
--test_thread_mode=par
displayName: 'cpp-tests-thread-dev'
- script: |
# Clear cache if its size exceeds some predefined value
cache_size=$(du -sk "${BAZEL_CACHE_DIR}" | cut -f1)
cache_size_mb=$(du -sm "${BAZEL_CACHE_DIR}" | cut -f1)
echo "Bazel cache dir is ${BAZEL_CACHE_DIR}"
echo "Bazel cache size is ${cache_size_mb}Mb"
if [ ${cache_size} -ge ${BAZEL_CACHE_MAX_SIZE_KB} ]; then
echo "Run cache cleanup..."
echo "Current cache directory content:"
ls -1 "${BAZEL_CACHE_DIR}"
echo "--------------------------------"
echo "Run bazel clean with expunge"
echo "Remove cache directory"
rm -r "${BAZEL_CACHE_DIR}"
mkdir -p "${BAZEL_CACHE_DIR}"
echo "Write timestamp to the cache"
date > "${BAZEL_CACHE_DIR}/cache-clean-timestamp"
echo "Current cache directory content:"
ls -1 "${BAZEL_CACHE_DIR}"
echo "--------------------------------"
else
echo "No need for cleanup"
fi
displayName: 'bazel-cache-limit'
- job: LinuxSklearnex
dependsOn: LinuxMakeGNU_MKL
timeoutInMinutes: 0
variables:
release.dir: '__release_lnx_gnu'
platform.type: 'lnx32e'
DALROOT: '$(Pipeline.Workspace)/daal/latest'
TBBROOT: '/opt/intel/oneapi/tbb/latest'
NO_DPC: 1
NO_DIST: 1
pool:
vmImage: '$(VM_IMAGE)'
maxParallel: 2
strategy:
matrix:
Python311:
PYTHON_VERSION: '3.11'
SKLEARN_VERSION: '1.5'
steps:
- checkout: none
- script: |
git clone https://github.com/uxlfoundation/scikit-learn-intelex.git .
displayName: 'Clone sklearnex'
- task: DownloadPipelineArtifact@2
inputs:
artifact: 'oneDAL environment'
path: '$(Build.Repository.LocalPath)/.ci/env'
- task: DownloadPipelineArtifact@2
inputs:
artifact: '$(platform.type) build'
path: $(Pipeline.Workspace)
- script: |
chmod -R 755 .ci/env
.ci/env/apt.sh tbb
displayName: 'tbb installation'
- template: .ci/pipeline/build-and-test-lnx.yml@sklearnex
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) sklearnex build'
targetPath: '$(Build.Repository.LocalPath)/build'
- job: 'WindowsMakeVC'
timeoutInMinutes: 0
variables:
release.dir: '__release_win_vc'
platform.type : 'win32e'
pool:
vmImage: 'windows-2022'
steps:
- script: .ci/scripts/install_basekit.bat $(WINDOWS_BASEKIT_URL) $(WINDOWS_DPCPP_COMPONENTS)
displayName: Install oneAPI Base Toolkit
- script: |
set PATH=C:\msys64\usr\bin;%PATH%
pip install cpufeature
pacman -S -y --noconfirm zip dos2unix tree
displayName: 'pacman'
- script: |
call %TEMP%\oneapi\setvars.bat --force
bash .ci/scripts/describe_system.sh
displayName: 'System info'
- script: |
call %TEMP%\oneapi\setvars.bat --force
.\.ci\scripts\build.bat daal vc avx2
displayName: 'make daal'
- script: |
call %TEMP%\oneapi\setvars.bat --force
.\.ci\scripts\build.bat onedal_c vc avx2
displayName: 'make onedal_c'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) build'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Upload build artifacts'
continueOnError: true
- script: |
call %TEMP%\oneapi\setvars.bat --force
.\.ci\scripts\test.bat daal\cpp lib msvs cmake
.\.ci\scripts\test.bat daal\cpp dll msvs cmake
displayName: 'daal/cpp examples'
- script: |
call %TEMP%\oneapi\setvars.bat --force
.\.ci\scripts\test.bat oneapi\cpp lib msvs cmake
.\.ci\scripts\test.bat oneapi\cpp dll msvs cmake
displayName: 'oneapi/cpp examples'
- script: |
set PATH=C:\msys64\usr\bin;%PATH%
bash deploy/nuget/prepare_dal_nuget.sh --release-dir $(release.dir) --build-nupkg yes
tree -h -I include __nuget/inteldal*/
ls -lh __nuget/inteldal*.nupkg
displayName: 'nuget pkg'
- task: PublishPipelineArtifact@1
inputs:
artifactName: '$(platform.type) fail'
targetPath: '$(Build.Repository.LocalPath)/$(release.dir)'
displayName: 'Uploading on fail'
condition: failed()
continueOnError: true