-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.gitlab-ci.yml
1089 lines (983 loc) · 41.8 KB
/
.gitlab-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
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
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# # ----------------------------------------------------------------------------------------------------------------------------------------------------
# # Use pipeline name to indicate whether MPICH or OpenMPI is used in the complete pipeline execution
# # ----------------------------------------------------------------------------------------------------------------------------------------------------
# workflow:
# name: $PIPELINE_NAME
# rules:
# - if: '$CI_PIPELINE_CREATED_AT =~ /^\d\d\d\d-\d\d-\d[1,3,5,7,9]T.*/ || $CI_COMMIT_REF_NAME !~ /^gitlab.custom.*/'
# variables:
# PIPELINE_NAME: '🔵 MPICH: on ${CI_PIPELINE_CREATED_AT} 123 ${CI_COMMIT_REF_NAME} 123'
#
# - if: '$CI_PIPELINE_CREATED_AT =~ /^\d\d\d\d-\d\d-\d[0,2,4,6,8]T.*/|| $CI_COMMIT_REF_NAME =~ /^gitlab.custom.*/'
# variables:
# PIPELINE_NAME: '🟠 OpenMPI: $(date +%d) ${CI_COMMIT_REF_NAME}'
#
# - when: never
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Use pipeline name to indicate whether default shared memory, node split or core split is used
# ----------------------------------------------------------------------------------------------------------------------------------------------------
workflow:
name: $PIPELINE_NAME
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
when: never
- if: '$DO_NODE_SPLIT'
variables:
PIPELINE_NAME: '🔵 Node Splitting ${CI_COMMIT_REF_NAME}'
- if: '$DO_CORE_SPLIT'
variables:
PIPELINE_NAME: '🟠 Core Splitting ${CI_COMMIT_REF_NAME}'
- if: '$DO_CORE_SPLIT == null && $DO_NODE_SPLIT == null'
variables:
PIPELINE_NAME: '🟢 ${CI_COMMIT_REF_NAME}'
- when: never
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Settings
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Load modules on new boltzplatz reggie
before_script:
- ulimit -s unlimited
- python3 -V || true
- python2 -V || true
- if [ -n "${DO_CORE_SPLIT}" ]; then
echo " PICLAS_SPLIT_TYPE=OMPI_COMM_TYPE_CORE. Splitting shared memory domains on processor-level!";
export PICLAS_SPLIT_TYPE=OMPI_COMM_TYPE_CORE;
else
if [ -n "${DO_NODE_SPLIT}" ]; then
echo " PICLAS_SPLIT_TYPE=PICLAS_COMM_TYPE_NODE. Splitting shared memory domains on sub-node-level with 2 cores per node!";
export PICLAS_SPLIT_TYPE=PICLAS_COMM_TYPE_NODE;
else
echo "Splitting shared memory domains on node-level (default)!";
echo "Set variable [DO_CORE_SPLIT=T] to force core-level OR [DO_NODE_SPLIT=T] to force sub-node-level shared memory splitting for all regression tests.";
fi
fi
- if [ -n "${DO_NINJA}" ]; then
echo " Setting CMAKE_GENERATOR=Ninja to use ninja generator";
export CMAKE_GENERATOR=Ninja;
export GENERATOR=ninja;
export NCORES=0;
else
echo " Using default generator [Unix Makefiles] and [make] for compiling.";
export GENERATOR=make;
export NCORES=;
fi
- if [ "${CI_JOB_NAME}" == "reggie_download" ]; then
if [ ! -d "reggie" ]; then mkdir reggie ; fi ;
day=$(date +%d);
echo $day > reggie/.day;
ls -la reggie;
cat reggie/.day;
echo "CI_PIPELINE_CREATED_AT $(date -d $CI_PIPELINE_CREATED_AT +%d)";
fi
- if [ ! -f "reggie/.day" ]; then
echo "reggie/.day does not exist! Setting even day number.";
day=0 ;
else
day=$(cat reggie/.day);
fi
- echo "Perform arithmetic with 0-prefixed numbers by telling bash to use base-10 by specifying 10#"
- if [ "$((10#$day % 2))" == "0" ]; then
echo "Even day number ($day). Loading OpenMPI";
module purge || true;
module load cmake/3.26.4 gcc/13.2.0 openmpi/4.1.5/gcc/13.2.0 hdf5/1.14.0/gcc/13.2.0/openmpi/4.1.5 hopr/master/gcc/13.2.0/openmpi/4.1.5/hdf5/1.14.0 petsc/3.19.3/gcc/13.2.0/openmpi/4.1.5 || true;
else
echo "Odd day number ($day). Loading MPICH";
module purge || true;
module load cmake/3.26.4 gcc/13.2.0 mpich/4.1.2/gcc/13.2.0 hdf5/1.14.0/gcc/13.2.0/mpich/4.1.2 hopr/master/gcc/13.2.0/mpich/4.1.2/hdf5/1.14.0 petsc/3.19.3/gcc/13.2.0/mpich/4.1.2 || true;
fi
- if [ -n "${DO_MPICH}" ]; then
echo "DO_MPICH activated. Loading MPICH.";
module purge || true;
module load cmake/3.26.4 gcc/13.2.0 mpich/4.1.2/gcc/13.2.0 hdf5/1.14.0/gcc/13.2.0/mpich/4.1.2 hopr/master/gcc/13.2.0/mpich/4.1.2/hdf5/1.14.0 petsc/3.19.3/gcc/13.2.0/mpich/4.1.2 || true;
fi
- if [ -n "${DO_MPICH_DEBUG}" ]; then
echo "DO_MPICH_DEBUG activated. Loading MPICH with --with-device=ch3:sock which allows over-subscription without performance loss but cannot be used for shared memory arrays safely!";
module purge || true;
module load cmake/3.26.4 gcc/13.2.0 mpich-debug/4.1.2/gcc/13.2.0 hdf5/1.14.0/gcc/13.2.0/mpich-debug/4.1.2 hopr/master/gcc/13.2.0/mpich-debug/4.1.2/hdf5/1.14.0 petsc/3.19.3/gcc/13.2.0/mpich-debug/4.1.2 || true;
fi
- module list || true
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stages
# ----------------------------------------------------------------------------------------------------------------------------------------------------
stages:
- build
- reggie_checkin
- reggie_feature_checkin
- reggie_DSMC_nightly
# - reggie_bgk_nightly
- reggie_tools_nightly
- reggie_nightly
- reggie_nightly_build_all
- reggie_weekly
- documentation
- deploy
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Templates ("hidden jobs")
# 1. Set the tags and artifacts properties (same for every job)
# 2. Extend parameters for the testing stages in general: allow failure and pull the cached reggie
# 3. Extend parameters for specific testing stages: maxwell, poisson, poisson + PETSc, DSMC
# 4. Extend parameters of each testing stage to the check-in, nightly and weekly testing
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Default parameters for the build and testing stage
.default_build_param: &default_build_param
tags: [withmodules-concurrent]
artifacts:
name: "${CI_PIPELINE_ID}-${CI_COMMIT_REF_NAME}-${CI_JOB_NAME}"
expire_in: 1 day
when: on_failure
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Default parameters for the testing stage only (reusing the previous template)
.default_param: &default_param
<<: *default_build_param
allow_failure: true
.reggie_cache: ®gie_cache
key: "reggie"
paths: [reggie]
policy: pull
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Defaults for the standard maxwell tests (utilizing "extends" to merge the other "artifacts" options with the specific path)
.defaults: &defaults
extends: .default_param
needs: [build]
artifacts:
paths: [build]
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}"
paths: [build]
policy: pull
.defaults_checkin: &defaults_checkin
<<: *defaults
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
.defaults_nightly: &defaults_nightly
<<: *defaults
rules:
- if: '$DO_NIGHTLY'
.defaults_weekly: &defaults_weekly
<<: *defaults
rules:
- if: '$DO_WEEKLY'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Defaults for other maxwell tests with PICLAS_DEBUG_MEMORY=ON
.defaults_maxwell: &defaults_maxwell
extends: .default_param
needs: [build_maxwell]
artifacts:
paths: [build_maxwell]
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-MAX"
paths: [build_maxwell]
policy: pull
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Defaults for poisson tests
.defaults_poisson: &defaults_poisson
extends: .default_param
needs: [build_poisson]
artifacts:
paths:
- build_poisson_release_RK3
- build_poisson_release_Leapfrog
- build_poisson_debug_RK3
- build_poisson_debug_Leapfrog
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-POI"
paths:
- build_poisson_release_RK3
- build_poisson_release_Leapfrog
- build_poisson_debug_RK3
- build_poisson_debug_Leapfrog
policy: pull
.defaults_poisson_checkin: &defaults_poisson_checkin
<<: *defaults_poisson
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
.defaults_poisson_nightly: &defaults_poisson_nightly
<<: *defaults_poisson
rules:
- if: '$DO_NIGHTLY'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Defaults for poisson + PETSC tests
.defaults_poisson_petsc: &defaults_poisson_petsc
extends: .default_param
needs: [build_poisson_petsc]
artifacts:
paths:
- build_poisson_petsc_release_RK3
- build_poisson_petsc_release_Leapfrog
- build_poisson_petsc_debug_RK3
- build_poisson_petsc_debug_Leapfrog
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-POI-PETSC"
paths:
- build_poisson_petsc_release_RK3
- build_poisson_petsc_release_Leapfrog
- build_poisson_petsc_debug_RK3
- build_poisson_petsc_debug_Leapfrog
policy: pull
.defaults_poisson_petsc_checkin: &defaults_poisson_petsc_checkin
<<: *defaults_poisson_petsc
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
.defaults_poisson_petsc_nightly: &defaults_poisson_petsc_nightly
<<: *defaults_poisson_petsc
rules:
- if: '$DO_NIGHTLY'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Defaults for DSMC tests (pull only)
.defaults_DSMC: &defaults_DSMC
extends: .default_param
needs: [build_DSMC]
artifacts:
paths:
- build_DSMC_release
- build_DSMC_debug
- build_DSMC_N1
- build_radiation
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-DSMC"
paths:
- build_DSMC_release
- build_DSMC_debug
- build_DSMC_N1
- build_radiation
policy: pull
.defaults_DSMC_checkin: &defaults_DSMC_checkin
<<: *defaults_DSMC
rules:
- if: '$DO_CHECKIN'
- if: '$CI_PIPELINE_SOURCE == "push"'
.defaults_DSMC_nightly: &defaults_DSMC_nightly
<<: *defaults_DSMC
rules:
- if: '$DO_NIGHTLY'
.defaults_DSMC_weekly: &defaults_DSMC_weekly
<<: *defaults_DSMC
rules:
- if: '$DO_WEEKLY'
# Defaults for DSMC tests (pull-push: required if data from one job is to be accessed by another job afterwards)
.defaults_DSMC_pull_push: &defaults_DSMC_pull_push
extends: .default_param
needs: [build_DSMC]
artifacts:
paths:
- build_DSMC_release
- build_radiation
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-DSMC"
paths:
- build_DSMC_release
- build_radiation
policy: pull-push
.defaults_DSMC_weekly_pull_push: &defaults_DSMC_weekly_pull_push
<<: *defaults_DSMC_pull_push
rules:
- if: '$DO_WEEKLY'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "build": Build on check-in
# ----------------------------------------------------------------------------------------------------------------------------------------------------
reggie_download:
extends: .default_build_param
artifacts:
paths: [reggie]
cache:
key: "reggie"
paths: [reggie]
policy: push
stage: build
script:
- if [ ! -d "reggie/.git" ]; then
if [ -f "reggie/.day" ]; then mv reggie/.day .; fi ;
if [ -d "reggie" ]; then rm -rf reggie ; fi ;
git clone git@piclas.boltzplatz.eu:reggie2.0/reggie2.0.git reggie ;
if [ -f ".day" ]; then mv .day reggie/. ; fi ;
fi
- if [ -f "reggie/.git/refs/heads/master" ]; then cat reggie/.git/refs/heads/master ; fi
build:
extends: .default_build_param
needs: [reggie_download]
artifacts:
paths: [build]
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}"
paths: [build]
policy: push
stage: build
script:
- mkdir -p build ; cd build
#- cmake .. -DLIBS_BUILD_HDF5=OFF -DPICLAS_BUILD_POSTI=ON -DPOSTI_BUILD_SUPERB=ON -DPICLAS_READIN_CONSTANTS=ON ; $GENERATOR -j all
- cmake -GNinja .. -DLIBS_BUILD_HDF5=OFF -DPICLAS_BUILD_POSTI=ON -DPOSTI_BUILD_SUPERB=ON -DPICLAS_READIN_CONSTANTS=ON ; ninja -j0 all
build_maxwell:
extends: .default_build_param
needs: [reggie_download]
artifacts:
paths: [build_maxwell]
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-MAX"
paths: [build_maxwell]
policy: push
stage: build
script:
- mkdir -p build_maxwell ; cd build_maxwell
- cmake .. -DPICLAS_DEBUG_MEMORY=ON -DPICLAS_PARTICLES=OFF -DLIBS_BUILD_HDF5=OFF -DPICLAS_READIN_CONSTANTS=ON ; $GENERATOR -j $NCORES all
build_poisson:
extends: .default_build_param
needs: [reggie_download]
artifacts:
paths:
- build_poisson_release_RK3
- build_poisson_release_Leapfrog
- build_poisson_debug_RK3
- build_poisson_debug_Leapfrog
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-POI"
paths:
- build_poisson_release_RK3
- build_poisson_release_Leapfrog
- build_poisson_debug_RK3
- build_poisson_debug_Leapfrog
policy: push
stage: build
script:
- mkdir -p build_poisson_release_RK3 ; cd build_poisson_release_RK3
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPICLAS_EQNSYSNAME=poisson -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=RK3 -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_poisson_debug_RK3 ; cd build_poisson_debug_RK3
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DPICLAS_EQNSYSNAME=poisson -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=RK3 -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_poisson_release_Leapfrog ; cd build_poisson_release_Leapfrog
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPICLAS_EQNSYSNAME=poisson -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=Leapfrog -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_poisson_debug_Leapfrog ; cd build_poisson_debug_Leapfrog
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DPICLAS_EQNSYSNAME=poisson -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=Leapfrog -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
build_poisson_petsc:
extends: .default_build_param
needs: [reggie_download]
artifacts:
paths:
- build_poisson_petsc_release_RK3
- build_poisson_petsc_release_Leapfrog
- build_poisson_petsc_debug_RK3
- build_poisson_petsc_debug_Leapfrog
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-POI-PETSC"
paths:
- build_poisson_petsc_release_RK3
- build_poisson_petsc_release_Leapfrog
- build_poisson_petsc_debug_RK3
- build_poisson_petsc_debug_Leapfrog
policy: push
stage: build
script:
- mkdir -p build_poisson_petsc_release_RK3 ; cd build_poisson_petsc_release_RK3
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPICLAS_EQNSYSNAME=poisson -DLIBS_USE_PETSC=ON -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=RK3 -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_poisson_petsc_debug_RK3 ; cd build_poisson_petsc_debug_RK3
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DPICLAS_EQNSYSNAME=poisson -DLIBS_USE_PETSC=ON -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=RK3 -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_poisson_petsc_release_Leapfrog ; cd build_poisson_petsc_release_Leapfrog
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPICLAS_EQNSYSNAME=poisson -DLIBS_USE_PETSC=ON -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=Leapfrog -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_poisson_petsc_debug_Leapfrog ; cd build_poisson_petsc_debug_Leapfrog
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DPICLAS_EQNSYSNAME=poisson -DLIBS_USE_PETSC=ON -DPICLAS_CODE_ANALYZE=ON -DPICLAS_TIMEDISCMETHOD=Leapfrog -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
build_DSMC:
extends: .default_build_param
needs: [reggie_download]
artifacts:
paths:
- build_DSMC_release
- build_DSMC_debug
- build_DSMC_N1
- build_radiation
cache:
- *reggie_cache
- key: "${CI_COMMIT_REF_SLUG}-DSMC"
paths:
- build_DSMC_release
- build_DSMC_debug
- build_DSMC_N1
- build_radiation
policy: push
stage: build
script:
- mkdir -p build_DSMC_release ; cd build_DSMC_release
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPICLAS_TIMEDISCMETHOD=DSMC -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_DSMC_debug ; cd build_DSMC_debug
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DPICLAS_TIMEDISCMETHOD=DSMC -DLIBS_BUILD_HDF5=OFF ; $GENERATOR -j $NCORES all
- cd ..
- mkdir -p build_DSMC_N1 ; cd build_DSMC_N1
- cmake .. -DCMAKE_BUILD_TYPE=Release -DPICLAS_TIMEDISCMETHOD=DSMC -DLIBS_BUILD_HDF5=OFF -DPICLAS_POLYNOMIAL_DEGREE=1 ; $GENERATOR -j $NCORES all
- if [ -n "${DO_WEEKLY}" ]; then
cd .. ;
mkdir -p build_radiation ; cd build_radiation ;
cmake .. -DLIBS_BUILD_HDF5=OFF -DPICLAS_BUILD_POSTI=ON -DPOSTI_BUILD_SUPERB=ON -DPICLAS_READIN_CONSTANTS=ON -DPICLAS_TIMEDISCMETHOD=Radiation -DPICLAS_INTKIND8=ON ; $GENERATOR -j $NCORES all ;
fi
build_hopr:
extends: .default_build_param
artifacts:
paths: [hopr]
cache:
- *reggie_cache
stage: build
script:
- git clone https://github.com/hopr-framework/hopr.git hopr;
- cd hopr ; mkdir -p build ; cd build;
- echo `pwd`
- cmake .. -DLIBS_BUILD_HDF5=OFF
- echo $GENERATOR
- echo $NCORES
- $GENERATOR -j $NCORES all
- ls bin/hopr
#- $GENERATOR -j $NCORES all &> output.txt;
#- tail -n 20 output.txt;
#- rm output.txt;
rules:
- if: '$DO_WEEKLY'
build_hopr_in_piclas:
tags: [withmodules-concurrent]
needs: [reggie_download]
cache:
<<: *reggie_cache
stage: build
script:
- mkdir -p build_hopr_lib ; cd build_hopr_lib
- python ../reggie/reggie.py ../regressioncheck/WEK_HOPR
rules:
#- if: '$DO_CORE_SPLIT'
#when: never
#- if: '$DO_NODE_SPLIT'
#when: never
- if: '$DO_WEEKLY'
build_no_git:
tags: [withmodules-concurrent]
stage: build
cache:
<<: *reggie_cache
script:
- echo " Installing branch $CI_COMMIT_REF_NAME without git"
- git clone --depth=1 --branch=$CI_COMMIT_REF_NAME git@piclas.boltzplatz.eu:piclas/piclas.git piclas-no-git
- rm -rf piclas-no-git/.git* ; cd piclas-no-git ; ls -la
- mkdir build_ ; cd build_ ;
- cmake .. -DLIBS_BUILD_HDF5=OFF
- $GENERATOR -j $NCORES all
rules:
- if: '$DO_WEEKLY'
build_outside_repository:
tags: [withmodules-concurrent]
stage: build
cache:
<<: *reggie_cache
script:
- echo " Installing branch $CI_COMMIT_REF_NAME outside the piclas directory/repository"
- REPOPATH=$(echo `pwd`)
- cd .. ;
- mkdir -p build-piclas-outside ; cd build-piclas-outside ;
- cmake ${REPOPATH} -DLIBS_BUILD_HDF5=OFF
- $GENERATOR -j $NCORES all
- cd .. ; rm -r build-piclas-outside ;
rules:
- if: '$DO_WEEKLY'
build_no_git_libs:
tags: [withmodules-concurrent]
stage: build
cache:
<<: *reggie_cache
script:
- echo " Installing branch $CI_COMMIT_REF_NAME without git but with external libs"
- git clone --depth=1 --branch=$CI_COMMIT_REF_NAME git@piclas.boltzplatz.eu:piclas/piclas.git piclas-no-git-but-libs
- rm -rf piclas-no-git-but-libs/.git* ; cd piclas-no-git-but-libs ; ls -la
- mkdir build_ ; cd build_
- cmake .. -DLIBS_BUILD_HDF5=ON -DLIBS_BUILD_MATH_LIB=ON -DLIBS_BUILD_MATH_LIB_VENDOR=OpenBLAS
- echo " Compiling with -DLIBS_BUILD_HDF5=ON -DLIBS_BUILD_MATH_LIB=ON -DLIBS_BUILD_MATH_LIB_VENDOR=OpenBLAS ..."
- $GENERATOR -j $NCORES all &> output.txt
- tail -n 20 output.txt
- rm output.txt
- ls bin/piclas
rules:
- if: '$DO_WEEKLY'
build_petsc_in_piclas:
tags: [withmodules-concurrent]
needs: [reggie_download]
cache:
<<: *reggie_cache
stage: build
script:
- mkdir -p build_petsc_lib ; cd build_petsc_lib
- cmake -DPICLAS_EQNSYSNAME=poisson -DPICLAS_TIMEDISCMETHOD=RK3 -DPICLAS_CODE_ANALYZE=ON -DLIBS_BUILD_HDF5=OFF -DLIBS_USE_PETSC=ON -DLIBS_BUILD_PETSC=ON ..
- echo " Compiling with Poisson, RK3 and self-built PETSc (-DPICLAS_EQNSYSNAME=poisson -DPICLAS_TIMEDISCMETHOD=RK3 -DLIBS_USE_PETSC=ON -DLIBS_BUILD_PETSC=ON) ..."
- $GENERATOR -j $NCORES all
- python ../reggie/reggie.py -e ./bin/piclas ../regressioncheck/NIG_poisson_PETSC
rules:
- if: '$DO_WEEKLY'
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_checkin": Run most simple reggie with previous builds on check-in
# ----------------------------------------------------------------------------------------------------------------------------------------------------
run_basic:
<<: *defaults_checkin
stage: reggie_checkin
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/run_basic/maxwell -e ./bin/piclas
maxwell:
<<: *defaults_maxwell
stage: reggie_checkin
script:
- cd build_maxwell ; python ../reggie/reggie.py ../regressioncheck/CHE_maxwell/maxwell -e ./bin/piclas
poisson_release:
<<: *defaults_poisson_checkin
stage: reggie_checkin
script:
- cd build_poisson_release_RK3 ; python ../reggie/reggie.py ../regressioncheck/CHE_poisson -e ./bin/piclas
poisson_debug:
<<: *defaults_poisson_checkin
stage: reggie_checkin
script:
- cd build_poisson_debug_RK3 ; python ../reggie/reggie.py ../regressioncheck/CHE_poisson -e ./bin/piclas
poisson_petsc_release:
<<: *defaults_poisson_petsc_checkin
stage: reggie_checkin
script:
- cd build_poisson_petsc_release_RK3 ; python ../reggie/reggie.py ../regressioncheck/CHE_poisson -e ./bin/piclas
poisson_petsc_debug:
<<: *defaults_poisson_petsc_checkin
stage: reggie_checkin
script:
- cd build_poisson_petsc_debug_RK3 ; python ../reggie/reggie.py ../regressioncheck/CHE_poisson -e ./bin/piclas
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_feature_checkin": Run most simple reggie features with previous builds on check-in (must be very fast)
# - feature_PIC_gyrotron_variable_Bz: 1 cell layer gyrotron emission with variable B(z) field
# - feature_PIC_single_particle_PML : 4^3 cart box with a particle and 1 cell layer PMLs for all directions
# ----------------------------------------------------------------------------------------------------------------------------------------------------
CHE_PIC_maxwell_RK4:
<<: *defaults_checkin
stage: reggie_feature_checkin
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/CHE_PIC_maxwell_RK4 -e ./bin/piclas
# Commented out 07/12/2020 - to be fixed (this reggie fails due to bug in implicit particle tracking)
#CHE_PIC_maxwell_implicitBC:
# <<: *defaults_checkin
# stage: reggie_feature_checkin
# script:
# - cd build ; python ../reggie/reggie.py ../regressioncheck/CHE_PIC_maxwell_implicitBC
CHE_DSMC:
<<: *defaults_DSMC_checkin
stage: reggie_feature_checkin
script:
- cd build_DSMC_release ; python ../reggie/reggie.py ../regressioncheck/CHE_DSMC -e ./bin/piclas
- cd ..
- cd build_DSMC_N1 ; python ../reggie/reggie.py ../regressioncheck/CHE_DSMC -e ./bin/piclas
CHE_BGK:
<<: *defaults_checkin
stage: reggie_feature_checkin
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/CHE_BGK
CHE_FPFlow:
<<: *defaults_checkin
stage: reggie_feature_checkin
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/CHE_FPFlow
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_DSMC_nightly": Build and run chemistry examples on nightly (check reaction rates in RESERVOIR simulation)
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_Reservoir:
<<: *defaults_DSMC_nightly
stage: reggie_DSMC_nightly
script:
- cd build_DSMC_release/ ; python ../reggie/reggie.py ../regressioncheck/NIG_Reservoir -e bin/piclas
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_DSMC_nightly": Build and run tracking examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_Tracking:
<<: *defaults_DSMC_nightly
stage: reggie_DSMC_nightly
script:
- cd build_DSMC_debug/ ; python ../reggie/reggie.py ../regressioncheck/NIG_tracking_DSMC -e ./bin/piclas
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_DSMC_nightly": Build and run DSMC examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_DSMC:
<<: *defaults_DSMC_nightly
stage: reggie_DSMC_nightly
script:
- cd build_DSMC_release/ ; python ../reggie/reggie.py ../regressioncheck/NIG_DSMC -e bin/piclas
- cd ..
- cd build_DSMC_debug/ ; python ../reggie/reggie.py ../regressioncheck/NIG_DSMC -e bin/piclas
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_tools_nightly": Build and run superB and piclas2vtk examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_SuperB_piclas:
<<: *defaults_nightly
needs: [build]
stage: reggie_tools_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_SuperB -e ./bin/piclas
NIG_SuperB_standalone:
<<: *defaults_nightly
needs: [build]
stage: reggie_tools_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_SuperB -e ./bin/superB
NIG_piclas2vtk:
<<: *defaults_nightly
stage: reggie_tools_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_piclas2vtk
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_bgk_nightly": Build and run BGK-Flow examples on nightly (CURRENTLY NO NIGHTLY TEST FOR BGK)
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# gnu_NIG_BGK-Flow:
# <<: *defaults_nightly
# stage: reggie_bgk_nightly
# tags: [withmodules-concurrent]
# script:
# - cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_BGK-Flow
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_nightly": Build and run
# - feature_PIC_single_particle/ : basic PIC test with a single particle in a cart box
# - test particle emission for gyrotron setup with fixed electric current of 44 A
# - test record points for TWT setup and compare with h5diff
# - h-p-convtests
# - feature_maxwell_dipole_cylinder_PML/ : curved cylinder geometry with PML on axis and dipole in center for testing RP output
# - feature_maxwell_dipole_dielectric/ : curved sphere with dielectric region in the center and dipole at near the edge
# - feature_maxwell_ExactFlux_PML/ : inner BC that emits a planar wave in z-direction (PMLs are placed at
# the entry and exit of the cuboid domain)
# examples on nightly
# ----------------------------------------------------------------------------------------------------------------------------------------------------
NIG_dielectric:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_dielectric
NIG_PIC_maxwell_RK4:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_maxwell_RK4/
NIG_convtest_maxwell:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_convtest_maxwell
NIG_convtest_t_maxwell:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_convtest_t_maxwell
NIG_convtest_t_poisson:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_convtest_t_poisson
NIG_convtest_poisson:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_convtest_poisson
NIG_PIC_poisson_RK3:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_RK3/
NIG_PIC_poisson_Boris-Leapfrog:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_Boris-Leapfrog/
NIG_PIC_poisson_Boris-Leapfrog_PETSC:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_Boris-Leapfrog_PETSC/
NIG_PIC_poisson_Leapfrog:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_Leapfrog/
# NIG_PIC_poisson_Leapfrog_not_working:
# <<: *defaults_nightly
# stage: reggie_nightly
# script:
# - cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_Leapfrog_not_working/
# Crank-Nicolson (2nd order implicit) time integration
# NIG_PIC_poisson_powerdensity:
# <<: *defaults_nightly
# stage: reggie_nightly
# script:
# - cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_powerdensity/
NIG_poisson:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_poisson/
NIG_poisson_PETSC:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_poisson_PETSC/
NIG_maxwell_RK4:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_maxwell_RK4/
NIG_PIC_poisson_plasma_wave:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_plasma_wave/
NIG_maxwell_dipole_dielectric:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_maxwell_dipole_dielectric/
# Commented out 07/12/2020 - to be fixed:
# this reggie has two examples:
# - imexfluid (fails): differnces as compared with the ref. files because particles are lost
# - surface_flux (works): no problems detected
#NIG_PIC_poisson_implicit04:
# <<: *defaults_nightly
# stage: reggie_nightly
# script:
# - cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_poisson_implicit04/
NIG_LoadBalance:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_LoadBalance/
NIG_code_analyze:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_code_analyze/
NIG_IntKind8:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_IntKind8/
NIG_PIC_Deposition:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_PIC_Deposition/
# 2023-10-28: Deactivate RK3 for photoionization for now in order to save time when running the reggies. This features is currently only used in combination with Leapfrog anyway.
# 2024-01-17: Moved to weekly (reactivated 4 + move to weekly, move release_Leapfrog and debug_Leapfrog from nightly to weekly to reduce time further)
# --- weekly
WEK_Photoionization_release_RK3:
<<: *defaults_poisson_nightly
stage: reggie_weekly
script:
- cd build_poisson_release_RK3; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_WEEKLY'
WEK_Photoionization_debug_RK3:
<<: *defaults_poisson_nightly
stage: reggie_weekly
script:
- cd build_poisson_debug_RK3; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_WEEKLY'
WEK_Photoionization_petsc_release_RK3:
<<: *defaults_poisson_petsc_nightly
stage: reggie_weekly
script:
- cd build_poisson_petsc_release_RK3; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_WEEKLY'
WEK_Photoionization_petsc_debug_RK3:
<<: *defaults_poisson_petsc_nightly
stage: reggie_weekly
script:
- cd build_poisson_petsc_debug_RK3; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_WEEKLY'
WEK_Photoionization_release_Leapfrog:
<<: *defaults_poisson_nightly
stage: reggie_weekly
script:
- cd build_poisson_release_Leapfrog; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_WEEKLY'
WEK_Photoionization_debug_Leapfrog:
<<: *defaults_poisson_nightly
stage: reggie_weekly
script:
- cd build_poisson_debug_Leapfrog; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_WEEKLY'
# --- nightly
NIG_Photoionization_petsc_release_Leapfrog:
<<: *defaults_poisson_petsc_nightly
stage: reggie_nightly
script:
- cd build_poisson_petsc_release_Leapfrog; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_NIGHTLY'
NIG_Photoionization_petsc_debug_Leapfrog:
<<: *defaults_poisson_petsc_nightly
stage: reggie_nightly
script:
- cd build_poisson_petsc_debug_Leapfrog; python ../reggie/reggie.py ../regressioncheck/NIG_Photoionization -e ./bin/piclas
rules:
- if: '$DO_CORE_SPLIT'
when: never
- if: '$DO_NODE_SPLIT'
when: never
- if: '$DO_NIGHTLY'
NIG_Radiation:
<<: *defaults_nightly
stage: reggie_nightly
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_Radiation
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_nightly_build_all": Build and run
# - build all specified compile options in "run_basic" with BUILD_HDF5=ON
# - sanitizer for maxwell/poisson (CMAKE_BUILD_TYPE=Sanitize,Profile)
# - math tools Lapack and OpenBlas with LIBS_BUILD_MATH_LIB = ON and LIBS_BUILD_MATH_LIB_VENDOR = LAPACK,OpenBLAS
# ----------------------------------------------------------------------------------------------------------------------------------------------------
build_all:
<<: *defaults_nightly
stage: reggie_nightly_build_all
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/run_basic
build_sanitize:
<<: *defaults_nightly
stage: reggie_nightly_build_all
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_sanitize
build_math_tools:
<<: *defaults_nightly
stage: reggie_nightly_build_all
script:
- cd build ; python ../reggie/reggie.py ../regressioncheck/NIG_math_libs
# ----------------------------------------------------------------------------------------------------------------------------------------------------
# Stage "reggie_weekly": Build and run examples once a week
# - feature_PIC_maxwell_plasma_wave/ : test a plasma-wave with different time-integration and maxwell's equations
# ----------------------------------------------------------------------------------------------------------------------------------------------------
WEK_PIC_maxwell:
<<: *defaults_weekly
stage: reggie_weekly
script: