-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (53 loc) · 1.55 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
name: CI
on:
workflow_dispatch:
inputs:
ref:
description: 'ref'
required: false
push:
pull_request:
jobs:
build:
runs-on: ubuntu-20.04
strategy:
matrix:
build_type: ["Release", "Debug"]
env:
CXX: "g++"
BUILD_TYPE: ${{ matrix.build_type }}
BUILD_DIR: "${{ github.workspace }}/code/build"
MAKEFLAGS: "-j4"
COLOR: "ON"
CXXFLAGS: "-Werror"
steps:
- name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libopenmpi-dev
- uses: actions/checkout@v2
- name: Summary
run: ./.github/workflows/summary.sh
- name: Configure
run: |
mkdir "$BUILD_DIR"
cd "$BUILD_DIR"
cmake -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_CXX_FLAGS="${CXXFLAGS}" ..
- name: Build
run: |
cd "$BUILD_DIR"
make
- name: Tests
run: |
cd "$BUILD_DIR"
make check
- name: Run Implementations
run: |
cd "$BUILD_DIR"
impls=("allreduce" "allgather" "allreduce-butterfly" "allreduce-rabenseifner" "rabenseifner-gather" "g-rabenseifner-allgather" "g-rabenseifner-subgroup" "allgather-async" "allreduce-ring" "bruck-async" "g-rabenseifner-allgather-segmented" "allreduce-butterfly-segmented")
for i in "${impls[@]}"; do
echo -e "\e[33m${i}\e[0m"
mpirun -np 1 ./main -c -n 1000 -m 2000 -i "$i"
mpirun -np 2 ./main -c -n 1000 -m 2000 -i "$i"
done