-
Notifications
You must be signed in to change notification settings - Fork 36
239 lines (236 loc) · 8.67 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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
# linux-gcc:
# runs-on: ubuntu-22.04
# continue-on-error: true
# strategy:
# matrix:
# gcc_version: [9, 10, 11, 12]
# scheduler: [nemesis, sherwood, distrib]
# topology: [hwloc, binders, no]
# env:
# CC: gcc-${{ matrix.gcc_version }}
# CXX: g++-${{ matrix.gcc_version }}
# steps:
# - uses: actions/checkout@v3
# - name: install compiler
# run: sudo apt-get install gcc-${{ matrix.gcc_version }} g++-${{ matrix.gcc_version }}
# - if: ${{ matrix.topology != 'no' }}
# run: |
# sudo apt-get install hwloc libhwloc-dev
# hwloc-ls --version
# - name: build qthreads
# run: |
# ./autogen.sh
# ./configure --enable-picky --with-scheduler=${{ matrix.scheduler }} --with-topology=${{ matrix.topology }}
# make -j2
# - name: make check
# run: timeout -k 10s --foreground 3m make check
# timeout-minutes: 4
#
# linux-clang:
# runs-on: ubuntu-22.04
# continue-on-error: true
# strategy:
# matrix:
# clang_version: [11, 12, 13, 14, 15, 16]
# scheduler: [nemesis, sherwood, distrib]
# topology: [hwloc, binders, no]
# include:
# - clang_version: 11
# gcc_version: 10
# - clang_version: 12
# gcc_version: 11
# - clang_version: 13
# gcc_version: 11
# - clang_version: 14
# gcc_version: 11
# - clang_version: 15
# gcc_version: 12
# - clang_version: 16
# gcc_version: 13
# - clang_version: 17
# gcc_version: 13
# env:
# CC: clang-${{ matrix.clang_version }}
# CXX: clang++${{ matrix.clang_version }}
# steps:
# - uses: actions/checkout@v3
# - if: ${{ matrix.clang_version == '16' || matrix.clang_version == 17 }}
# run: |
# wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && break || sleep 1
# sudo apt-add-repository 'deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-${{ matrix.clang_version }} main' && break || sleep 1
# - if: ${{ matrix.gcc_version == '13' && ! matrix.use_libcxx }}
# run: sudo apt-add-repository 'ppa:ubuntu-toolchain-r/test' && break || sleep 1
# - name: install gcc
# run: sudo apt-get install gcc-${{ matrix.gcc_version }} g++-${{ matrix.gcc_version }}
# - name: install clang
# run: sudo apt-get install clang-${{ matrix.clang_version }}
# - if: ${{ matrix.topology != 'no' }}
# run: |
# sudo apt-get install hwloc libhwloc-dev
# hwloc-ls --version
# - name: build qthreads
# run: |
# ./autogen.sh
# ./configure --enable-picky --with-scheduler=${{ matrix.scheduler }} --with-topology=${{ matrix.topology }}
# make -j2
# - name: make check
# run: timeout -k 10s --foreground 6m make check
# timeout-minutes: 7
#
linux-icx:
runs-on: ubuntu-22.04
continue-on-error: true
strategy:
matrix:
scheduler: [nemesis, sherwood, distrib]
topology: [hwloc, binders, no]
env:
CC: icx
CXX: icpx
steps:
- uses: actions/checkout@v3
- if: ${{ matrix.topology != 'no' }}
run: |
sudo apt-get install hwloc libhwloc-dev
hwloc-ls --version
- name: install gcc
run: |
sudo apt-add-repository 'ppa:ubuntu-toolchain-r/test' && break || sleep 1
sudo apt-get install gcc-13 g++-13
- name: install icx
run: |
wget -O - https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo apt-key add - && break || sleep 1
sudo apt-add-repository 'deb https://apt.repos.intel.com/oneapi all main' && break || sleep 1
sudo apt-get install intel-oneapi-compiler-dpcpp-cpp-and-cpp-classic
source /opt/intel/oneapi/setvars.sh
icx -v
icc -v
- name: build qthreads
run: |
source /opt/intel/oneapi/setvars.sh
./autogen.sh
./configure --enable-picky --with-scheduler=${{ matrix.scheduler }} --with-topology=${{ matrix.topology }} || cat config.log
make -j2
- name: make check
run: |
source /opt/intel/oneapi/setvars.sh
timeout -k 10s --foreground 6m make check
timeout-minutes: 7
# mac:
# runs-on: macos-latest
# continue-on-error: true
# strategy:
# matrix:
# scheduler: [nemesis, sherwood, distrib]
# topology: [hwloc, binders, no]
# use_asserts: [true, false]
# env:
# QTHREADS_ENABLE_ASSERTS: ${{ matrix.use_asserts && '--enable-asserts' || '' }}
# steps:
# - uses: actions/checkout@v3
# - name: install deps
# run: |
# brew install autoconf automake libtool coreutils # coreutils is to get gtimeout for CI and is not universally required by qthreads.
# - if: ${{ matrix.topology != 'no' }}
# run: |
# brew install hwloc
# hwloc-ls --version
# - name: build qthreads
# run: |
# ./autogen.sh
# ./configure $QTHREADS_ENABLE_ASSERTS --enable-picky --with-scheduler=${{ matrix.scheduler }} --with-topology=${{ matrix.topology }}
# make -j3
# - name: make check
# run: gtimeout -k 10s --foreground 8m make check
# timeout-minutes: 9
#
# sanitizers:
# runs-on: ubuntu-22.04
# continue-on-error: true
# strategy:
# matrix:
# sanitizer: [address, memory, thread, undefined]
# scheduler: [nemesis, sherwood, distrib]
# topology: [hwloc, binders, no]
# use_libcxx: [false] # disable testing on libcxx since its effect seems very limited for now.
# env:
# CC: clang-17
# CXX: clang++-17
# CFLAGS: "-fsanitize=${{ matrix.sanitizer }}"
# CXXFLAGS: ${{ matrix.use_libcxx && format('-stdlib=libc++ -fsanitize={0}', matrix.sanitizer) || format('-fsanitize={0}', matrix.sanitizer) }}
# LDFLAGS: "-fsanitize=${{ matrix.sanitizer }}"
# steps:
# - uses: actions/checkout@v3
# - if: ${{ ! matrix.use_libcxx }}
# run: |
# sudo apt-add-repository 'ppa:ubuntu-toolchain-r/test' && break || sleep 1
# sudo apt-get install gcc-13 g++-13
# - name: install compiler
# run: |
# wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && break || sleep 1
# sudo apt-add-repository 'deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main' && break || sleep 1
# sudo apt-get install clang-17
# - if: ${{ matrix.use_libcxx }}
# run: sudo apt-get install libc++-17-dev libc++abi-17-dev
# - if: ${{ matrix.topology != 'no' }}
# run: |
# sudo apt-get install hwloc libhwloc-dev
# hwloc-ls --version
# - name: build qthreads
# run: |
# ./autogen.sh
# ./configure --enable-picky --with-scheduler=${{ matrix.scheduler }} --with-topology=${{ matrix.topology }}
# make -j2
# - name: make check
# run: timeout -k 10s --foreground 8m make check
# timeout-minutes: 9
#
# linux-thorough:
# runs-on: ubuntu-22.04
# continue-on-error: true
# strategy:
# matrix:
# compiler: [gcc, clang]
# scheduler: [nemesis, sherwood, distrib]
# topology: [hwloc, binders, no]
# use_libcxx: [false] # disable testing on libcxx since its effect seems very limited for now.
# use_asserts: [true, false]
# exclude:
# - compiler: gcc
# use_libcxx: true
# env:
# CC: ${{ matrix.compiler == 'gcc' && 'gcc-13' || 'clang-17' }}
# CXX: ${{ matrix.compiler == 'gcc' && 'g++-13' || 'clang++-17' }}
# CXXFLAGS: ${{ matrix.use_libcxx && '-stdlib=libc++' || '' }}
# QTHREADS_ENABLE_ASSERTS: ${{ matrix.use_asserts && '--enable-asserts' || '' }}
# steps:
# - uses: actions/checkout@v3
# - run: |
# sudo apt-add-repository 'ppa:ubuntu-toolchain-r/test' && break || sleep 1
# sudo apt-get install gcc-13 g++-13
# - if: ${{ matrix.compiler == 'clang' }}
# run: |
# wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - && break || sleep 1
# sudo apt-add-repository 'deb https://apt.llvm.org/jammy/ llvm-toolchain-jammy-17 main' && break || sleep 1
# sudo apt-get install clang-17
# - if: ${{ matrix.use_libcxx }}
# run: sudo apt-get install libc++-17-dev libc++abi-17-dev
# - if: ${{ matrix.topology != 'no' }}
# run: |
# sudo apt-get install hwloc libhwloc-dev
# hwloc-ls --version
# - name: build qthreads
# run: |
# ./autogen.sh
# ./configure $QTHREADS_ENABLE_ASSERTS --enable-picky --with-scheduler=${{ matrix.scheduler }} --with-topology=${{ matrix.topology }}
# make -j2
# - name: make check
# run: timeout -k 10s --foreground 6m make check
# timeout-minutes: 7