-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathazure-pipelines.yml
849 lines (790 loc) · 27.3 KB
/
azure-pipelines.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
# -*- mode: yaml -*-
# References:
# https://github.com/fastai/fastai/blob/22b32aab155dcfa5ebf10d4b86f125039811bd5d/azure-pipelines.yml
# https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/anaconda?view=azure-devops&tabs=vs2017
# https://docs.microsoft.com/en-us/azure/devops/pipelines/ecosystems/python?view=azure-devops
# https://github.com/microsoft/azure-pipelines-tasks/issues/8504
trigger:
- azure_install
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight build
branches:
include:
- azure_install
always: true
jobs:
# Linux #######################################################################
#
# pip -------------------------------------------------------------------------
- job: linux_pip_pypi
displayName: Ubuntu pip from PyPI
pool:
vmImage: ubuntu-16.04
steps:
- script: |
python3 -m pip install -U pip --user
python3 -m pip install openpmd-api --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
# python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: linux_pip_pypi_nobin
displayName: Ubuntu pip from PyPI w/o binary
pool:
vmImage: ubuntu-18.04
steps:
- script: |
python3 -m pip install -U pip setuptools wheel --user
python3 -m pip install -U cmake --user
python3 -m pip install openpmd-api --no-binary openpmd-api --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
# python3 -m openpmd_api.ls --help
# openpmd-ls --help
#- job: linux_pypy_pypi
# displayName: Ubuntu PyPy from PyPI
# pool:
# vmImage: ubuntu-disco
# steps:
# - script: |
# sudo apt-get update
# sudo apt-get install -y pypy3
# wget https://bootstrap.pypa.io/get-pip.py
# pypy3 get-pip.py
# pypy3 -m pip install -U pip --user
# pypy3 -m pip install openpmd-api --user
# - script: pypy3 -c "import openpmd_api as api; print(api.variants)"
#- job: linux_pypy_pypi_nobin
# displayName: Ubuntu PyPy3 from PyPI w/o binary
# pool:
# vmImage: ubuntu-disco
# steps:
# - script: |
# sudo apt-get update
# sudo apt-get install -y pypy3
# wget https://bootstrap.pypa.io/get-pip.py
# pypy3 get-pip.py
# pypy3 -m pip install -U pip setuptools wheel --user
# pypy3 -m pip install -U cmake --user
# pypy3 -m pip install openpmd-api --no-binary openpmd-api --user
# - script: pypy3 -c "import openpmd_api as api; print(api.variants)"
- job: linux_pip_pypi_mpich
displayName: Ubuntu pip from PyPI w/ MPICH
pool:
vmImage: ubuntu-18.04
steps:
- script: |
sudo apt-get update
sudo apt-get install -y libmpich-dev
python3 -m pip install -U pip setuptools wheel --user
python3 -m pip install -U cmake --user
openPMD_USE_MPI=ON python3 -m pip install openpmd-api --no-binary openpmd-api --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
# python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: linux_pip_dev_openmpi
displayName: Ubuntu pip from dev w/ OpenMPI
pool:
vmImage: ubuntu-latest
steps:
- script: |
sudo apt-get update
sudo apt-get install -y libopenmpi-dev
python3 -m pip install -U pip setuptools wheel --user
python3 -m pip install -U cmake --user
openPMD_USE_MPI=ON python3 -m pip install git+https://github.com/openPMD/openPMD-api.git@dev --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: linux_pip_dev
displayName: Ubuntu pip from dev
pool:
vmImage: ubuntu-latest
steps:
- script: |
python3 -m pip install -U pip --user
python3 -m pip install git+https://github.com/openPMD/openPMD-api.git@dev --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
python3 -m openpmd_api.ls --help
# openpmd-ls --help
# conda -----------------------------------------------------------------------
# attn: each build step runs in its own process and might require
# "conda activate <env>"!
- job: linux_conda
displayName: Ubuntu conda
pool:
vmImage: ubuntu-16.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda create -n openpmd -y -c conda-forge openpmd-api
- script: |
source activate openpmd
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: linux_conda_mpich
displayName: Ubuntu conda w/ MPICH
pool:
vmImage: ubuntu-18.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda create -n openpmd -y -c conda-forge openpmd-api=*=mpi_mpich*
- script: |
source activate openpmd
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: linux_conda_openmpi
displayName: Ubuntu conda w/ OpenMPI
pool:
vmImage: ubuntu-latest
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda create -n openpmd -y -c conda-forge openpmd-api=*=mpi_openmpi*
- script: |
source activate openpmd
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
# mamba -----------------------------------------------------------------------
# attn: each build step runs in its own process and might require
# "conda activate <env>"!
- job: linux_mamba
displayName: Ubuntu mamba
pool:
vmImage: ubuntu-16.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge mamba
mamba install -y -c conda-forge openpmd-api
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: linux_mamba_mpich
displayName: Ubuntu mamba w/ MPICH
pool:
vmImage: ubuntu-18.04
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge mamba
mamba install -y -c conda-forge openpmd-api=*=mpi_mpich*
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: linux_mamba_openmpi
displayName: Ubuntu mamba w/ OpenMPI
pool:
vmImage: ubuntu-latest
steps:
- bash: echo "##vso[task.prependpath]$CONDA/bin"
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge mamba
mamba install -y -c conda-forge openpmd-api=*=mpi_openmpi*
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
# spack -----------------------------------------------------------------------
# timeout: >60min
- job: linux_spack
displayName: Ubuntu spack
timeoutInMinutes: 120
pool:
vmImage: ubuntu-latest
steps:
- script: |
sudo apt-get update
sudo apt-get install -y gfortran
export SYSTEM=$(uname -s)
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack compiler find
spack install -v --fail-fast openpmd-api %[email protected]
spack load openpmd-api
openpmd-ls --help
# spack install -v --fail-fast cuda
# spack load cuda
# echo '#include <openPMD/openPMD.hpp>' > main.cu
# echo 'int main(){ return 0; }' >> main.cu
# cat main.cu
# nvcc --Werror all-warnings -std=c++11 main.cu
# nvcc --Werror all-warnings -std=c++14 main.cu
- job: linux_spack_nompi
displayName: Ubuntu spack w/o MPI
timeoutInMinutes: 120
pool:
vmImage: ubuntu-latest
steps:
- script: |
export SYSTEM=$(uname -s)
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack compiler find
spack install -v --fail-fast openpmd-api -mpi ^adios2~fortran
spack load openpmd-api
openpmd-ls --help
# FIXME https://github.com/ornladios/ADIOS2/issues/1885
- job: linux_spack_nompi_adios2master
displayName: Ubuntu spack w/o MPI ADIOS2@master
timeoutInMinutes: 180
pool:
vmImage: ubuntu-latest
steps:
- script: |
export SYSTEM=$(uname -s)
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack compiler find
spack install -v --fail-fast openpmd-api -mpi ^adios2@master
spack load openpmd-api
openpmd-ls --help
# timeout: >120min
- job: linux_spack_all
displayName: Ubuntu spack w/ all
timeoutInMinutes: 360
pool:
vmImage: ubuntu-latest
steps:
- script: |
sudo apt-get update
sudo apt-get install -y gfortran
export SYSTEM=$(uname -s)
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack compiler find
spack bootstrap
. spack/share/spack/setup-env.sh
spack install -v --fail-fast openpmd-api +python +adios1 +adios2 %[email protected]
spack load -r openpmd-api
python -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python -m openpmd_api.ls --help
# linuxbrew -------------------------------------------------------------------
- job: linux_brew
displayName: Ubuntu linuxbrew
pool:
vmImage: ubuntu-latest
steps:
- script: |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
brew update
brew tap openpmd/openpmd
brew install openpmd-api
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
# source ----------------------------------------------------------------------
- job: linux_source_cuda10_0
displayName: Ubuntu dev source w/ CUDA 10.0.130
pool:
vmImage: ubuntu-18.04
steps:
- script: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
sudo apt-get update
sudo apt-get install -y cmake cuda-10-0 g++ libhdf5-dev libadios-dev
curl -L -o cmake-easyinstall https://git.io/JvLxY
chmod a+x cmake-easyinstall
./cmake-easyinstall --prefix=$HOME/sw/openPMD-api git+https://github.com/openPMD/openPMD-api.git
echo '#include <openPMD/openPMD.hpp>' > main.cu
echo 'int main(){ return 0; }' >> main.cu
cat main.cu
export PATH=/usr/local/cuda/bin:$PATH
nvcc -std=c++11 -I$HOME/sw/openPMD-api/include main.cu
nvcc -std=c++14 -I$HOME/sw/openPMD-api/include main.cu
# CUDA 10.2+:
# nvcc --Werror all-warnings -std c++14 main.cu
# cudatoolkit-dev: conda install has permission problems creating some symlinks
# nvidia-cuda-toolkit 9.1.85: nvcc eats all memory & segfaults
- job: linux_source_cuda10_2
displayName: Ubuntu dev source w/ CUDA 10.2.89 w/ OpenMPI
pool:
vmImage: ubuntu-18.04
steps:
- script: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/7fa2af80.pub
sudo add-apt-repository "deb http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
sudo apt-get update
sudo apt-get install -y cmake cuda g++ libhdf5-openmpi-dev libopenmpi-dev
curl -L -o cmake-easyinstall https://git.io/JvLxY
chmod a+x cmake-easyinstall
./cmake-easyinstall --prefix=$HOME/sw/openPMD-api git+https://github.com/openPMD/openPMD-api.git
echo '#include <openPMD/openPMD.hpp>' > main.cu
echo 'int main(){ return 0; }' >> main.cu
cat main.cu
export PATH=/usr/local/cuda/bin:$PATH
nvcc -std=c++11 --Werror all-warnings -I$HOME/sw/openPMD-api/include -Xcompiler "$(mpic++ -showme:compile)" main.cu
nvcc -std=c++14 --Werror all-warnings -I$HOME/sw/openPMD-api/include -Xcompiler "$(mpic++ -showme:compile)" main.cu
# Ubuntu Disco (19.04) and later: libadios-openmpi-dev
- job: linux_source_oneAPI_icc
displayName: Ubuntu dev source w/ ICC (oneAPI)
pool:
vmImage: ubuntu-18.04
steps:
- script: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get -qqq update
sudo apt-get install -y wget build-essential pkg-config cmake ca-certificates gnupg
sudo wget https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
sudo apt-key add GPG-PUB-KEY-INTEL-SW-PRODUCTS-2023.PUB
echo "deb https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
sudo apt-get install -y intel-oneapi-dpcpp-cpp-compiler-pro
set +e
source /opt/intel/oneapi/setvars.sh
set -e
export CXX=$(which icpc)
export CC=$(which icc)
curl -L -o cmake-easyinstall https://git.io/JvLxY
chmod a+x cmake-easyinstall
./cmake-easyinstall --prefix=$HOME/sw/openPMD-api git+https://github.com/openPMD/openPMD-api.git -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
echo '#include <openPMD/openPMD.hpp>' > main.cpp
echo 'int main(){ return 0; }' >> main.cpp
cat main.cpp
export PATH=/usr/local/cuda/bin:$PATH
icc -std=c++11 -I$HOME/sw/openPMD-api/include main.cpp
icc -std=c++14 -I$HOME/sw/openPMD-api/include main.cpp
# Ref.: https://github.com/rscohn2/oneapi-ci
# macOS #######################################################################
#
# pip -------------------------------------------------------------------------
- job: macOS_pip_pypi
displayName: macOS pip from PyPI
pool:
vmImage: macOS-10.15
steps:
- script: |
python3 -m pip install -U pip --user
python3 -m pip install openpmd-api --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
# python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_pypi_old
displayName: macOS pip from PyPI (old)
pool:
vmImage: macOS-10.14
steps:
- script: |
python3 -m pip install -U pip --user
python3 -m pip install openpmd-api --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
# python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_pypi_nobin
displayName: macOS pip from PyPI w/o binary
pool:
vmImage: macOS-10.14
steps:
- script: |
python3 -m pip install -U pip setuptools wheel cmake --user
python3 -m pip install openpmd-api --no-binary openpmd-api --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
# python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_pypy_pypi
displayName: macOS PyPy from PyPI
pool:
vmImage: macOS-10.15
steps:
- script: |
brew update
brew install pypy3
pypy3 -m pip install -U pip --user
pypy3 -m pip install openpmd-api --user
- script: |
pypy3 -c "import openpmd_api as api; print(api.variants)"
# pypy3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_pypy_pypi_nobin
displayName: macOS PyPy from PyPI w/o binary
pool:
vmImage: macOS-latest
steps:
- script: |
brew update
brew install pypy3
pypy3 -m pip install -U pip setuptools wheel cmake --user
pypy3 -m pip install openpmd-api --no-binary openpmd-api --user
- script: |
pypy3 -c "import openpmd_api as api; print(api.variants)"
# pypy3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_pypy_dev
displayName: macOS PyPy from dev
pool:
vmImage: macOS-10.15
steps:
- script: |
brew update
brew install pypy3
pypy3 -m pip install -U pip --user
pypy3 -m pip install git+https://github.com/openPMD/openPMD-api.git@dev --user
- script: |
pypy3 -c "import openpmd_api as api; print(api.variants)"
pypy3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_pypi_mpich
displayName: macOS pip from PyPI w/ MPICH
pool:
vmImage: macOS-10.15
steps:
- script: |
brew update
brew install mpich
python3 -m pip install -U pip setuptools wheel cmake --user
openPMD_USE_MPI=ON python3 -m pip install openpmd-api --no-binary openpmd-api --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
# python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_dev_openmpi
displayName: macOS pip from dev w/ OpenMPI
pool:
vmImage: macOS-latest
steps:
- script: |
brew update
brew install openmpi
python3 -m pip install -U pip --user
openPMD_USE_MPI=ON python3 -m pip install git+https://github.com/openPMD/openPMD-api.git@dev --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
python3 -m openpmd_api.ls --help
# openpmd-ls --help
- job: macOS_pip_dev
displayName: macOS pip from dev
pool:
vmImage: macOS-latest
steps:
- script: |
python3 -m pip install -U pip --user
python3 -m pip install git+https://github.com/openPMD/openPMD-api.git@dev --user
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
python3 -m openpmd_api.ls --help
# openpmd-ls --help
# conda -----------------------------------------------------------------------
# attn: each build step runs in its own process and might require
# "conda activate <env>"!
- job: macOS_conda
displayName: macOS conda
pool:
vmImage: macOS-10.14
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
conda create -n openpmd -y -c conda-forge openpmd-api
- script: |
source activate openpmd
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: macOS_conda_mpich
displayName: macOS conda w/ MPICH
pool:
vmImage: macOS-10.15
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
conda create -n openpmd -y -c conda-forge openpmd-api=*=mpi_mpich*
- script: |
source activate openpmd
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: macOS_conda_openmpi
displayName: macOS conda w/ OpenMPI
pool:
vmImage: macOS-latest
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
conda create -n openpmd -y -c conda-forge openpmd-api=*=mpi_openmpi*
- script: |
source activate openpmd
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
# mamba -----------------------------------------------------------------------
# attn: each build step runs in its own process and might require
# "conda activate <env>"!
- job: macOS_mamba
displayName: macOS mamba
pool:
vmImage: macOS-10.14
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge mamba
mamba install -y -c conda-forge openpmd-api
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: macOS_mamba_mpich
displayName: macOS mamba w/ MPICH
pool:
vmImage: macOS-10.15
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge mamba
mamba install -y -c conda-forge openpmd-api=*=mpi_mpich*
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
- job: macOS_mamba_openmpi
displayName: macOS mamba w/ OpenMPI
pool:
vmImage: macOS-latest
steps:
- bash: |
echo "##vso[task.prependpath]$CONDA/bin"
sudo chown -R $USER $CONDA
displayName: Add conda to PATH
- script: |
conda install -y -c conda-forge mamba
mamba install -y -c conda-forge openpmd-api=*=mpi_openmpi*
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
# spack -----------------------------------------------------------------------
# timeout: >60min
- job: macOS_spack
displayName: macOS spack
timeoutInMinutes: 120
pool:
vmImage: macOS-latest
steps:
- script: |
brew update
brew install gcc
export SYSTEM=$(uname -s)
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack compiler find
spack install -v --fail-fast openpmd-api
spack load openpmd-api
openpmd-ls --help
- job: macOS_spack_nompi
displayName: macOS spack from dev w/o MPI
timeoutInMinutes: 120
pool:
vmImage: macOS-latest
steps:
# FIXME https://github.com/ornladios/ADIOS2/issues/1885
- script: |
export SYSTEM=$(uname -s)
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack compiler find
spack install -v --fail-fast openpmd-api@dev -mpi ^adios2~fortran
spack load -r openpmd-api
wget https://gist.githubusercontent.com/ax3l/b2399f2e8923def6a5e55f8bd4e5384c/raw/89ed4101559c917bc7d857f9427682e3f5d40024/CMakeLists.txt
wget -O main.cpp https://raw.githubusercontent.com/openPMD/openPMD-api/dev/examples/3_write_serial.cpp
mkdir build
cd build
cmake ..
make
./mytest
openpmd-ls --help
openpmd-ls ../samples/3_write_serial.h5
# timeout: >60min
- job: macOS_spack_all
displayName: macOS spack w/ all
timeoutInMinutes: 360
pool:
vmImage: macOS-latest
steps:
- script: |
export SYSTEM=$(uname -s)
git clone https://github.com/spack/spack.git
. spack/share/spack/setup-env.sh
spack compiler find
spack install -v --fail-fast openpmd-api +python +adios1
spack load -r openpmd-api
python -c "from mpi4py import MPI; import openpmd_api as api; print(api.variants)"
python -m openpmd_api.ls --help
openpmd-ls --help
# homebrew --------------------------------------------------------------------
- job: macOS_brew
displayName: macOS homebrew
pool:
vmImage: macOS-10.14
steps:
- script: |
brew update
brew tap openpmd/openpmd
brew install openpmd-api
- script: |
python3 -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python3 -m openpmd_api.ls --help
# source ----------------------------------------------------------------------
# TODO
# Windows #####################################################################
#
# pip -------------------------------------------------------------------------
- job: win_pip_pypi
displayName: Windows pip from PyPI
pool:
vmImage: vs2017-win2016
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
architecture: 'x64'
- script: |
which python
python -m pip install -U pip --user
python -m pip install -v openpmd-api --user
- script: |
python -c "import openpmd_api as api; print(api.variants)"
# python -m openpmd_api.ls --help
# openpmd-ls --help
- job: win_pip_pypi_nobin
displayName: Windows pip from PyPI w/o binary
pool:
vmImage: vs2017-win2016
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'
- script: |
which python
python -m pip install -U pip setuptools wheel cmake --user
python -m pip install -v openpmd-api --no-binary openpmd-api --user
- script: |
python -c "import openpmd_api as api; print(api.variants)"
# python -m openpmd_api.ls --help
# openpmd-ls --help
- job: win_pip_dev
displayName: Windows pip from dev
pool:
# vmImage: windows-latest
# vmImage: windows-2019
vmImage: vs2017-win2016
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
architecture: 'x64'
- script: |
which python
python -m pip install -U pip --user
python -m pip install -v git+https://github.com/openPMD/openPMD-api.git@dev --user
- script: |
python -c "import openpmd_api as api; print(api.variants)"
python -m openpmd_api.ls --help
openpmd-ls --help
# conda -----------------------------------------------------------------------
# attn: each build step runs in its own process and might require
# "call activate <env>"!
- job: win_conda
displayName: Windows conda
pool:
vmImage: vs2017-win2016
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda command to PATH
- script: |
call activate base
conda install -c conda-forge openpmd-api
displayName: Activate base env, install openPMD package
# - script: dumpbin.exe /dependents C:\Miniconda\Lib\site-packages\openpmd_api.cp37-win_amd64.pyd
- script: |
which python
which python.exe
- script: |
call activate base
which python
which python.exe
- script: |
call activate base
python -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python -m openpmd_api.ls --help
# mamba -----------------------------------------------------------------------
# attn: each build step runs in its own process and might require
# "call activate <env>"!
- job: win_mamba
displayName: Windows mamba
pool:
vmImage: vs2017-win2016
steps:
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts"
displayName: Add conda command to PATH
- script: |
call activate base
conda install -y -c conda-forge mamba
displayName: Activate base env, install mamba package
- script: |
call activate base
mamba install -y -c conda-forge openpmd-api
displayName: Activate base env, install openPMD package
# - script: dumpbin.exe /dependents C:\Miniconda\Lib\site-packages\openpmd_api.cp37-win_amd64.pyd
- script: |
which python
which python.exe
- script: |
call activate base
which python
which python.exe
- script: |
call activate base
python -c "import openpmd_api as api; print(api.variants)"
openpmd-ls --help
# python -m openpmd_api.ls --help
# source ----------------------------------------------------------------------
# TODO
# other to do -----------------------------------------------------------------
#
# - open example data sets
# - compile downstream examples with NVCC and clang -x cuda