forked from shibatch/sleef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
523 lines (497 loc) · 20.7 KB
/
Jenkinsfile
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
pipeline {
agent any
stages {
stage('Preamble') {
parallel {
stage('ppc64le gcc') {
agent { label 'ppc64' }
steps {
sh '''
echo "ppc64 gcc on" `hostname`
export CC=gcc-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DRUNNING_ON_TRAVIS=TRUE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_VSX=TRUE -DENFORCE_VSX3=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('ppc64le clang') {
agent { label 'ppc64' }
steps {
sh '''
echo "ppc64 clang on" `hostname`
export CC=clang-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DRUNNING_ON_TRAVIS=TRUE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_VSX=TRUE -DENFORCE_VSX3=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('s390x gcc') {
agent { label 's390x' }
steps {
sh '''
echo "s390x gcc on" `hostname`
export CC=gcc
rm -rf build
mkdir build
cd build
cmake -G Ninja -DRUNNING_ON_TRAVIS=TRUE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_VXE=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('s390x clang') {
agent { label 's390x' }
steps {
sh '''
echo "s390x clang on" `hostname`
export CC=clang-10
rm -rf build
mkdir build
cd build
cmake -G Ninja -DRUNNING_ON_TRAVIS=TRUE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_VXE=TRUE -DENFORCE_VXE2=TRUE -DCMAKE_BUILD_TYPE=Debug ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
'''
}
}
stage('Armclang') {
agent { label 'armclang' }
steps {
sh '''
echo "armclang+SVE on" `hostname`
export CC=armclang
export QEMU_CPU=max,sve-max-vq=1
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_SVE=TRUE -DEMULATOR=qemu-aarch64 ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
stage('Armclang AAVPCS') {
agent { label 'armclang' }
steps {
sh '''
echo "armclang+SVE+AAVPCS on" `hostname`
export CC=armclang
export QEMU_CPU=max,sve-max-vq=1
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_INLINE_HEADERS=TRUE -DFORCE_AAVPCS=On -DENABLE_GNUABI=On -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_SVE=TRUE -DEMULATOR=qemu-aarch64 ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
stage('aarch64 gcc-10 and cuda') {
agent { label 'aarch64 && cuda && gcc-10' }
steps {
sh '''
echo "aarch64 gcc-10 and cuda on" `hostname`
export CC=gcc-10.2.0
export QEMU_CPU=max,sve-max-vq=1
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DBUILD_SHARED_LIBS=TRUE -DENFORCE_TESTER3=TRUE -DENABLE_GNUABI=On -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENABLE_CUDA=TRUE -DENFORCE_CUDA=TRUE -DENFORCE_SVE=TRUE -DEMULATOR=qemu-aarch64 ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j 7
ninja install
'''
}
}
stage('aarch64 clang-11') {
agent { label 'aarch64 && clang-11' }
steps {
sh '''
echo "aarch64 clang-11 on" `hostname`
export CC=clang-11
export PATH=$PATH:/opt/clang+llvm-11.0.0-aarch64-linux-gnu/bin
export QEMU_CPU=max,sve-max-vq=1
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DDISABLE_OPENMP=TRUE -DBUILD_SHARED_LIBS=TRUE -DENFORCE_TESTER3=TRUE -DENABLE_GNUABI=On -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_SVE=TRUE -DEMULATOR=qemu-aarch64 ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
stage('aarch32 gcc') {
agent { label 'docker-aarch32' }
steps {
sh '''
echo "aarch32 gcc on" `hostname`
tar cfz /tmp/builddir.tgz .
docker start jenkins || true
docker exec jenkins apt-get update
docker exec jenkins apt-get -y dist-upgrade
docker exec jenkins rm -rf /build
docker exec jenkins mkdir /build
docker cp /tmp/builddir.tgz jenkins:/tmp/
docker exec jenkins tar xf /tmp/builddir.tgz -C /build
docker exec jenkins rm -f /tmp/builddir.tgz
rm -f /tmp/builddir.tgz
docker exec jenkins bash -c "set -ev;export OMP_WAIT_POLICY=passive;cd /build;rm -rf build;mkdir build;cd build;export CC=gcc;export PATH=/opt/bin:$PATH;cmake -GNinja -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_TESTER3=TRUE ..;ninja;ctest -j `nproc`"
docker stop jenkins
'''
}
}
stage('aarch32 clang') {
agent { label 'docker-aarch32' }
steps {
sh '''
echo "aarch32 clang on" `hostname`
tar cfz /tmp/builddir.tgz .
docker start jenkins || true
docker exec jenkins apt-get update
docker exec jenkins apt-get -y dist-upgrade
docker exec jenkins rm -rf /build
docker exec jenkins mkdir /build
docker cp /tmp/builddir.tgz jenkins:/tmp/
docker exec jenkins tar xf /tmp/builddir.tgz -C /build
docker exec jenkins rm -f /tmp/builddir.tgz
rm -f /tmp/builddir.tgz
docker exec jenkins bash -c "set -ev;export OMP_WAIT_POLICY=passive;cd /build;rm -rf build;mkdir build;cd build;export CC=clang-10;export PATH=/opt/bin:$PATH;cmake -GNinja -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_TESTER3=TRUE ..;ninja;ctest -j `nproc`"
docker stop jenkins
'''
}
}
stage('Intel Compiler') {
agent { label 'icc' }
steps {
sh '''
echo "Intel Compiler on" `hostname`
export CC=icc
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
stage('Arm Mac') {
agent { label 'mac' }
steps {
sh '''
echo "Cross compiling for Arm Mac with clang on" `hostname`
export PATH=$PATH:/opt/local/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
export CC=clang
(brew update && brew upgrade) || true
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DCMAKE_OSX_ARCHITECTURES=arm64 -DSLEEF_SHOW_CONFIG=1 -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_TESTS=FALSE ..
ninja
'''
}
}
stage('iOS') {
agent { label 'mac' }
steps {
sh '''
echo "Cross compiling for iOS on" `hostname`
export PATH=$PATH:/opt/local/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
rm -rf build-native
mkdir build-native
cd build-native
cmake -GNinja -DBUILD_QUAD=TRUE ..
ninja
cd ..
rm -rf build-cross
mkdir build-cross
cd build-cross
# You need to use ios.toolchain.cmake at https://github.com/leetal/ios-cmake
cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=~/ios.toolchain.cmake -DNATIVE_BUILD_DIR=`pwd`/../build-native -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DDISABLE_MPFR=TRUE -DDISABLE_SSL=TRUE ..
ninja
'''
}
}
stage('Mac') {
agent { label 'mac' }
steps {
sh '''
echo "Mac with clang on" `hostname`
export PATH=$PATH:/opt/local/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
export CC=clang
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DENFORCE_TESTER3=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `sysctl -n hw.logicalcpu`
ninja install
'''
}
}
stage('Static libs on mac') {
agent { label 'mac' }
steps {
sh '''
echo "Mac with gcc on" `hostname`
export PATH=$PATH:/opt/local/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
export CC=gcc-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DBUILD_SHARED_LIBS=FALSE -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -DENFORCE_TESTER3=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `sysctl -n hw.logicalcpu`
ninja install
'''
}
}
stage('FreeBSD') {
agent { label 'freebsd' }
steps {
sh '''
echo "FreeBSD on" `hostname`
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j 2
ninja install
'''
}
}
stage('Android') {
agent { label 'android-ndk' }
steps {
sh '''
echo "Android on" `hostname`
rm -rf build-native
mkdir build-native
cd build-native
/usr/bin/cmake -GNinja -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE ..
ninja
cd ..
rm -rf build-cross
mkdir build-cross
cd build-cross
/usr/bin/cmake -GNinja -DCMAKE_TOOLCHAIN_FILE=/opt/android-ndk-r21d/build/cmake/android.toolchain.cmake -DNATIVE_BUILD_DIR=`pwd`/../build-native -DANDROID_ABI=arm64-v8a -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE ..
ninja
'''
}
}
stage('atom gcc-10') {
agent { label 'atom' }
steps {
sh '''
echo "Atom with gcc-10 on" `hostname`
export PATH=/usr/bin:$PATH
export CC=gcc-10
export CXX=g++-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DENABLE_CXX=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=FALSE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE ..
ninja
ctest -j `nproc`
'''
}
}
stage('i386 gcc') {
agent { label 'docker-i386' }
steps {
sh '''
echo "i386 gcc on" `hostname`
tar cfz /tmp/builddir.tgz .
docker start jenkins || true
docker exec jenkins apt-get update
docker exec jenkins apt-get -y dist-upgrade
docker exec jenkins rm -rf /build
docker exec jenkins mkdir /build
docker cp /tmp/builddir.tgz jenkins:/tmp/
docker exec jenkins tar xf /tmp/builddir.tgz -C /build
docker exec jenkins rm -f /tmp/builddir.tgz
rm -f /tmp/builddir.tgz
docker exec jenkins bash -c "set -ev;export PATH=/opt/bin:$PATH;export OMP_WAIT_POLICY=passive;cd /build;rm -rf build;mkdir build;cd build;export CC=gcc;cmake -GNinja -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..;ninja;ctest -j `nproc`"
docker stop jenkins
'''
}
}
stage('i386 clang') {
agent { label 'docker-i386' }
steps {
sh '''
echo "i386 clang on" `hostname`
tar cfz /tmp/builddir.tgz .
docker start jenkins || true
docker exec jenkins apt-get update
docker exec jenkins apt-get -y dist-upgrade
docker exec jenkins rm -rf /build
docker exec jenkins mkdir /build
docker cp /tmp/builddir.tgz jenkins:/tmp/
docker exec jenkins tar xf /tmp/builddir.tgz -C /build
docker exec jenkins rm -f /tmp/builddir.tgz
rm -f /tmp/builddir.tgz
docker exec jenkins bash -c "set -ev;export PATH=/opt/bin:$PATH;export OMP_WAIT_POLICY=passive;cd /build;rm -rf build;mkdir build;cd build;export CC=clang;cmake -GNinja -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..;ninja;ctest -j `nproc`"
docker stop jenkins
'''
}
}
stage('gcc-4.8 and cmake-3.5.1') {
agent { label 'x86 && gcc-4' }
steps {
sh '''
echo "gcc-4.8 and cmake-3.5.1 on" `hostname`
export CC=gcc-4.8.5
BUILD_DIR=`pwd`
cd ..
mv $BUILD_DIR $BUILD_DIR.tmp
mkdir $BUILD_DIR
mv $BUILD_DIR.tmp $BUILD_DIR/sleef
cd $BUILD_DIR
cp sleef/CMakeLists.txt.nested ./CMakeLists.txt
cp sleef/doc/html/hellox86.c sleef/doc/html/tutorial.c .
rm -rf build
mkdir build
cd build
/usr/local/bin/cmake -GNinja -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE ..
ninja
'''
}
}
stage('clang-6.0') {
agent { label 'x86 && clang-6' }
steps {
sh '''
echo "clang-6.0 on" `hostname`
export CC=clang-6.0
rm -rf build
mkdir build
cd build
cmake -GNinja -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
cmake -GNinja -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_FMA4=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
ctest -j `nproc`
'''
}
}
stage('LTO with gcc') {
agent { label 'x86 && gcc-10' }
steps {
sh '''
echo "LTO with gcc on" `hostname`
export PATH=/usr/bin:$PATH:/opt/sde-external-8.56.0-2020-07-05-lin
export CC=gcc-10
export CXX=g++-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DENABLE_CXX=TRUE -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SHARED_LIBS=FALSE -DENABLE_LTO=TRUE -DDISABLE_FMA4=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
stage('LTO with clang') {
agent { label 'x86 && clang-10' }
steps {
sh '''
echo "LTO with clang on" `hostname`
export PATH=/usr/bin:$PATH:/opt/sde-external-8.56.0-2020-07-05-lin
export CC=clang-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SHARED_LIBS=FALSE -DENABLE_LTO=TRUE -DLLVM_AR_COMMAND=llvm-ar-10 -DDISABLE_FMA4=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
stage('gcc x86') {
agent { label 'x86 && gcc-10' }
steps {
sh '''
echo "gcc x86_64 on" `hostname`
export PATH=$PATH:/opt/sde-external-8.56.0-2020-07-05-lin
export CC=gcc-10
export CXX=g++-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DENABLE_CXX=TRUE -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SHARED_LIBS=FALSE -DDISABLE_FMA4=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
stage('clang x86') {
agent { label 'x86 && clang-10' }
steps {
sh '''
echo "clang x86_64 on" `hostname`
export PATH=$PATH:/opt/sde-external-8.56.0-2020-07-05-lin
export CC=clang-10
rm -rf build
mkdir build
cd build
cmake -GNinja -DCMAKE_INSTALL_PREFIX=../install -DSLEEF_SHOW_CONFIG=1 -DENFORCE_TESTER3=TRUE -DBUILD_SCALAR_LIB=TRUE -DBUILD_QUAD=TRUE -DBUILD_DFT=TRUE -DBUILD_INLINE_HEADERS=TRUE -DBUILD_SHARED_LIBS=FALSE -DDISABLE_FMA4=TRUE -DENFORCE_SSE2=TRUE -DENFORCE_SSE4=TRUE -DENFORCE_AVX=TRUE -DENFORCE_AVX2=TRUE -DENFORCE_AVX512F=TRUE ..
ninja
export OMP_WAIT_POLICY=passive
export CTEST_OUTPUT_ON_FAILURE=TRUE
ctest -j `nproc`
ninja install
'''
}
}
}
}
}
}