-
Notifications
You must be signed in to change notification settings - Fork 53
712 lines (691 loc) · 27.8 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
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
name: SOS-github-actions
on: [push, pull_request]
defaults:
run:
shell: bash
env:
SOS_INSTALL_DIR: ${{ github.workspace }}/install/sos
LIBFABRIC_INSTALL_DIR: ${{ github.workspace }}/install/libfabric
UCX_INSTALL_DIR: ${{ github.workspace }}/install/ucx
PORTALS4_INSTALL_DIR: ${{ github.workspace }}/install/portals4
LIBEVENT_INSTALL_DIR: ${{ github.workspace }}/install/libevent
PRRTE_INSTALL_DIR: ${{ github.workspace }}/install/prrte
PMIX_INSTALL_DIR: ${{ github.workspace }}/install/pmix
SOS_BUILD_STATIC_OPTS: --disable-shared --enable-static
XPMEM_INSTALL_DIR: ${{ github.workspace }}/install/xpmem
SOS_PM: mpiexec.hydra
SOS_PM_POST: true
jobs:
OFI:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- config_name: PMI simple
sos_config: --enable-pmi-simple
libfabric_version: v1.7.x
- config_name: PMI simple
sos_config: --enable-pmi-simple
libfabric_version: v1.9.x
- config_name: PMI simple
sos_config: --enable-pmi-simple
libfabric_version: v1.11.x
- config_name: PMI simple
sos_config: --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: Deprecated tests
sos_config: --enable-pmi-simple --enable-deprecated-tests
libfabric_version: v1.13.x
- config_name: MR-Basic, AV-map, memcpy
sos_config: --enable-ofi-mr=basic --enable-av-map --disable-cxx --enable-memcpy
--enable-pmi-simple --with-hwloc=no
libfabric_version: v1.13.x
- config_name: PMI MPI
sos_config: --disable-fortran --enable-pmi-mpi CC=mpicc
libfabric_version: v1.13.x
- config_name: Remove Virtual Addressing (RVA)
sos_config: --disable-fortran --enable-error-checking --enable-remote-virtual-addressing
--disable-aslr-check --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: heap use malloc
env_setup: export SHMEM_SYMMETRIC_HEAP_USE_MALLOC=1
sos_config: --disable-threads --enable-error-checking --enable-pmi-simple --with-hwloc=no
libfabric_version: v1.13.x
# too slow, times out on Github (but passes on another Ubuntu 20.04 system)...
#- config_name: CMA, MR Basic, RVA
# sos_config: --disable-fortran --with-cma --enable-error-checking --enable-profiling
# --enable-ofi-mr=basic --enable-av-map --enable-remote-virtual-addressing
# --enable-pmi-simple
# libfabric_version: v1.13.x
- config_name: XPMEM RVA
xpmem_version: master
sos_config: --with-xpmem=${XPMEM_INSTALL_DIR} --enable-error-checking
--enable-remote-virtual-addressing --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: XPMEM shared atomics
xpmem_version: master
sos_config: --with-xpmem=${XPMEM_INSTALL_DIR} --enable-shr-atomics
--enable-error-checking --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: RVA, thread completion
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-thread-completion --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: huge pages, zero bounce
env_setup: SHMEM_SYMMETRIC_HEAP_USE_HUGE_PAGES=1 SHMEM_BOUNCE_SIZE=0
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-pmi-simple --enable-ofi-fence --with-hwloc=no
libfabric_version: v1.13.x
- config_name: auto algorithms
env_setup: export SHMEM_BARRIER_ALGORITHM=auto;
export SHMEM_BCAST_ALGORITHM=auto;
export SHMEM_REDUCE_ALGORITHM=auto;
export SHMEM_COLLECT_ALGORITHM=auto;
export SHMEM_FCOLLECT_ALGORITHM=auto
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-thread-completion --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: linear algorithms
env_setup: export SHMEM_BARRIER_ALGORITHM=linear;
export SHMEM_BCAST_ALGORITHM=linear;
export SHMEM_REDUCE_ALGORITHM=linear;
export SHMEM_COLLECT_ALGORITHM=linear;
export SHMEM_FCOLLECT_ALGORITHM=linear
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-pmi-simple --with-hwloc=no
libfabric_version: v1.13.x
- config_name: tree algorithms
env_setup: export SHMEM_BARRIER_ALGORITHM=tree;
export SHMEM_BCAST_ALGORITHM=tree;
export SHMEM_REDUCE_ALGORITHM=tree;
export SHMEM_OFI_STX_MAX=0
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-pmi-simple --enable-manual-progress
libfabric_version: v1.13.x
- config_name: dissem/recdbl algorithms
env_setup: export SHMEM_BARRIER_ALGORITHM=dissem;
export SHMEM_REDUCE_ALGORITHM=recdbl;
export SHMEM_FCOLLECT_ALGORITHM=recdbl;
export SHMEM_OFI_STX_AUTO=1
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-pmi-simple --enable-manual-progress --enable-hard-polling --with-hwloc=no
libfabric_version: v1.13.x
- config_name: ring reduce algorithm
env_setup: export SHMEM_REDUCE_ALGORITHM=ring
sos_config: --enable-error-checking --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: ring fcollect algorithm, tx/rx single poll limit
env_setup: export SHMEM_FCOLLECT_ALGORITHM=ring;
export SHMEM_OFI_TX_POLL_LIMIT=1;
export SHMEM_OFI_RX_POLL_LIMIT=1;
export SHMEM_OFI_STX_THRESHOLD=1024
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-pmi-simple
libfabric_version: v1.13.x
- config_name: STX random
env_setup: export SHMEM_OFI_STX_MAX=8;
export SHMEM_OFI_STX_ALLOCATOR=random
sos_config: --enable-error-checking --enable-remote-virtual-addressing
--enable-pmi-simple
libfabric_version: v1.13.x
- config_name: RPM build
env_setup: export SOS_CHECK_TARBALL_RPM=1
sos_config: --enable-pmi-simple
rpm_build: true
libfabric_version: v1.13.x
- config_name: Lengthy tests
sos_config: --enable-lengthy-tests --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: Manpages
sos_config: --enable-manpages --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: Without OFI inject
sos_config: --disable-ofi-inject --enable-pmi-simple
libfabric_version: v1.13.x
- config_name: Without Non-fetch AMO
sos_config: --disable-nonfetch-amo --enable-pmi-simple
libfabric_version: v1.13.x
name: OFI ${{ matrix.libfabric_version }} (${{ matrix.config_name }})
steps:
- name: Checking OS version
run: |
echo "OS_NAME=$(lsb_release -si)-$(lsb_release -sr)" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- name: Install dependencies
run: |
sudo apt-get install -y gfortran rpm mpich libmpich-dev libhwloc-dev
sudo sysctl -w kernel.yama.ptrace_scope=0
sudo sysctl -w kernel.randomize_va_space=0
# LIBFABRIC
- name: Cache libfabric install
id: cache-libfabric
uses: actions/cache@v2
with:
path: ${{ env.LIBFABRIC_INSTALL_DIR }}
key: libfabric-${{ matrix.libfabric_version }}-${{ env.OS_NAME }}
- name: Checkout libfabric
if: steps.cache-libfabric.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: ofiwg/libfabric
path: repos/libfabric
ref: ${{ matrix.libfabric_version }}
- name: Build libfabric
if: steps.cache-libfabric.outputs.cache-hit != 'true'
run: |
cd repos/libfabric
./autogen.sh
mkdir build; cd build
../configure --prefix=${LIBFABRIC_INSTALL_DIR}
make -j
make install
# XPMEM
- name: Cache XPMEM install
if: ${{ matrix.xpmem_version }}
id: cache-xpmem
uses: actions/cache@v2
with:
path: ${{ env.XPMEM_INSTALL_DIR }}
key: xpmem-${{ matrix.xpmem_version }}-${{ env.OS_NAME }}
- name: Checkout XPMEM
if: ${{ matrix.xpmem_version }}
uses: actions/checkout@v4
with:
repository: hjelmn/xpmem
path: repos/xpmem
ref: ${{ matrix.xpmem_version }}
- name: Build XPMEM
if: ${{ matrix.xpmem_version }}
run: |
cd repos/xpmem
sudo apt-get install linux-headers-`uname -r`
./autogen.sh
./configure --prefix=${XPMEM_INSTALL_DIR}
make -j
sudo make install
sudo insmod ${XPMEM_INSTALL_DIR}/lib/modules/`uname -r`/kernel/xpmem/xpmem.ko
sudo chown `whoami` /dev/xpmem
# SOS
- name: Build SOS (${{ matrix.sos_config }})
run: |
git submodule update --remote
./autogen.sh
mkdir build; cd build
../configure --prefix=${SOS_INSTALL_DIR} --with-ofi=${LIBFABRIC_INSTALL_DIR} ${{ matrix.sos_config }}
make -j
make install
- name: Test SOS (${{ matrix.sos_config }})
run: |
cd build
make check TESTS= -j
${{ matrix.env_setup }}
SHMEM_DEBUG=1 SHMEM_INFO=1 SHMEM_OFI_PROVIDER=sockets make VERBOSE=1 TEST_RUNNER="${SOS_PM} -np 2" check
cat modules/tests-sos/test/unit/hello.log
- name: Test RPM (${{ matrix.rpm_build }})
if: ${{ matrix.rpm_build }}
run: |
# FIXME: RPM with a prefix not working on Ubuntu 20.04 (related to _docdir?)
#./configure --with-ofi=${LIBFABRIC_INSTALL_DIR} ${{ matrix.sos_config }} --enable-rpm-prefix
#make dist
#rpmbuild -ta ./sandia-openshmem-*.tar.gz --define "configargs --with-ofi=${LIBFABRIC_INSTALL_DIR} ${{ matrix.sos_config }}" --define "_prefix /usr/shmem"
#make clean
./configure --with-ofi=${LIBFABRIC_INSTALL_DIR} ${{ matrix.sos_config }}
make dist
rpmbuild -ta ./sandia-openshmem-*.tar.gz --define "configargs --with-ofi=${LIBFABRIC_INSTALL_DIR} ${{ matrix.sos_config }}"
# Sanity check distribution tarball
tar zxvf sandia-openshmem-*.tar.gz
sos_version=$(cat configure.ac | grep AC_INIT | awk -F"]" '{print substr($2, 4, length($2)-2)}')
cd "sandia-openshmem-"$sos_version
./autogen.sh
mkdir build
cd build
../configure --with-ofi=${LIBFABRIC_INSTALL_DIR} ${{ matrix.sos_config }}
make -j check TESTS=
${SOS_PM_PRE}
SHMEM_DEBUG=1 SHMEM_INFO=1 make VERBOSE=1 TEST_RUNNER="${SOS_PM} -np 2" check
${SOS_PM_POST}
# PMIx:
# runs-on: ubuntu-20.04
# strategy:
# fail-fast: false
# matrix:
# include:
# - sos_transport: libfabric
# libfabric_version: v1.7.x
# sos_transport_config: --with-ofi=${LIBFABRIC_INSTALL_DIR} --without-ucx --without-portals4
# run_all_tests: true
# libevent_version: release-2.1.10-stable
# pmix_version: v4.1.1rc2
# prrte_version: v2.0
# sos_pm: prun
# sos_pm_pre: prte --daemonize --host localhost:4
# sos_pm_post: pterm
# - sos_transport: ucx
# ucx_version: v1.9.0
# sos_transport_config: --with-ucx=${UCX_INSTALL_DIR} --without-ofi --without-portals4
# run_all_tests: true
# libevent_version: release-2.1.10-stable
# pmix_version: v4.1.1rc2
# prrte_version: v2.0
# sos_pm: prun
# sos_pm_pre: prte --daemonize --host localhost:4
# sos_pm_post: pterm
# - sos_transport: portals4
# portals4_version: master
# sos_transport_config: --with-portals4=${PORTALS4_INSTALL_DIR} --without-ofi --without-ucx
# run_all_tests: false
# libevent_version: release-2.1.10-stable
# pmix_version: v4.1.1rc2
# prrte_version: v2.0
# sos_pm: prun
# sos_pm_pre: prte --daemonize --host localhost:4
# sos_pm_post: pterm
#
# name: PMIx (${{ matrix.sos_transport }})
#
# steps:
# - name: Checking OS version
# run: |
# echo "OS_NAME=$(lsb_release -si)-$(ls_release -sr)" >> $GITHUB_ENV
# - uses: actions/checkout@v2
# - name: Install dependencies
# run: |
# sudo apt-get install -y gfortran libhwloc-dev libev-dev libev-libevent-dev
#
# # LIBFABRIC
# - name: Cache libfabric install
# if: ${{ matrix.sos_transport == 'libfabric' }}
# id: cache-libfabric
# uses: actions/cache@v2
# with:
# path: ${{ env.LIBFABRIC_INSTALL_DIR }}
# key: libfabric-${{ matrix.libfabric_version }}-${{ env.OS_NAME }}
# - name: Checkout libfabric
# if: ${{ matrix.sos_transport == 'libfabric' && steps.cache-libfabric.outputs.cache-hit != 'true' }}
# uses: actions/checkout@v2
# with:
# repository: ofiwg/libfabric
# path: repos/libfabric
# ref: ${{ matrix.libfabric_version }}
# - name: Build libfabric
# if: ${{ matrix.sos_transport == 'libfabric' && steps.cache-libfabric.outputs.cache-hit != 'true' }}
# run: |
# cd repos/libfabric
# ./autogen.sh
# mkdir build; cd build
# ../configure --prefix=${LIBFABRIC_INSTALL_DIR}
# make -j
# make install
#
# # UCX
# - name: Cache UCX install
# if: ${{ matrix.sos_transport == 'ucx' }}
# id: cache-ucx
# uses: actions/cache@v2
# with:
# path: ${{ env.UCX_INSTALL_DIR }}
# key: ucx-${{ matrix.ucx_version }}-${{ env.OS_NAME }}
# - name: Checkout UCX
# if: ${{ matrix.sos_transport == 'ucx' && steps.cache-ucx.outputs.cache-hit != 'true' }}
# uses: actions/checkout@v2
# with:
# repository: openucx/ucx
# path: repos/ucx
# ref: ${{ matrix.ucx_version }}
# - name: Build UCX
# if: ${{ matrix.sos_transport == 'ucx' && steps.cache-ucx.outputs.cache-hit != 'true' }}
# run: |
# cd repos/ucx
# ./autogen.sh
# mkdir build; cd build
# ../configure --prefix=${UCX_INSTALL_DIR} --enable-mt --disable-numa --without-java
# make -j
# make install
#
# ## Portals4
# - name: Cache Portals4 install
# if: ${{ matrix.sos_transport == 'portals4' }}
# id: cache-portals4
# uses: actions/cache@v2
# with:
# path: ${{ env.PORTALS4_INSTALL_DIR }}
# key: portals4-${{ matrix.portals4_version }}-${{ env.OS_NAME }}
# - name: Checkout Portals4
# if: ${{ matrix.sos_transport == 'portals4' && steps.cache-portals4.outputs.cache-hit != 'true' }}
# uses: actions/checkout@v2
# with:
# repository: regrant/portals4
# path: repos/portals4
# ref: ${{ matrix.portals4_version }}
# - name: Build Portals4
# if: ${{ matrix.sos_transport == 'portals4' && steps.cache-portals4.outputs.cache-hit != 'true' }}
# run: |
# cd repos/portals4
# ./autogen.sh
# mkdir build; cd build
# ../configure --prefix=${PORTALS4_INSTALL_DIR} --enable-zero-mrs --enable-reliable-udp --disable-pmi-from-portals ${SOS_BUILD_STATIC_OPTS}
# make -j
# make install
#
# # Libevent
# - name: Cache libevent install
# id: cache-libevent
# uses: actions/cache@v2
# with:
# path: ${{ env.LIBEVENT_INSTALL_DIR }}
# key: libevent-${{ matrix.libevent_version }}-${{ env.OS_NAME }}
# - name: Checkout libevent
# if: steps.cache-libevent.outputs.cache-hit != 'true'
# uses: actions/checkout@v2
# with:
# repository: libevent/libevent
# path: repos/libevent
# ref: ${{ matrix.libevent_version }}
# - name: Build libevent
# if: steps.cache-libevent.outputs.cache-hit != 'true'
# run: |
# cd repos/libevent
# ./autogen.sh
# ./configure --prefix=${LIBEVENT_INSTALL_DIR}
# make clean all install
#
# # PMIx
# - name: Cache PMIx install
# id: cache-pmix
# uses: actions/cache@v2
# with:
# path: ${{ env.PMIX_INSTALL_DIR }}
# key: pmix-${{ matrix.pmix_version }}-${{ env.OS_NAME }}
# - name: Checkout PMIx
# if: steps.cache-pmix.outputs.cache-hit != 'true'
# uses: actions/checkout@v2
# with:
# repository: openpmix/pmix
# path: repos/pmix
# ref: ${{ matrix.pmix_version }}
# - name: Build PMIx
# if: steps.cache-pmix.outputs.cache-hit != 'true'
# run: |
# cd repos/pmix
# ./autogen.pl
# ./configure --prefix=${PMIX_INSTALL_DIR} --with-libevent=${LIBEVENT_INSTALL_DIR} --without-libev --disable-debug CFLAGS=-O3 ${SOS_BUILD_STATIC_OPTS}
# make install
#
# # Build PRRTE
# - name: Cache PRRTE install
# id: cache-prrte
# uses: actions/cache@v2
# with:
# path: ${{ env.PRRTE_INSTALL_DIR }}
# key: prrte-${{ matrix.prrte_version}}-${{ env.OS_NAME }}
# - name: Checkout PRRTE
# if: steps.cache-prrte.outputs.cache-hit != 'true'
# uses: actions/checkout@v2
# with:
# repository: openpmix/prrte
# path: repos/prrte
# ref: ${{ matrix.prrte_version }}
# - name: Build PRRTE
# if: steps.cache-prrte.outputs.cache-hit != 'true'
# run: |
# cd repos/prrte
# ./autogen.pl
# ./configure --prefix=${PRRTE_INSTALL_DIR} --with-pmix=${PMIX_INSTALL_DIR} --without-slurm --with-libevent=${LIBEVENT_INSTALL_DIR} --without-libev ${SOS_BUILD_STATIC_OPTS}
# make install
#
# # SOS
# - name: Build SOS
# run: |
# ./autogen.sh
# mkdir build; cd build
# ../configure --prefix=${SOS_INSTALL_DIR} ${{ matrix.sos_transport_config }} --with-pmix=${PMIX_INSTALL_DIR}
# make -j
# make install
# - name: Test SOS (all tests)
# if: ${{ matrix.sos_transport == 'libfabric' || matrix.sos_transport == 'ucx' }}
# run: |
# cd build
# make check TESTS= -j
# export PATH=${PRRTE_INSTALL_DIR}/bin:$PATH
# ${{ matrix.sos_pm_pre }}
# SHMEM_INFO=1 make VERBOSE=1 TEST_RUNNER="${{ matrix.sos_pm }} -np 2" check
# cat modules/tests-sos/test/unit/hello.log
# ${{ matrix.sos_pm_post }}
# - name: Test SOS (hello)
# if: ${{ matrix.sos_transport == 'portals4' }}
# run: |
# cd build
# make check TESTS= -j
# export PATH=${PRRTE_INSTALL_DIR}/bin:$PATH
# ${{ matrix.sos_pm_pre }}
# SHMEM_INFO=1 ${{ matrix.sos_pm }} -np 1 modules/tests-sos/test/unit/hello
# ${{ matrix.sos_pm_post }}
#
UCX:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- config_name: ucx-1.9.0
ucx_version: v1.9.0
xpmem_version: master
sos_config: [--enable-pmi-simple --disable-fortran,
--with-cma --enable-error-checking --enable-profiling
--enable-pmi-simple --disable-fortran --with-hwloc=no,
--with-xpmem --enable-error-checking --enable-pmi-simple --with-hwloc=no]
steps:
- name: Checking OS version
run: |
echo "OS_NAME=$(lsb_release -si)-$(lsb_release -sr)" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- name: Install dependencies
run: |
sudo apt-get install -y gfortran mpich libmpich-dev
sudo sysctl -w kernel.yama.ptrace_scope=0
sudo sysctl -w kernel.randomize_va_space=0
# XPMEM
- name: Checkout XPMEM
uses: actions/checkout@v4
with:
repository: hjelmn/xpmem
path: repos/xpmem
ref: ${{ matrix.xpmem_version }}
- name: Build XPMEM
run: |
cd repos/xpmem
sudo apt-get install linux-headers-`uname -r`
./autogen.sh
./configure --prefix=/usr
make -j
sudo make install
sudo insmod /usr/lib/modules/`uname -r`/kernel/xpmem/xpmem.ko
sudo chown `whoami` /dev/xpmem
# UCX
- name: Cache UCX install
id: cache-ucx
uses: actions/cache@v2
with:
path: ${{ env.UCX_INSTALL_DIR }}
key: ucx-${{ matrix.ucx_version}}-${{ env.OS_NAME }}
- name: Checkout UCX
if: steps.cache-ucx.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: openucx/ucx
path: repos/ucx
ref: ${{ matrix.ucx_version }}
- name: Build UCX
if: steps.cache-ucx.outputs.cache-hit != 'true'
run: |
cd repos/ucx
./autogen.sh
mkdir build; cd build
../configure --prefix=${UCX_INSTALL_DIR} --enable-mt --disable-numa --without-java
make -j
make install
# SOS
- name: Build SOS (${{ matrix.sos_config }})
run: |
git submodule update --remote
./autogen.sh
mkdir build; cd build
../configure --prefix=${SOS_INSTALL_DIR} --with-ucx=${UCX_INSTALL_DIR} ${{ matrix.sos_config }}
make -j
make install
- name: Test SOS (${{ matrix.sos_config }})
run: |
cd build
make check TESTS= -j
SHMEM_DEBUG=1 SHMEM_INFO=1 make VERBOSE=1 TEST_RUNNER="${SOS_PM} -np 2" check
cat modules/tests-sos/test/unit/hello.log
Portals4:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- config_name: portals4
portals4_version: master
xpmem_version: master
- name: Heap use malloc
env_setup: export SHMEM_SYMMETRIC_HEAP_USE_MALLOC=1
sos_config: --disable-threads --enable-error-checking --enable-pmi-simple --with-hwloc=no
- name: Heap use huge pages, zero bounce
env_setup: export SHMEM_SYMMETRIC_HEAP_USE_HUGE_PAGES=1; export SHMEM_BOUNCE_SIZE=0
sos_config: --enable-error-checking --enable-remote-virtual-addressing --enable-pmi-simple --enable-ofi-fence
sos_config: [--enable-pmi-simple --with-hwloc=no,
--disable-fortran --enable-error-checking --enable-remote-virtual-addressing
--disable-aslr-check --enable-pmi-simple,
--with-cma --enable-error-checking --enable-profiling
--enable-remote-virtual-addressing --enable-pmi-simple,
--with-xpmem --enable-shr-atomics --enable-error-checking --enable-pmi-simple,
--enable-pmi-mpi CC=mpicc --disable-fortran --with-hwloc=no]
steps:
- name: Checking OS version
run: |
echo "OS_NAME=$(lsb_release -si)-$(lsb_release -sr)" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- name: Install dependencies
run: |
sudo apt-get install -y gfortran mpich libmpich-dev libev-dev libev-libevent-dev libhwloc-dev
sudo sysctl -w kernel.yama.ptrace_scope=0
sudo sysctl -w kernel.randomize_va_space=0
# XPMEM
- name: Checkout XPMEM
uses: actions/checkout@v4
with:
repository: hjelmn/xpmem
path: repos/xpmem
ref: ${{ matrix.xpmem_version }}
- name: Build XPMEM
run: |
cd repos/xpmem
sudo apt-get install linux-headers-`uname -r`
./autogen.sh
./configure --prefix=/usr
make -j
sudo make install
sudo insmod /usr/lib/modules/`uname -r`/kernel/xpmem/xpmem.ko
sudo chown `whoami` /dev/xpmem
# Portals4
- name: Cache Portals4 install
id: cache-portals4
uses: actions/cache@v2
with:
path: ${{ env.PORTALS4_INSTALL_DIR }}
key: portals4-${{ matrix.portals4_version}}-${{ env.OS_NAME }}
- name: Checkout Portals4
if: steps.cache-portals4.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: regrant/portals4
path: repos/portals4
ref: ${{ matrix.portals4_version }}
- name: Build Portals4
if: steps.cache-portals4.outputs.cache-hit != 'true'
run: |
cd repos/portals4
./autogen.sh
mkdir build; cd build
../configure --prefix=${PORTALS4_INSTALL_DIR} --enable-zero-mrs --enable-reliable-udp --disable-pmi-from-portals
make -j
make install
# SOS
- name: Build SOS (${{ matrix.name }})
run: |
git submodule update --remote
./autogen.sh
mkdir build; cd build
../configure --prefix=${SOS_INSTALL_DIR} --with-portals4=${PORTALS4_INSTALL_DIR} ${{ matrix.sos_config }}
make -j
make install
- name: Test SOS (${{ matrix.name }})
run: |
cd build
make check TESTS= -j
${SOS_PM} -np 1 modules/tests-sos/test/unit/hello
XPMEM_Only:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
include:
- config_name: transport_none
xpmem_version: master
sos_config: [--with-xpmem --enable-shr-atomics --enable-error-checking --enable-pmi-simple]
steps:
- name: Checking OS version
run: |
echo "OS_NAME=$(lsb_release -si)-$(lsb_release -sr)" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: 'true'
- name: Install dependencies
run: |
sudo apt-get install -y gfortran mpich libmpich-dev libev-dev libev-libevent-dev libhwloc-dev
sudo sysctl -w kernel.yama.ptrace_scope=0
sudo sysctl -w kernel.randomize_va_space=0
# XPMEM
- name: Checkout XPMEM
uses: actions/checkout@v4
with:
repository: hjelmn/xpmem
path: repos/xpmem
ref: ${{ matrix.xpmem_version }}
- name: Build XPMEM
run: |
cd repos/xpmem
sudo apt-get install linux-headers-`uname -r`
./autogen.sh
./configure --prefix=/usr
make -j
sudo make install
sudo insmod /usr/lib/modules/`uname -r`/kernel/xpmem/xpmem.ko
sudo chown `whoami` /dev/xpmem
# SOS
- name: Build SOS (${{ matrix.name }})
run: |
git submodule update --remote
./autogen.sh
mkdir build; cd build
../configure --prefix=${SOS_INSTALL_DIR} ${{ matrix.sos_config }}
make -j
make install
- name: Test SOS (${{ matrix.name }})
run: |
cd build
make check TESTS= -j
SHMEM_DEBUG=1 SHMEM_INFO=1 make VERBOSE=1 TEST_RUNNER="${SOS_PM} -np 2" check
${SOS_PM} -np 1 modules/tests-sos/test/unit/hello