-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
1153 lines (1093 loc) · 53.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
# Copyright 2020-2024 Alfredo A. Correa
# Install docker (for local CI or to set up CI machine)
# sudo apt install docker.io
# Install gitlab-runner
# curl -L "https://packages.gitlab.com/install/repositories/runner/gitlab-runner/script.deb.sh" | sudo bash
# sudo apt-get install gitlab-runner
image: debian:stable
# image: npneq/debian_inq_deps:bookworm
workflow:
auto_cancel:
on_new_commit: interruptible
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
# https://stackoverflow.com/a/78636529/225186
variables:
GIT_SUBMODULE_STRATEGY: recursive
CODECOV_TOKEN: "999feb5b-a599-4d02-b9c5-46d977247f3a"
RT_VERSION: "0.1"
NVIDIA_DISABLE_REQUIRE: 1 # disable nvidia driver check
SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
GIT_DEPTH: "0" # Tells git to fetch all the branches of the project, required by the analysis task
g++: # debian-stable: default is gcc 12.2.0 as of April 2024
stage: build
interruptible: false
tags:
- non-shared
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates cmake g++ make libboost-timer-dev libboost-serialization-dev libblas-dev liblapack-dev libfftw3-dev pkg-config
- g++ --version
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-D_GLIBCXX_DEBUG=1"
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure -T Test
g++-m32 sanitize:
stage: build
image: debian:latest
tags:
- non-shared
- high-bandwidth # for boost source download
- x86_64 # for g++-multilib in image
interruptible: true
script:
- dpkg --add-architecture i386
- apt-get -qq update
- apt-get -qq install --no-install-recommends -y --quiet ca-certificates g++ g++-multilib cmake libboost-serialization-dev:i386 make tar wget
- mkdir build && cd build
- c++ --version
- cmake .. -DCMAKE_CXX_FLAGS="-m32 -fsanitize=address -D_GLIBCXX_SANITIZE_VECTOR" -DCMAKE_BUILD_TYPE=Debug
- cmake --build .
- ctest -j 1 --output-on-failure
needs: ["g++"]
arm64:
stage: build
image: arm64v8/debian:latest
tags:
- non-shared
- arm # for image
interruptible: true
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates g++ cmake make libblas-dev liblapack-dev libboost-timer-dev libboost-serialization-dev libopenmpi-dev pkg-config libfftw3-dev tar wget
- mkdir build && cd build
- c++ --version
- cmake .. -DCMAKE_BUILD_TYPE=Debug
- cmake --build .
- OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 ctest -j 2 --output-on-failure
needs: ["g++"]
coverage:
stage: build
tags:
- non-shared
- docker
allow_failure: true
interruptible: true
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates cmake curl g++ gcovr git make lcov libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev pkg-config wget
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="--coverage -O0 -fno-inline -fno-inline-small-functions -fno-default-inline" -DCMAKE_EXE_LINKER_FLAGS="--coverage"
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 1 --output-on-failure -T Test
- ctest -j 1 --output-on-failure -T Coverage
- gcovr --xml-pretty --exclude-unreachable-branches --print-summary -o coverage.xml --root ${CI_PROJECT_DIR}
# - lcov --directory . --capture --output-file coverage.info
# - lcov --remove coverage.info '/usr/*' --output-file coverage.info
# - lcov --list coverage.info && genhtml coverage.info
- bash <(curl -s https://codecov.io/bash) || echo 'Codecov failed to upload'
coverage: /^\s*Percentage\s+Coverage:\s*\d+.\d+\%/
# coverage: /^\s*lines:\s*\d+.\d+\%/
artifacts:
name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
expire_in: 2 days
reports:
coverage_report:
coverage_format: cobertura
path: build/coverage.xml
needs: ["g++"]
g++ cppcheck cpplint memcheck: # debian-stable: gcc 12 as of Dec 2023
stage: build
allow_failure: false
interruptible: true
tags:
- non-shared
- docker
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates cmake cppcheck cpplint g++ make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev liblapack-dev libmpich-dev pkg-config valgrind
- g++ --version
- cpplint --version
- cppcheck --version
- valgrind --version
- mkdir build && cd build
- export VALGRIND_EXE="valgrind --trace-children=yes --leak-check=full --track-origins=yes --show-leak-kinds=all --suppressions=.valgrind-suppressions --gen-suppressions=all --error-exitcode=1 "
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_CPPLINT="cpplint;--quiet" -DCMAKE_CXX_CPPCHECK="cppcheck;--enable=all;--suppress=missingIncludeSystem;--inline-suppr;--std=c++17;--check-config;--error-exitcode=1"
- cmake --build . --parallel 2 || cmake --build . --verbose
- export OMPI_ALLOW_RUN_AS_ROOT=1
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
- ctest -j 2 --output-on-failure -T memcheck || ctest --verbose --output-on-failure --rerun-failed -T memcheck
needs: ["g++"]
# clang++ sanitizer:
# stage: build
# tags:
# - non-shared
# - docker
# # image: debian:testing
# allow_failure: true
# interruptible: true
# script:
# - apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates cmake clang make libasan8 libasan6 libclang-rt-dev libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev pkg-config
# - mkdir build && cd build
# - CXX=clang++ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer" # ,undefined,pointer-compare,pointer-subtract,float-divide-by-zero -fno-omit-frame-pointer -fno-sanitize-recover=all"
# - cmake --build . --parallel 2 || cmake --build . --verbose
# - ctest -j 2 --output-on-failure -T Test
# needs: ["clang++"]
# g++ sanitizer:
# stage: build
# # image: debian:testing
# tags:
# - non-shared
# - docker
# interruptible: true
# script:
# - apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates cmake g++ make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev pkg-config
# - mkdir build && cd build
# - cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined,pointer-compare,pointer-subtract,float-divide-by-zero -fno-sanitize-recover=all"
# - cmake --build . --parallel 2 || cmake --build . --verbose
# - ctest -j 2 --output-on-failure -T Test
# needs: ["g++"]
g++-7:
stage: build
image: debian:oldoldstable # default is gcc 8 as of Dec 2023
tags:
- non-shared
- docker
interruptible: true
script:
- arch
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates cmake g++-7 make libboost-serialization-dev libblas-dev libfftw3-dev libopenmpi-dev pkg-config wget
- wget https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-`arch`.sh --no-verbose
- sh ./cmake-*.sh --skip-license --prefix=/usr
- cmake --version
- g++-7 --version
- mkdir build && cd build
- CXX=g++-7 cmake .. -DCMAKE_BUILD_TYPE=Debug -DDISABLE_MPI=ON
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure
needs: ["g++"]
g++-unstable c++23 par: # debian-testing: default is gcc 14.2.0 as of Sep 2022
stage: build
image: debian:unstable
tags:
- non-shared
- docker
allow_failure: true
interruptible: true
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet g++ pkg-config cmake make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev libopenmpi-dev libtbb-dev
- mkdir build && cd build
- g++ --version
- CXX=g++ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=23 -DCMAKE_CXX_FLAGS="-fimplicit-constexpr"
- cmake --build . --parallel 2 || cmake --build . --verbose
- OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 ctest --output-on-failure
needs: ["g++-testing c++20"]
clang++:
stage: build
tags:
- non-shared
interruptible: false
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet clang cmake make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev liblapack-dev pkg-config
- mkdir build && cd build
- clang++ --version
- CXX=clang++ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-D_GLIBCXX_DEBUG=1"
- cmake --build . --parallel 2 || cmake --build . --parallel 1 --verbose
- ctest -j 2 --output-on-failure
clang++ mull:
image: ubuntu:jammy
stage: build
tags:
- x86_64 # for mull
- non-shared
interruptible: true
allow_failure: true
script:
- apt-get -qq update
- apt-get -qq install --no-install-recommends -y --quiet gnupg curl wget ca-certificates g++ clang-11 make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev liblapack-dev pkg-config
- wget --no-verbose -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.30.0-rc4/cmake-3.30.0-rc4-linux-`arch`.sh # for CMAKE_TEST_LAUNCHER
- sh cmake-install.sh --skip-license --prefix=/usr
- cmake --version
- curl -1sLf 'https://dl.cloudsmith.io/public/mull-project/mull-stable/setup.deb.sh' | bash
- clang++-11 --version
- apt-get -qq update
- apt search mull
- apt-get -qq install --no-install-recommends -y --quiet mull-11 libclang-cpp11
- mkdir build && cd build
- mull-runner-11 --version
- CXX=clang++-11 cmake .. -DCMAKE_CXX_FLAGS="-O1 -fexperimental-new-pass-manager -fpass-plugin=/usr/lib/mull-ir-frontend-11 -g -grecord-command-line -fprofile-instr-generate -fcoverage-mapping"
- cmake --build . --parallel 2 || cmake --build . --parallel 1 --verbose
- ctest -j 2 --output-on-failure --verbose
- cd test
- ls *.x | xargs -n 1 sh -c 'echo $0 && ((mull-runner-11 --ld-search-path=/usr/lib/x86_64-linux-gnu $0 -test-program=ctest -- -j2 --stop-on-failure) || exit 255)'
needs: ["clang++"]
# deb:
# stage: build
# script:
# - apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates cmake g++ make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev pkg-config
# - mkdir build && cd build
# - cmake .. -DCMAKE_BUILD_TYPE=Release
# - cmake --build . --parallel 2 || cmake --build . --verbose
# - ctest -j 2 --output-on-failure
# - cpack -G DEB
# - ls -all
# - dpkg -i multi_all.deb
# - ls -all /usr/include/multi
# - c++ ../test/main.cpp
# artifacts:
# paths:
# - build/multi_all.deb
# needs: ["g++", "clang++"]
clang++-latest libc++:
stage: build
image: debian:latest
tags:
- non-shared
- docker
- high-bandwidth
interruptible: true
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates clang cmake make libboost-timer-dev libboost-serialization-dev libblas-dev libc++-dev libc++abi-dev libfftw3-dev liblapack-dev pkg-config tar wget
# - wget https://downloads.sourceforge.net/project/boost/boost/1.72.0/boost_1_72_0.tar.gz --no-verbose # 1.70 doesn't install boost timer well
# - tar -xf boost_1_72_0.tar.gz
# - cd boost_1_72_0
# - ./bootstrap.sh --with-toolset=clang
# - ./b2 toolset=clang cxxflags=-stdlib=libc++ linkflags=-stdlib=libc++ --with-serialization --with-timer install -j4 # libc++ only works with boost test compiled with libc++
# - cd ..
- mkdir build && cd build
- clang++ --version
- CXX=clang++ cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-stdlib=libc++ -DBOOST_NO_CXX98_FUNCTION_BASE -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_DEBUG"
- cmake --build .
- ctest -j 2 --output-on-failure
needs: ["clang++"]
# - name: Install vcpkg
# run: |
# git clone https://github.com/microsoft/vcpkg.git
# .\vcpkg\bootstrap-vcpkg.bat
# - name: Install Boost
# run: .\vcpkg\vcpkg install boost-multi-array boost-timer boost-serialization
# - name: Set up Boost environment variables
# run: |
# echo "BOOST_ROOT=$(Get-Location)\vcpkg\installed\x64-windows" >> $env:GITHUB_ENV
# echo "BOOST_INCLUDEDIR=$(Get-Location)\vcpkg\installed\x64-windows\include" >> $env:GITHUB_ENV
# echo "BOOST_LIBRARYDIR=$(Get-Location)\vcpkg\installed\x64-windows\lib" >> $env:GITHUB_ENV
# echo "PATH=$(Get-Location)\vcpkg\installed\x64-windows\bin;$env:PATH" >> $env:GITHUB_ENV
# - name: Configure CMake
# run: cmake -S . -B build -A x64 -DCMAKE_TOOLCHAIN_FILE=.\vcpkg\scripts\buildsystems\vcpkg.cmake -DBOOST_ROOT=.\vcpkg\installed\x64-windows
vs2019-windows:
stage: build
only:
refs:
- master
allow_failure: true
interruptible: true
variables:
BOOST_ROOT: ${CI_PROJECT_DIR}/vcpkg/installed/x64-windows
# BOOST_INCLUDEDIR: ${CI_PROJECT_DIR}/vcpkg/installed/x64-windows/include
# BOOST_LIBRARYDIR: ${CI_PROJECT_DIR}/vcpkg/installed/x64-windows/lib
script:
- choco --version
- choco install -y visualstudio2019community poshgit
- git clone --depth=1 https://github.com/microsoft/vcpkg.git
- .\vcpkg\bootstrap-vcpkg.bat
- .\vcpkg\vcpkg install boost-multi-array boost-timer
- mkdir build
- cmake --version
- cmake -S . -B build -DCMAKE_CXX_STANDARD=23
- cmake --build build --config Release --parallel 2 --verbose
- $env:Path += ";${CI_PROJECT_DIR}/vcpkg/installed/x64-windows/bin"
- ctest --test-dir build --output-on-failure -C Release
tags:
- saas-windows-medium-amd64
needs: ["clang++", "g++"]
timeout: 30 minutes
# vs2022-windows:
# stage: build
# allow_failure: true
# script:
# # - choco --version
# # - choco upgrade -y chocolatey
# - choco --version
# - choco install -y visualstudio2022community
# - choco install -y boost-msvc-14.2 --version 1.74.0 # --params "/StaticBuild"
# - mkdir build
# - cmake --version
# - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -A x64 # -DBOOST_ROOT="C:\local\boost_1_74_0" -DBOOST_LIBRARYDIR="C:\local\boost_1_74_0\lib64-msvc-14.2" # c:/local/boost_1_74_0/lib64-msvc-14.2
# - cmake --build build --config Release
# - $env:Path += ';C:\local\boost_1_74_0\lib64-msvc-14.2' # C:\local\boost_1_74_0; ;C:\Program Files\CMake\bin
# - ctest --test-dir build --output-on-failure -C Release
# tags:
# - saas-windows-medium-amd64
# timeout: 30 # minutes
# # rules:
# # - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# needs: ["vs2019-windows"]
# vs2017-windows:
# stage: build
# allow_failure: true
# script:
# - choco --version
# - choco install -y visualstudio2017community
# - choco install -y boost-msvc-14.2 --version 1.74.0 # --params "/StaticBuild"
# - mkdir build
# - cmake --version
# - cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -A x64 # -DBOOST_ROOT="C:\local\boost_1_74_0" -DBOOST_LIBRARYDIR="C:\local\boost_1_74_0\lib64-msvc-14.2" # c:/local/boost_1_74_0/lib64-msvc-14.2
# - cmake --build build --config Release
# - $env:Path += ';C:\local\boost_1_74_0\lib64-msvc-14.2' # C:\local\boost_1_74_0; ;C:\Program Files\CMake\bin
# - ctest --test-dir build --output-on-failure -C Release
# tags:
# - saas-windows-medium-amd64
# # rules:
# # - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
# needs: ["vs2019-windows"]
# clang++-macos:
# interruptible: true
# stage: build
# # image: macos-14-xcode-15
# # variables:
# # HOMEBREW_NO_AUTO_UPDATE: 1
# tags:
# - shared-macos-amd64
# # - saas-macos-medium-m1
# # - saas-macos-large-m2pro
# allow_failure: true
# script:
# #- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates clang cmake make libblas-dev libc++-dev libc++abi-dev libfftw3-dev pkg-config tar wget
# #- wget https://downloads.sourceforge.net/project/boost/boost/1.72.0/boost_1_72_0.tar.gz --no-verbose # 1.70 doesn't install boost timer well, there is no version 1.72 in sourceforge
# #- tar -xf boost_1_72_0.tar.gz
# #- cd boost_1_72_0
# #- ./bootstrap.sh --with-toolset=clang
# #- ./b2 toolset=clang cxxflags=-stdlib=libc++ linkflags=-stdlib=libc++ --with-serialization --with-test --with-timer install -j4 # libc++ only works with boost test compiled with libc++
# #- cd ..
# - mkdir build && cd build
# - c++ --version
# - CXX=c++ cmake .. -DCMAKE_BUILD_TYPE=Debug # -DCMAKE_CXX_FLAGS="-stdlib=libc++ -DBOOST_NO_CXX98_FUNCTION_BASE -D_LIBCPP_ENABLE_CXX17_REMOVED_AUTO_PTR -D_LIBCPP_ENABLE_DEBUG_MODE=1 -D_LIBCPP_DEBUG_RANDOMIZE_UNSPECIFIED_STABILITY=1 -D_LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK=1"
# - cmake --build .
# - ctest -j 2 --output-on-failure
# needs: ["clang++"]
clang++-m32:
stage: build
image: debian:latest
tags:
- non-shared
- high-bandwidth # for boost source download
- x86_64 # for g++-multilib in image
interruptible: true
script:
- dpkg --add-architecture i386
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates clang g++ g++-multilib git cmake make libboost-serialization-dev:i386 tar wget
- mkdir build && cd build
- c++ --version
- CXX=clang++ cmake .. -DCMAKE_CXX_FLAGS="-m32" -DCMAKE_BUILD_TYPE=Debug
- cmake --build .
- ctest -j 2 --output-on-failure
needs: ["clang++"]
clang++-latest tidy iwyu:
stage: build
image: debian:latest # clang 18 as of Apr 2024
tags:
- non-shared
- docker
interruptible: true
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet clang clang-tidy cmake iwyu make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev liblapack-dev pkg-config
- mkdir build && cd build
- clang++ --version
- clang-tidy --version
- iwyu --version
- CXX=clang++ cmake .. -DCMAKE_CXX_STANDARD=20 -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_CLANG_TIDY=clang-tidy -DCMAKE_CXX_INCLUDE_WHAT_YOU_USE="iwyu;-Xiwyu;--mapping_file=$PWD/../.iwyu-test.imp;-Xiwyu;--no_fwd_decls;-Xiwyu;--error"
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure
needs: ["clang++"]
g++-testing c++20:
stage: build
image: debian:testing
tags:
- non-shared
- docker
interruptible: true
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet g++ pkg-config cmake make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev
- mkdir build && cd build
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_FLAGS=-fimplicit-constexpr
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest --output-on-failure
needs: ["g++"]
clang++-17-unstable libc++ c++23 boost_1_84:
stage: build
image: debian:unstable # clang 17 as of March 2024
tags:
- non-shared
- docker
- high-bandwidth
interruptible: true
script: # clang 17 doesn't work with gcc 13 libstd
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates clang clang-17 cmake make libblas-dev libc++-17-dev libc++abi-17-dev libfftw3-dev pkg-config tar wget
- wget https://downloads.sourceforge.net/project/boost/boost/1.84.0/boost_1_84_0.tar.gz --no-verbose
- tar -xf boost_1_84_0.tar.gz
- cd boost_1_84_0
- ./bootstrap.sh --with-toolset=clang
- ./b2 toolset=clang cxxflags=-stdlib=libc++ linkflags=-stdlib=libc++ --with-serialization --with-test --with-timer install -j4 # libc++ only works with boost test compiled with libc++
- cd ..
- mkdir build && cd build
- CXX=clang++-17 cmake .. -DCMAKE_BUILD_TYPE=Debug -DBOOST_MULTI_STANDALONE=1 -DBUILD_TESTING=0 -DCMAKE_CXX_STANDARD=23 -DCMAKE_CXX_FLAGS="-stdlib=libc++ -D_LIBCPP_ENABLE_DEBUG_MODE=1 -D_LIBCPP_DEBUG_RANDOMIZE_UNSPECIFIED_STABILITY=1 -D_LIBCPP_DEBUG_STRICT_WEAK_ORDERING_CHECK=1" # -DBoost_INCLUDE_DIR=../boost_1_84_0 -DBoost_LIBRARY_DIR=../boost_1_84_0/stage/lib -DBoost_NO_SYSTEM_PATHS=ON
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest --output-on-failure
needs: ["clang++-latest libc++", "g++-testing c++20"]
clang++-oldoldstable:
stage: build
image: debian:oldoldstable # clang 7.0.1 as of April 2024
tags:
- non-shared
- docker
interruptible: true
script:
- arch
- apt-get -qq update && apt-get -qq install --no-install-recommends -y --quiet ca-certificates clang cmake make libboost-timer-dev libboost-serialization-dev libblas-dev libfftw3-dev pkg-config wget
- wget --no-verbose -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.30.0-rc4/cmake-3.30.0-rc4-linux-`arch`.sh # https://cmake.org/files/v3.18/cmake-3.18.0-rc1-Linux-`arch`.sh --no-verbose
- sh cmake-install.sh --skip-license --prefix=/usr
- mkdir build && cd build
- clang++ --version
- CXX=clang++ cmake .. -DCMAKE_BUILD_TYPE=Release
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure
needs: ["clang++"]
oneapi:
stage: build
image: intel/oneapi-hpckit:2023.0.0-devel-ubuntu22.04 # Intel(R) oneAPI DPC++/C++ Compiler 2023.0.0 (2023.0.0.20221201)
tags:
- non-shared
- large-disk-space
- x86_64
interruptible: true
script:
- apt-get update && apt-get install --no-install-recommends -y --quiet ca-certificates cmake curl libboost-serialization-dev libboost-timer-dev libblas-dev liblapack-dev libfftw3-dev make pkg-config
- mkdir build && cd build
- icpx --version
- CXX=icpx cmake .. -DCMAKE_BUILD_TYPE=Release -DDISABLE_MPI=ON # Intel MPI doesn't work on CI
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest --output-on-failure
oneapi-2022.2:
stage: build
image: intel/oneapi-hpckit:2022.2-devel-ubuntu20.04
tags:
- non-shared
- large-disk-space
- x86_64
allow_failure: true
interruptible: true
script:
- apt-get update && apt-get install --no-install-recommends -y --quiet ca-certificates cmake curl g++ libboost-serialization-dev libboost-timer-dev libblas-dev liblapack-dev libfftw3-dev make pkg-config
- mkdir build && cd build
- icpx --version
- CXX=icpx CXXFLAGS="-DPSTL_USE_PARALLEL_POLICIES=0" cmake .. -DCMAKE_BUILD_TYPE=Release -DDISABLE_MPI=ON # Intel MPI doesn't work on CI
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest --parallel 2 || ctest --verbose --rerun-failed --output-on-failure
needs: ["oneapi"]
oneapi-latest c++20:
stage: build
image: intel/oneapi-hpckit:latest # icpx --version (2023.2.0.20230721) as of Dec 2023
allow_failure: true
tags:
- non-shared
- large-disk-space
- high-bandwidth
- x86_64
interruptible: true
script:
# - wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
# - echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | tee /etc/apt/sources.list.d/oneAPI.list
- apt-get update && apt-get install --no-install-recommends -y --quiet ca-certificates cmake curl g++ libboost-serialization-dev libboost-timer-dev libblas-dev liblapack-dev libfftw3-dev make pkg-config
- mkdir build && cd build
- icpx --version
- CXX=icpx cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DDISABLE_MPI=ON # Intel MPI doesn't work on CI
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest --parallel 2 || ctest --verbose --rerun-failed --output-on-failure
needs: ["oneapi"]
nvhpc:
stage: build
image: nvcr.io/nvidia/nvhpc:22.11-devel-cuda11.8-ubuntu22.04 # https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nvhpc/tags
tags:
- non-shared
- large-disk-space
- x86_64
script:
- apt-get update && apt-get install --no-install-recommends -y cmake make libboost-serialization-dev
- /opt/nvidia/hpc_sdk/Linux_x86_64/2022/compilers/bin/nvc++ --version
- mkdir build && cd build
- CXX=/opt/nvidia/hpc_sdk/Linux_x86_64/2022/compilers/bin/nvc++ cmake ..
- cmake --build . --parallel 2 || cmake --build . --verbose
- export OMPI_ALLOW_RUN_AS_ROOT=1
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
- ctest --parallel 2 --output-on-failure || ctest --verbose --rerun-failed --output-on-failure
nvhpc-22.7:
stage: build
image: nvcr.io/nvidia/nvhpc:22.7-devel-cuda11.7-ubuntu22.04 # https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nvhpc/tags
tags:
- non-shared
- large-disk-space
- x86_64
interruptible: true
script:
- apt-get update && apt-get install --no-install-recommends -y cmake make libboost-timer-dev libboost-serialization-dev
- /opt/nvidia/hpc_sdk/Linux_x86_64/2022/compilers/bin/nvc++ --version
- mkdir build && cd build
- CXX=/opt/nvidia/hpc_sdk/Linux_x86_64/2022/compilers/bin/nvc++ cmake .. # TODO(correaa) add -DCMAKE_BUILD_TYPE=Release
- cmake --build . --parallel 2 || cmake --build . --verbose
- OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 ctest --output-on-failure
needs: ["nvhpc"]
# nvhpc-24.5 c++20 par:
# stage: build
# image: nvcr.io/nvidia/nvhpc:24.5-devel-cuda12.4-ubuntu22.04 # https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nvhpc/tags
# tags:
# - non-shared
# - large-disk-space
# - x86_64
# interruptible: true
# script:
# - apt-get update && apt-get install --no-install-recommends -y cmake make libboost-timer-dev libboost-serialization-dev libfftw3-dev pkg-config
# - /opt/nvidia/hpc_sdk/Linux_x86_64/2024/compilers/bin/nvc++ --version
# - mkdir build && cd build
# - CXX=/opt/nvidia/hpc_sdk/Linux_x86_64/2024/compilers/bin/nvc++ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_FLAGS="-stdpar=multicore"
# - cmake --build . --parallel 2 || cmake --build . --verbose
# - OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 ctest --output-on-failure
# needs: ["nvhpc"]
nvhpc-24.7 c++20 par:
stage: build
image: nvcr.io/nvidia/nvhpc:24.7-devel-cuda12.5-ubuntu24.04 # https://catalog.ngc.nvidia.com/orgs/nvidia/containers/nvhpc/tags
tags:
- non-shared
- large-disk-space
- x86_64
interruptible: true
script:
- apt-get update && apt-get install --no-install-recommends -y cmake make libboost-timer-dev libboost-serialization-dev libfftw3-dev pkg-config
- /opt/nvidia/hpc_sdk/Linux_x86_64/2024/compilers/bin/nvc++ --version
- mkdir build && cd build
- CXX=/opt/nvidia/hpc_sdk/Linux_x86_64/2024/compilers/bin/nvc++ cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=20 -DCMAKE_CXX_FLAGS="-stdpar=multicore"
- cmake --build . --parallel 2 || cmake --build . --verbose
- OMPI_ALLOW_RUN_AS_ROOT=1 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1 ctest --output-on-failure
needs: ["nvhpc"]
cuda:
stage: build
allow_failure: false
image: nvcr.io/nvidia/cuda:12.0.1-devel-ubuntu22.04
tags:
- non-shared
- nvidia-gpu
interruptible: true
script:
- nvidia-smi
- apt-get -qq update && apt-get install --no-install-recommends -y cmake g++-12 wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev
- mkdir build && cd build
- g++-12 --version
- /usr/local/cuda/bin/nvcc --version
- CUDACXX=/usr/local/cuda/bin/nvcc cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=61 -DCMAKE_CUDA_HOST_COMPILER=g++-12 -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest || ctest --rerun-failed --output-on-failure
needs: ["g++"]
# cuda-11.8:
# stage: build
# image: nvcr.io/nvidia/cuda:11.8.0-devel-ubuntu22.04
# tags:
# - non-shared
# - nvidia-gpu
# interruptible: true
# script:
# - nvidia-smi
# - apt-get -qq update && apt-get install --no-install-recommends -y cmake wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev
# - mkdir build && cd build
# - ls /usr/local
# - ls /usr/local/cuda-11/bin
# - /usr/local/cuda-11/bin/nvcc --version
# - CUDACXX=/usr/local/cuda-11/bin/nvcc cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=61
# - cmake --build . --parallel 2 || cmake --build . --verbose
# - ctest -j 2 --output-on-failure
# # - ../build/include/boost/multi/adaptors/thrust/test/speed.cu.x
# # - ../build/include/boost/multi/adaptors/thrust/test/speed_algo.cu.x
# # - ../build/include/boost/multi/adaptors/fftw/test/combinations.cpp.x
# needs: ["cuda"]
# cuda-11.8 mkl:
# stage: build
# image: nvcr.io/nvidia/cuda:11.8.0-devel-ubuntu22.04
# tags:
# - non-shared
# - nvidia-gpu
# - high-bandwidth
# - x86_64
# interruptible: true
# script:
# - nvidia-smi
# - apt-get -qq update && apt-get install --no-install-recommends -y cmake wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev
# - DEBIAN_FRONTEND=interactive apt-get install --no-install-recommends --yes --force-yes -y libmkl-full-dev
# - cmake --version
# - wget --no-verbose -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-x86_64.sh
# - sh ./cmake-install.sh --skip-license --prefix=/usr
# - cmake --version
# - mkdir build && cd build
# - /usr/local/cuda-11/bin/nvcc --version
# - CUDACXX=/usr/local/cuda-11/bin/nvcc cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=61
# - cmake --build . --parallel 2 || cmake --build . --verbose
# - ctest -j 2 --output-on-failure
# # - ../build/include/boost/multi/adaptors/thrust/test/speed.cu.x
# # - ../build/include/boost/multi/adaptors/thrust/test/speed_algo.cu.x
# # - ../build/include/boost/multi/adaptors/fftw/test/combinations.cpp.x
# needs: ["cuda"]
cuda-11.4.3:
stage: build
image: nvcr.io/nvidia/cuda:11.4.3-devel-ubuntu20.04
tags:
- non-shared
- nvidia-gpu
- x86_64
interruptible: true
script:
- nvidia-smi
# - export CUDA_VISIBLE_DEVICES=2
- apt-get -qq update
- DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y cmake wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev libtbb-dev
- wget --no-verbose -O cmake-install.sh https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-x86_64.sh
- sh ./cmake-install.sh --skip-license --prefix=/usr
- cmake --version
- mkdir build && cd build
- /usr/local/cuda/bin/nvcc --version
- CUDACXX=/usr/local/cuda/bin/nvcc cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=61
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure
needs: ["cuda"]
# cuda-12.3.1:
# stage: build
# allow_failure: false
# image: nvcr.io/nvidia/cuda:12.3.1-devel-ubuntu22.04
# tags:
# - non-shared
# - nvidia-gpu
# interruptible: true
# script:
# - nvidia-smi
# - apt-get -qq update && apt-get install --no-install-recommends -y cmake g++-12 wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev
# - mkdir build && cd build
# - g++-12 --version
# - /usr/local/cuda/bin/nvcc --version
# - CUDACXX=/usr/local/cuda/bin/nvcc cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=1 -DCMAKE_CUDA_ARCHITECTURES=61 -DCMAKE_CUDA_HOST_COMPILER=g++-12 -DCMAKE_CUDA_FLAGS="-allow-unsupported-compiler"
# - cmake --build . --parallel 2 || cmake --build . --verbose
# - ctest -j 2 || ctest --rerun-failed --output-on-failure
# needs: ["cuda"]
culang++-16 cuda-11.4.3:
stage: build
image: nvcr.io/nvidia/cuda:11.4.3-devel-ubuntu20.04
tags:
- non-shared
- nvidia-gpu
interruptible: true
script:
- nvidia-smi
- apt-get -qq update
- DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y cmake wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev
- apt-get install --no-install-recommends -y lsb-release software-properties-common
- wget https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-x86_64.sh --no-verbose
- sh ./cmake-3.27.0-rc3-linux-x86_64.sh --skip-license --prefix=/usr
- cmake --version
- wget https://apt.llvm.org/llvm.sh
- chmod u+x llvm.sh
- ./llvm.sh 16
- mkdir build && cd build
- clang++-16 --version
- cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=1 -DCMAKE_CUDA_COMPILER=clang++-16 -DCMAKE_CXX_COMPILER=clang++-16
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure
needs: ["cuda", "clang++"]
culang++-17 cuda-11.8:
stage: build
image: nvcr.io/nvidia/cuda:11.8.0-devel-ubuntu22.04 # nvcr.io/nvidia/cuda:12.0.0-devel-ubuntu22.04
tags:
- non-shared
- nvidia-gpu
- high-bandwidth
interruptible: true
script:
- nvidia-smi
- apt-get -qq update && apt-get install --no-install-recommends -y cmake wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev libtbb-dev
- apt-get install --no-install-recommends -y lsb-release software-properties-common
- wget https://apt.llvm.org/llvm.sh
- chmod u+x llvm.sh
- ./llvm.sh 17
- cmake --version
- wget https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-x86_64.sh --no-verbose
- sh ./cmake-3.27.0-rc3-linux-x86_64.sh --skip-license --prefix=/usr # for CMAKE_CUDA_STANDARD=20
- cmake --version
- mkdir build && cd build
- clang++-17 --version
- cmake .. -DCMAKE_BUILD_TYPE=Release -DBOOST_MULTI_STANDALONE=1 -DBUILD_TESTING=0 -DENABLE_CUDA=1 -DCMAKE_CUDA_COMPILER=clang++-17 -DCMAKE_CXX_COMPILER=clang++-17
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure
needs: ["cuda", "clang++"]
culang++-19 cuda-12.1.1 tidy:
stage: build
image: nvcr.io/nvidia/cuda:12.1.1-devel-ubuntu22.04 # nvcr.io/nvidia/cuda:12.0.0-devel-ubuntu22.04
allow_failure: false
tags:
- non-shared
- nvidia-gpu
- high-bandwidth
interruptible: true
script:
- nvidia-smi
- apt-get -qq update && apt-get install --no-install-recommends -y cmake wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev
- apt-get install --no-install-recommends -y lsb-release software-properties-common
- wget https://apt.llvm.org/llvm.sh
- chmod u+x llvm.sh
- ./llvm.sh 18
- apt-get install --no-install-recommends -y clang-tidy-18
- mkdir build && cd build
- clang++-18 --version
- clang-tidy-18 --version
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_CLANG_TIDY=clang-tidy-18 -DENABLE_CUDA=1 -DCMAKE_CUDA_COMPILER=clang++-18 -DCMAKE_CXX_COMPILER=clang++-18
- cmake --build . --parallel 2 || cmake --build . --verbose
- ctest -j 2 --output-on-failure
needs: ["cuda", "clang++"]
cuda-12.5.0:
stage: build
allow_failure: true
image: nvcr.io/nvidia/cuda:12.5.0-devel-ubuntu22.04
tags:
- non-shared
- nvidia-gpu
interruptible: true
script:
- nvidia-smi
- apt-get -qq update
- apt-get install --no-install-recommends -y cmake g++ wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev
- cmake --version
- wget https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-x86_64.sh --no-verbose
- sh ./cmake-3.27.0-rc3-linux-x86_64.sh --skip-license --prefix=/usr # for CMAKE_CUDA_STANDARD=20
- cmake --version
- mkdir build && cd build
- g++ --version
- /usr/local/cuda/bin/nvcc --version
- CUDACXX=/usr/local/cuda/bin/nvcc cmake .. -DCMAKE_BUILD_TYPE=Release -DENABLE_CUDA=1 -DCMAKE_CUDA_STANDARD=20 -DCMAKE_CUDA_ARCHITECTURES=61 -DCMAKE_CUDA_HOST_COMPILER=g++
- cmake --verbose --build . --parallel 2 || cmake --build . --verbose
- ctest || ctest --rerun-failed --output-on-failure
needs: ["cuda"]
rocm:
stage: build
image: rocm/dev-ubuntu-24.04 # rocm/dev-ubuntu-22.04
allow_failure: true
tags:
- non-shared
- docker
- high-bandwidth # for download rocm extras
- x86_64 # for rocm image
interruptible: true
script:
- apt-get -qq update
- apt-get install --no-install-recommends -y cmake wget pkg-config make libboost-serialization-dev libboost-timer-dev libblas-dev libfftw3-dev wget gpg
- apt-get install --no-install-recommends -y rocthrust-dev hipblas-dev hipfft-dev rocm-device-libs
- /opt/rocm/bin/hipconfig --full
- HIPCC_VERBOSE=1 /opt/rocm/bin/hipcc --version
- cmake --version
- wget https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-x86_64.sh --no-verbose
- sh ./cmake-3.27.0-rc3-linux-x86_64.sh --skip-license --prefix=/usr
- cmake --version
- mkdir build && cd build
- export PATH=/opt/rocm/bin:/opt/rocm/llvm/bin:${PATH}
- export CMAKE_PREFIX_PATH=/opt/rocm:${CMAKE_PREFIX_PATH}
- export ROCM_PATH=/opt/rocm
- export HIP_PATH=/opt/rocm
- cmake .. -DCMAKE_HIP_COMPILER=/opt/rocm/llvm/bin/clang++ -DCMAKE_CXX_FLAGS="-DMULTI_USE_HIP" -DCMAKE_HIP_FLAGS="-DMULTI_USE_HIP" -DENABLE_HIP=1 -DCMAKE_HIP_ARCHITECTURES=gfx90a # TODO(correaa) add CMAKE_BUILD_TYPE
- cmake --build . --parallel 2 || cmake --build . --verbose --parallel 1
- ctest || ctest --rerun-failed --output-on-failure || echo "ctest failed, probably due to lack of hardware"
needs: ["clang++", "g++"]
circle:
stage: build
allow_failure: true
tags:
- non-shared
- x86_64 # for circle executable
script:
- apt-get -qq update
- apt-get -qq install --no-install-recommends -y --quiet ca-certificates clang cmake g++-11 gzip libboost-timer-dev libboost-serialization-dev libblas-dev libelf1 libfftw3-dev make pkg-config tar wget
- mkdir -p build_latest ; cd build_latest
- wget https://www.circle-lang.org/linux/build_202.tgz --no-verbose
- tar -zxvf build_*.tgz
- cd ..
- ./build_latest/circle --version
- mkdir build && cd build
- CXX=`pwd`/../build_latest/circle cmake .. -DCMAKE_BUILD_TYPE=Debug -DENABLE_CIRCLE=1
- cmake --build . --parallel 4 || make VERBOSE=1
- ctest -j 2 --output-on-failure
circle-latest c++20:
stage: build
allow_failure: true
tags:
- non-shared
- x86_64 # for circle executable
interruptible: true
script:
- apt-get -qq update
- apt-get -qq install --no-install-recommends -y --quiet ca-certificates clang cmake g++-12 gzip libboost-timer-dev libboost-serialization-dev libblas-dev libelf1 libfftw3-dev make pkg-config tar wget
- mkdir -p build_latest ; cd build_latest
- wget https://www.circle-lang.org/linux/build_latest.tgz --no-verbose
- tar -zxvf build_*.tgz
- cd ..
- ls
- ./build_latest/circle --version
- mkdir build && cd build
- CXX=`pwd`/../build_latest/circle cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_EXTENSIONS=OFF -DCMAKE_CXX_STANDARD=20 -DENABLE_CIRCLE=1
- cmake --build . --parallel 2 || make VERBOSE=1
- ctest -j 2 --output-on-failure
needs: ["circle"]
inq:
stage: test
# image: debian:stable
tags:
- non-shared
- large-memory-space
interruptible: true
script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y ca-certificates cmake g++ git gfortran libopenmpi-dev libblas-dev libboost-filesystem-dev libboost-iostreams-dev libboost-serialization-dev libfftw3-dev libhdf5-dev liblapack-dev make ninja-build pkg-config python3-dev
- export PREFIX=`mktemp -d`
- git clone --recurse-submodules https://gitlab.com/npneq/inq.git # --branch update-multi-get
- cd inq
- git submodule update
- cd external_libs/multi
- git checkout $CI_COMMIT_SHA # check that multi repo is mirrored correctly
- cd ../..
- mkdir build && cd build
- cmake .. -G Ninja --install-prefix=$PREFIX -DCMAKE_BUILD_TYPE=Release
- cmake --build . || cmake --build . --parallel 1
- apt-get -qq --no-install-recommends -y install python3-numpy
- cmake --install .
- export OMPI_ALLOW_RUN_AS_ROOT=1
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
- export OMPI_MCA_btl_vader_single_copy_mechanism=none
- export OMPI_MCA_rmaps_base_oversubscribe=1
- ctest -j 2 --output-on-failure --timeout 600
- INQ_EXEC_ENV="mpirun --oversubscribe -n 4" ctest --output-on-failure --timeout 600
needs: ["g++"]
inq cuda:
allow_failure: false
stage: test
image: nvcr.io/nvidia/cuda:11.8.0-devel-ubuntu22.04
tags:
- non-shared
- nvidia-gpu
interruptible: true
before_script:
- apt-get -qq update && apt-get -qq install --no-install-recommends -y ca-certificates cmake git gfortran libopenmpi-dev libblas-dev libboost-filesystem-dev libboost-iostreams-dev libboost-serialization-dev libfftw3-dev libhdf5-dev liblapack-dev pkg-config python3-dev
script:
- nvidia-smi
# - export CUDA_VISIBLE_DEVICES=0,1
- __nvcc_device_query
- export PREFIX=`mktemp -d`
- git clone --recurse-submodules https://gitlab.com/npneq/inq.git # --branch update-multi-get
- cd inq
- cd external_libs/multi
- git checkout $CI_COMMIT_SHA
- cd ../..
- rm -f cmake/FindNCCL.cmake # disable NCCL workaround
- mkdir build && cd build
- /usr/local/cuda/bin/nvcc --version
- CUDACXX=/usr/local/cuda/bin/nvcc cmake .. --install-prefix=$PREFIX -DENABLE_CUDA=1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_CUDA_ARCHITECTURES=61 # =75 # =80
- cmake --build . --parallel 4 || cmake --build . --parallel 1
- apt-get -qq --no-install-recommends -y install python3-numpy
- cmake --install .
- export OMPI_ALLOW_RUN_AS_ROOT=1
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
- export OMPI_MCA_btl_vader_single_copy_mechanism=none
- export OMPI_MCA_rmaps_base_oversubscribe=1
- ctest -j 2 --output-on-failure --timeout 2400
- INQ_EXEC_ENV="mpirun --oversubscribe -n 4" ctest --output-on-failure --timeout 2400
timeout: 2 hours 30 minutes
needs: ["cuda", "inq"]
inq rocm:
stage: test
# image: rocm/dev-ubuntu-22.04
image: rocm/dev-ubuntu-24.04
allow_failure: true
tags:
- non-shared
- large-disk-space
- x86_64 # for image
interruptible: true
script:
- apt-get -qq update
- apt-get -qq install --no-install-recommends -y ca-certificates cmake git gfortran gpg hipblas-dev hipfft-dev libopenmpi-dev libblas-dev libboost-filesystem-dev libboost-iostreams-dev libboost-serialization-dev libfftw3-dev libhdf5-dev liblapack-dev make pkg-config python3-dev rocthrust-dev rocm-device-libs wget
- /opt/rocm/bin/hipconfig --full
- HIPCC_VERBOSE=1 /opt/rocm/bin/hipcc --version
- cmake --version
- wget https://github.com/Kitware/CMake/releases/download/v3.27.0-rc3/cmake-3.27.0-rc3-linux-x86_64.sh --no-verbose
- sh ./cmake-3.27.0-rc3-linux-x86_64.sh --skip-license --prefix=/usr
- cmake --version
- export PREFIX=`mktemp -d`
- git clone --recurse-submodules https://gitlab.com/npneq/inq.git # --branch update-multi-get
- cd inq
- cd external_libs/multi
- git checkout $CI_COMMIT_SHA
- cd ../..
- mkdir build && cd build
- export PATH=/opt/rocm/bin:/opt/rocm/llvm/bin:${PATH}
- export CMAKE_PREFIX_PATH=/opt/rocm:${CMAKE_PREFIX_PATH}
- export ROCM_PATH=/opt/rocm
- export HIP_PATH=/opt/rocm
- cmake .. -DCMAKE_HIP_COMPILER=/opt/rocm/llvm/bin/clang++ --install-prefix=$PREFIX -DENABLE_HIP=1 -DCMAKE_HIP_ARCHITECTURES=gfx90a
- cmake --build . --parallel 4 || cmake --build . --parallel 1
- cmake --install .
- export OMPI_ALLOW_RUN_AS_ROOT=1
- export OMPI_ALLOW_RUN_AS_ROOT_CONFIRM=1
- export OMPI_MCA_btl_vader_single_copy_mechanism=none
- export OMPI_MCA_rmaps_base_oversubscribe=1
- INQ_EXEC_ENV="mpirun --oversubscribe -n 4" ctest --output-on-failure --timeout 2400 || echo "ctest failed, probably due to lack of hardware"
timeout: 2 hours 30 minutes
needs: ["rocm", "inq"]
qmcpack:
stage: test
image: debian:latest
tags:
- non-shared
- docker