-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
662 lines (606 loc) · 18.4 KB
/
.gitlab-ci.yml
File metadata and controls
662 lines (606 loc) · 18.4 KB
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
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
stages:
- build
- docs
- deploy_docs
- test
- dagger
- coverage
- deploy_coverage
.iris_common: &common_iris
before_script:
- echo "Setting up environment..."
- source /auto/software/iris/setup_system.source
- source /opt/xilinx/xrt/setup.sh
- module load cmake
- module load gnu
.excl_runner:
extends: [.iris_common]
tags: [excl]
variables:
IRIS_INSTALL_ROOT: $CI_PROJECT_DIR/install
IRIS_INSTALL_ROOT_WO_FFI: $CI_PROJECT_DIR/install.noffi
IRIS_INSTALL_ROOT_W_FFI: $CI_PROJECT_DIR/install.ffi
#CONDA_ROOT: /auto/ciscratch/conda
.zenith-config: &zenith_config
tags: [zenith]
before_script:
- echo "Setting up environment..."
- source /auto/software/iris/setup_system.source
- source /opt/xilinx/xrt/setup.sh
- module load cmake
- module load gnu
.explorer-config: &explorer_config
tags: [explorer]
before_script:
- echo "Setting up environment..."
- source /auto/software/iris/setup_system.source
- module load cmake
- module load gnu
.build-ffi: &build_ffi
stage: build
script:
- echo "Installing iris to $CI_PROJECT_DIR/install"
- IRIS_TAG=.ffi.$IRIS_MACHINE bash build.sh -DENABLE_FFI=ON -DCMAKE_BUILD_TYPE=DEBUG -DCOVERAGE=true
.build-noffi: &build_noffi
stage: build
script:
- echo "Installing iris to $CI_PROJECT_DIR/install"
- IRIS_TAG=.noffi.$IRIS_MACHINE bash build.sh -DCMAKE_BUILD_TYPE=DEBUG -DCOVERAGE=true
build-ffi-explorer:
# Using aliasin features
<<: [*explorer_config, *build_ffi]
variables:
IRIS_MACHINE: "explorer"
build-noffi-explorer:
# Using aliasin features
<<: [*explorer_config, *build_noffi]
variables:
IRIS_MACHINE: "explorer"
build-ffi-zenith:
# Using aliasin features
<<: [*zenith_config, *build_ffi]
variables:
IRIS_MACHINE: "zenith"
build-noffi-zenith:
# Using aliasin features
<<: [*zenith_config, *build_noffi]
variables:
IRIS_MACHINE: "zenith"
docs-job:
tags: [devdocs]
stage: docs
needs: []
before_script:
- python3 -m venv --upgrade-deps --prompt $(basename $PWD) sphinx_venv
- source sphinx_venv/bin/activate
- python3 -m pip install -e .
- python3 -m pip install -r docs/sphinx/requirements.txt
- source `python3 -c 'import iris; print(iris.path)'`/setup.source
script:
- pushd docs/sphinx/source
- python -m sphinx -T -E -b html -d _build/doctrees -D language=en . _build/html
- popd
- mkdir schema-docs
- generate-schema-doc --expand-buttons schema schema-docs
artifacts:
paths:
- docs/sphinx/source/_build/html
- schema-docs
.deploy_docs_common:
tags: [devdocs]
stage: deploy_docs
needs: [docs-job]
script:
- rsync -a --delete docs/sphinx/source/_build/html/ ~/www/brisbane/iris
- rsync -a --delete schema-docs/ ~/www/brisbane/schema-docs
deploy_docs-job:
extends: .deploy_docs_common
only:
refs:
- dev
deploy_docs_manual-job:
extends: .deploy_docs_common
when: manual
.test-job:
stage: test
allow_failure: true
script:
- echo "Installing iris to $CI_PROJECT_DIR/install"
# - IRIS_TAG=.ffi.$IRIS_MACHINE bash build.sh -DENABLE_FFI=ON -DCMAKE_BUILD_TYPE=DEBUG -DCOVERAGE=true
- IRIS_TAG=.$IRIS_TAG.$IRIS_MACHINE bash build.sh -DENABLE_FFI=$IRIS_FFI_FLAG -DCMAKE_BUILD_TYPE=DEBUG -DCOVERAGE=true
- echo $CI_REPOSITORY_URL
- echo $CI_PROJECT_PATH
- echo $IRIS_MACHINE
- echo $IRIS_TAG
- echo $IRIS_INSTALL_ROOT.$IRIS_TAG.$IRIS_MACHINE
- ls $IRIS_INSTALL_ROOT.$IRIS_TAG.$IRIS_MACHINE
- source $IRIS_INSTALL_ROOT.$IRIS_TAG.$IRIS_MACHINE/setup.source
- export IRIS_ARCHS=$IRIS_ARCHS_CICD
- echo $PATH
- echo $LD_LIBRARY_PATH
- echo $HIP_ROOT
- echo $IRIS_ARCHS
- echo $IRIS_ASYNC
- echo $IRIS_TAG
- echo $IRIS_MACHINE
- cp -r tests tests-$IRIS_ARCHS-$IRIS_ASYNC-$IRIS_TAG-$IRIS_MACHINE
- cd tests-$IRIS_ARCHS-$IRIS_ASYNC-$IRIS_TAG-$IRIS_MACHINE
- mkdir build
- cd build
- cmake .. -DIRIS=$IRIS -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++
- make --ignore-errors
- echo $IRIS_ARCHS
- echo $IRIS_ASYNC
- echo $OPENCL_VENDOR_PATH
- echo $OPENCL_PATH
- ctest --output-junit testRes.xml
- cd ../..
- echo $IRIS_ARCHS
- echo $IRIS_ASYNC
- echo $OPENCL_VENDOR_PATH
- echo $OPENCL_PATH
- python3 -m venv .venv-schema
- source .venv-schema/bin/activate
- pip install jsoncomment jsonschema
- echo $IRIS_ARCHS
- echo $IRIS_ASYNC
- bash .gitlab-ci-scripts/schema_check.sh
after_script:
- echo "Setting up environment..."
- source /auto/software/iris/setup_system.source
- source /opt/xilinx/xrt/setup.sh
- module load cmake
- module load gnu
- export IRIS_ARCHS=$IRIS_ARCHS_CICD
- echo $IRIS_ARCHS
- echo $IRIS_ASYNC
- python3 -m venv .venv-gcovr
- source .venv-gcovr/bin/activate
- echo $IRIS_ARCHS
- echo $IRIS_ASYNC
- pip install gcovr
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --gcov-ignore-parse-errors --json ${CI_JOB_NAME}-coverage.json --html-details coverage.html
coverage: /^\s*lines:\s*\d+.\d+\%/
artifacts:
name: "$CI_JOB_NAME"
when: always
paths:
- tests-$IRIS_ARCHS_CICD-$IRIS_ASYNC-$IRIS_TAG-$IRIS_MACHINE/build/Testing/Temporary/LastTest.log
- tests-$IRIS_ARCHS_CICD-$IRIS_ASYNC-$IRIS_TAG-$IRIS_MACHINE/build/testRes.xml
- ${CI_JOB_NAME}-coverage.json
- coverage.xml
- coverage*.html
- coverage.css
reports:
junit: tests-$IRIS_ARCHS_CICD-$IRIS_ASYNC-$IRIS_TAG-$IRIS_MACHINE/build/testRes.xml
coverage_report:
coverage_format: cobertura
path: coverage.xml
test-job-zenith-all:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: "noffi"
IRIS_FFI_FLAG: OFF
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
test-job-zenith-cuda:
#needs: [build-noffi-zenith]
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: "noffi"
IRIS_FFI_FLAG: OFF
IRIS_ARCHS_CICD: "cuda"
<<: *zenith_config
extends: .test-job
test-job-zenith-hip:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "hip"
test-job-zenith-openmp:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "openmp"
test-job-zenith-opencl:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "opencl"
test-job-explorer:
#needs: [build-noffi-explorer]
<<: *explorer_config
extends: .test-job
variables:
IRIS_MACHINE: "explorer"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "hip,openmp,opencl"
test-job-zenith-all-async-s2k:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
IRIS_ASYNC: 1
test-job-zenith-cuda-async-s2k:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "cuda"
IRIS_ASYNC: 1
test-job-zenith-hip-async-s2k:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "hip"
IRIS_ASYNC: 1
test-job-zenith-openmp-async-s2k:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "openmp"
IRIS_ASYNC: 1
test-job-zenith-opencl-async-s2k:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "opencl"
IRIS_ASYNC: 1
test-job-explorer-async-s2k:
#needs: [build-noffi-explorer]
<<: *explorer_config
extends: .test-job
variables:
IRIS_MACHINE: explorer
IRIS_FFI_FLAG: OFF
IRIS_TAG: "noffi"
IRIS_ARCHS_CICD: "hip,openmp,opencl"
IRIS_ASYNC: 1
test-job-zenith-all-ffi-async-s2k:
#needs: [build-ffi-zenith]
<<: *zenith_config
extends: .test-job
variables:
IRIS_MACHINE: "zenith"
IRIS_FFI_FLAG: ON
IRIS_TAG: "ffi"
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
IRIS_ASYNC: 1
.test-backend:
stage: test
allow_failure: true
script:
# - echo "Installing iris to $IRIS_INSTALL_ROOT"
- echo $CI_REPOSITORY_URL
- echo $CI_PROJECT_PATH
- IRIS_TAG=.$IRIS_TAG.$IRIS_MACHINE.$IRIS_TESTNAME bash build.sh -DENABLE_FFI=$IRIS_FFI_FLAG -DCMAKE_BUILD_TYPE=DEBUG -DCOVERAGE=true
- source $IRIS_INSTALL_ROOT.$IRIS_TAG.$IRIS_MACHINE.$IRIS_TESTNAME/setup.source
- export IRIS_ARCHS=$IRIS_ARCHS_CICD
- echo $PATH
- echo $LD_LIBRARY_PATH
- echo $HIP_ROOT
- echo $IRIS_TESTNAME
- echo $IRIS_TAG
- echo $IRIS_ARCHS
- echo $IRIS_MACHINE
- echo $IRIS_ASYNC
- echo $OPENCL_VENDOR_PATH
- echo $OPENCL_PATH
- cp -r tests tests-$IRIS_ARCHS-$IRIS_ASYNC-$IRIS_TAG-$IRIS_MACHINE$IRIS_TESTNAME
- cd tests-$IRIS_ARCHS-$IRIS_ASYNC-$IRIS_TAG-$IRIS_MACHINE$IRIS_TESTNAME
- echo "Test backends for test 29"
- cd $IRIS_TESTNAME
- bash test_backends.sh
after_script:
- echo "Setting up environment..."
- source /auto/software/iris/setup_system.source
- source /opt/xilinx/xrt/setup.sh
- module load cmake
- module load gnu
- export IRIS_ARCHS=$IRIS_ARCHS_CICD
- python3 -m venv .venv
- source .venv/bin/activate
- pip install gcovr
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --gcov-ignore-parse-errors --json ${CI_JOB_NAME}-coverage.json --html-details coverage.html
coverage: /^\s*lines:\s*\d+.\d+\%/
artifacts:
name: "$CI_JOB_NAME"
when: always
paths:
- ${CI_JOB_NAME}-coverage.json
- coverage.xml
- coverage*.html
- coverage.css
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
# test-job-leconte:
# extends: .test-job
# tags: [leconte]
test-backends-29:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-backend
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: "noffi"
IRIS_FFI_FLAG: OFF
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
IRIS_TESTNAME: "29_data_mem"
test-backends-34:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-backend
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: "noffi"
IRIS_FFI_FLAG: OFF
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
IRIS_TESTNAME: "34_set_mem"
# test-job-leconte:
# extends: .test-job
# tags: [leconte]
test-backends-29-async-s2k:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-backend
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: "noffi"
IRIS_FFI_FLAG: OFF
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
IRIS_ASYNC: 1
IRIS_TESTNAME: "29_data_mem"
test-backends-34-async-s2k:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-backend
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: "noffi"
IRIS_FFI_FLAG: OFF
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
IRIS_ASYNC: 1
IRIS_TESTNAME: "34_set_mem"
test-backends-37:
#needs: [build-noffi-zenith]
<<: *zenith_config
extends: .test-backend
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: "noffi"
IRIS_FFI_FLAG: OFF
IRIS_ARCHS_CICD: "cuda,hip,openmp,opencl"
IRIS_TESTNAME: "37_opencl_icd"
.dagger:
tags: [slurm]
stage: dagger
resource_group: slurm_zenith
# needs: [build-noffi-zenith]
.dagger-zenith-run-policy-evaluations:
extends: [.dagger]
script:
- .gitlab-ci-scripts/runner_watcher.sh $$ &
- sbatch --partition=gpu --nodelist=zenith .gitlab-ci-scripts/slurm-dagger-run-policy-evaluations.sh
- python3 -u .gitlab-ci-scripts/slurm-tee.py slurm-test-err.txt slurm-test-out.txt
- echo "Errors $(wc -l apps/dagger$IRIS_TAG/errors.txt)"
- cat apps/dagger$IRIS_TAG/errors.txt
- if [ -s apps/dagger$IRIS_TAG/errors.txt ]; then exit 1; fi
artifacts:
when: always
paths:
- apps/dagger$IRIS_TAG/test-out.txt
- apps/dagger$IRIS_TAG/errors.txt
- apps/dagger$IRIS_TAG/dagger-payloads
- apps/dagger$IRIS_TAG/dagger-graphs
- apps/dagger$IRIS_TAG/dagger-results
- slurm*.txt
dagger-zenith-run-policy-evaluations-synchronous-explicit-data-transfers:
extends: [.dagger-zenith-run-policy-evaluations]
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: .run_sync_exp_dt
dagger-zenith-run-policy-evaluations-synchronous-dmem:
extends: [.dagger-zenith-run-policy-evaluations]
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: .run_sync_dmem
USE_DATA_MEMORY: --use-data-memory
dagger-zenith-run-policy-evaluations-asynchronous-explicit-data-transfers:
extends: [.dagger-zenith-run-policy-evaluations]
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: .run_async_exp_dt
IRIS_ASYNC: 1
dagger-zenith-run-policy-evaluations-asynchronous-dmem:
extends: [.dagger-zenith-run-policy-evaluations]
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: .run_async_dmem
IRIS_ASYNC: 1
USE_DATA_MEMORY: --use-data-memory
dagger-zenith-test-correctness:
extends: [.dagger]
script:
- .gitlab-ci-scripts/runner_watcher.sh $$ &
- sbatch --partition=gpu --nodelist=zenith .gitlab-ci-scripts/slurm-dagger-test-correctness.sh
- python3 -u .gitlab-ci-scripts/slurm-tee.py slurm-test-err.txt slurm-test-out.txt
- echo "Errors $(wc -l apps/dagger$IRIS_TAG/errors.txt)"
- cat apps/dagger$IRIS_TAG/errors.txt
- if [ -s apps/dagger$IRIS_TAG/errors.txt ]; then exit 1; fi
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: .test-correctness
artifacts:
when: always
paths:
- apps/dagger$IRIS_TAG/test-out.txt
- apps/dagger$IRIS_TAG/errors.txt
- slurm*.txt
.dagger-zenith-test-local-workgroup-sizes:
extends: [.dagger]
script:
- .gitlab-ci-scripts/runner_watcher.sh $$ &
- sbatch --partition=gpu --nodelist=zenith .gitlab-ci-scripts/slurm-dagger-test-local-workgroup-sizes.sh
- python3 -u .gitlab-ci-scripts/slurm-tee.py slurm-test-err.txt slurm-test-out.txt
- echo "Errors $(wc -l apps/dagger$IRIS_TAG/errors.txt)"
- cat apps/dagger$IRIS_TAG/errors.txt
- if [ -s apps/dagger$IRIS_TAG/errors.txt ]; then exit 1; fi
artifacts:
when: always
paths:
- apps/dagger$IRIS_TAG/test-out.txt
- apps/dagger$IRIS_TAG/errors.txt
- apps/dagger$IRIS_TAG/dagger-payloads
- apps/dagger$IRIS_TAG/dagger-graphs
- apps/dagger$IRIS_TAG/dagger-results
- slurm*.txt
dagger-zenith-test-local-workgroup-sizes-synchronous-explicit-data-transfers:
extends: [.dagger-zenith-test-local-workgroup-sizes]
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: .local_workgroup_sync_exp_dt
REPEATS: 1
dagger-zenith-test-local-workgroup-sizes-synchronous-dmem:
extends: [.dagger-zenith-test-local-workgroup-sizes]
variables:
IRIS_MACHINE: "zenith"
REPEATS: 1
IRIS_TAG: .local_workgroup_sync_dmem
USE_DATA_MEMORY: --use-data-memory
dagger-zenith-test-local-workgroup-sizes-asynchronous-explicit-data-transfers:
extends: [.dagger-zenith-test-local-workgroup-sizes]
variables:
IRIS_MACHINE: "zenith"
REPEATS: 1
IRIS_TAG: .local_workgroup_async_exp_dt
IRIS_ASYNC: 1
dagger-zenith-test-local-workgroup-sizes-asynchronous-dmem:
extends: [.dagger-zenith-test-local-workgroup-sizes]
variables:
IRIS_MACHINE: "zenith"
IRIS_TAG: .local_workgroup_async_dmem
REPEATS: 1
IRIS_ASYNC: 1
USE_DATA_MEMORY: --use-data-memory
.dagger-zenith-test-duplication:
extends: [.dagger]
script:
- source /auto/software/iris/setup_system.source
- echo "Installing iris to $CI_PROJECT_DIR/install"
- bash build.sh -DCMAKE_BUILD_TYPE=DEBUG -DCOVERAGE=true
- echo source $IRIS_INSTALL_ROOT/setup.source
- source $IRIS_INSTALL_ROOT/setup.source
- .gitlab-ci-scripts/runner_watcher.sh $$ &
- sbatch --partition=gpu --nodelist=zenith .gitlab-ci-scripts/slurm-dagger-test-duplication.sh
- python3 -u .gitlab-ci-scripts/slurm-tee.py slurm-test-err.txt slurm-test-out.txt
- echo "Errors $(wc -l apps/dagger/errors.txt)"
- cat apps/dagger/errors.txt
- if [ -s apps/dagger/errors.txt ]; then exit 1; fi
artifacts:
when: always
paths:
- apps/dagger/test-out.txt
- apps/dagger/errors.txt
- apps/dagger/dagger-payloads
- apps/dagger/dagger-graphs
- apps/dagger/dagger-results
- slurm*.txt
dagger-zenith-test-duplication-explicit:
extends: [.dagger-zenith-test-duplication]
variables:
REPEATS: 1
USE_DATA_MEMORY: " "
coverage-collect:
<<: *zenith_config
stage: coverage
variables:
IRIS_MACHINE: "zenith"
needs:
- test-job-zenith-all
- test-job-zenith-cuda
- test-job-zenith-hip
- test-job-zenith-openmp
- test-job-zenith-opencl
- test-job-explorer
- test-job-zenith-all-async-s2k
- test-job-zenith-cuda-async-s2k
- test-job-zenith-hip-async-s2k
- test-job-zenith-openmp-async-s2k
- test-job-zenith-opencl-async-s2k
- test-job-explorer-async-s2k
- test-backends-29
- test-backends-34
- test-backends-37
- test-backends-29-async-s2k
- test-backends-34-async-s2k
script:
# - echo "Installing iris to $IRIS_INSTALL_ROOT"
#- bash build-coverage.sh
# - source $IRIS_INSTALL_ROOT.noffi.$IRIS_MACHINE/setup.source
- python3 -m venv .venv
- source .venv/bin/activate
- pip install gcovr
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --gcov-ignore-parse-errors --json ${CI_JOB_NAME}-coverage.json --html-details coverage.html -a '*coverage.json'
coverage: /^\s*lines:\s*\d+.\d+\%/
artifacts:
name: "$CI_JOB_NAME"
when: always
paths:
- ${CI_JOB_NAME}-coverage.json
- coverage.xml
- coverage*.html
- coverage.css
reports:
coverage_report:
coverage_format: cobertura
path: coverage.xml
.deploy_coverage_common:
tags: [devdocs]
stage: deploy_coverage
needs: [coverage-collect]
script:
rsync -a --delete *.html *.css ~/www/brisbane/iris-coverage
deploy_coverage-job:
extends: .deploy_coverage_common
only:
refs:
- ornl_main
deploy_coverage_manual-job:
extends: .deploy_coverage_common
when: manual