-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
95 lines (91 loc) · 3.12 KB
/
.travis.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
sudo: true
language: c
compiler:
#- clang
- gcc
os:
- linux
before_install:
- export ISX_SRC=$PWD
- sudo apt-get update -qq
- sudo apt-get install -y dc openmpi-bin libopenmpi-dev
## Build libfabric
- git clone https://github.com/ofiwg/libfabric.git src/libfabric
- cd src/libfabric
- ./autogen.sh
- ./configure --prefix=$HOME/opt/libfabric
- make -j 4
- make install
- export FI_LOG_LEVEL=error
- cd ../..
## Build Hydra
- cd src
- wget http://www.mpich.org/static/downloads/3.2/hydra-3.2.tar.gz
- tar xvzf hydra-3.2.tar.gz
- cd hydra-3.2/
- ./configure --prefix=$HOME/opt/hydra
- make -j 4
- make install
- cd ../..
## Build Sandia OpenSHMEM
## - git clone https://github.com/regrant/sandia-shmem.git src/sandia-shmem
- git clone https://github.com/Sandia-OpenSHMEM/SOS.git src/sandia-shmem
- cd src/sandia-shmem
- ./autogen.sh
- ./configure --with-ofi=$HOME/opt/libfabric/ --disable-fortran --prefix=$HOME/opt/sandia-shmem-ofi --enable-error-checking --enable-remote-virtual-addressing --enable-picky --enable-pmi-simple
- make -j 4
- make install
- cd ../..
install:
script:
- export BASE_PATH=$PATH
- export BASE_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
###
### Build and Run ISx (SHMEM)
###
- export PATH=$HOME/opt/sandia-shmem-ofi/bin:$HOME/opt/hydra/bin:$BASE_PATH
- export LD_LIBRARY_PATH=$HOME/opt/sandia-shmem-ofi/lib:$BASE_LD_LIBRARY_PATH
- export OSHRUN_LAUNCHER="mpiexec.hydra"
- cd $ISX_SRC/SHMEM
- make CC=oshcc
- export SMA_SYMMETRIC_SIZE='4G'
- export SHMEM_SYMMETRIC_SIZE='4G'
- mpiexec.hydra -np 4 ./bin/isx.strong 134217728 output_strong
- mpiexec.hydra -np 4 ./bin/isx.weak 33554432 output_weak
- mpiexec.hydra -np 4 ./bin/isx.weak_iso 33554432 output_weak_iso
- make clean
- make debug CC=oshcc
- mpiexec.hydra -np 4 ./bin/isx.strong 16 output_strong
- mpiexec.hydra -np 4 ./bin/isx.weak 16 output_weak
- mpiexec.hydra -np 4 ./bin/isx.weak_iso 16 output_weak_iso
- make clean
- make optimized CC=oshcc
- mpiexec.hydra -np 4 ./bin/isx.strong 134217728 output_strong
- mpiexec.hydra -np 4 ./bin/isx.weak 33554432 output_weak
- mpiexec.hydra -np 4 ./bin/isx.weak_iso 33554432 output_weak_iso
- make clean
- cd ../..
###
### Build and Run ISx (MPI)
###
- export PATH=$BASE_PATH
- export LD_LIBRARY_PATH=$BASE_LD_LIBRARY_PATH
- cd $ISX_SRC/MPI
- make CC=mpicc.openmpi
- mpirun.openmpi -np 4 ./bin/isx.strong 134217728 output_strong
- mpirun.openmpi -np 4 ./bin/isx.weak 33554432 output_weak
- mpirun.openmpi -np 4 ./bin/isx.weak_iso 33554432 output_weak_iso
- make clean
- make optimized CC=mpicc.openmpi
- mpirun.openmpi -np 4 ./bin/isx.strong 134217728 output_strong
- mpirun.openmpi -np 4 ./bin/isx.weak 33554432 output_weak
- mpirun.openmpi -np 4 ./bin/isx.weak_iso 33554432 output_weak_iso
- make clean
- cd ../..
notifications:
email:
recipients:
on_success: [change]
on_failure: [always]