-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #207 from ludwig-cf/develop
Release 0.18.0
- Loading branch information
Showing
188 changed files
with
2,525 additions
and
4,659 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
language: c | ||
cache: | ||
- directories: | ||
- mpi | ||
before_install: | ||
- bash ./config/build-mpi.sh | ||
script: | ||
- cp config/travis-gcc.mk ./config.mk | ||
- make serial | ||
- make | ||
- export OMP_NUM_THREADS=1 | ||
- make test | ||
- make clean | ||
- export PATH=$(pwd)/mpi/bin:${PATH} | ||
- cp config/travis-mpicc.mk ./config.mk | ||
- make | ||
- make unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
printf "MPI installation script at %s\n" "$(date)" | ||
|
||
my_prefix=$(pwd)/mpi | ||
|
||
if [ -f mpi/bin/mpicc ]; then | ||
export PATH=${my_prefix}/bin:${PATH} | ||
printf "Added existing local mpi to path:\n" | ||
printf "PATH is %s\n" "${PATH}" | ||
which mpicc | ||
else | ||
printf "%s %s\n" "Install MPI to prefix" "${my_prefix}" | ||
wget https://download.open-mpi.org/release/open-mpi/v4.1/openmpi-4.1.4.tar.gz | ||
tar xf openmpi-4.1.4.tar.gz | ||
cd openmpi-4.1.4 | ||
./configure CC=gcc CXX=g++ \ | ||
--enable-mpi-fortran=no \ | ||
--prefix=${my_prefix} | ||
make -j 2 | ||
make install | ||
cd - | ||
rm -rf openmpi-4.1.4.tar.gz | ||
rm -rf openmpi-4.1.4 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
############################################################################## | ||
# | ||
# travis-mpicc.mk | ||
# | ||
# Parallel unit tests | ||
# | ||
############################################################################## | ||
|
||
BUILD = parallel | ||
MODEL = -D_D3Q19_ | ||
|
||
CC = mpicc -fopenmp | ||
CFLAGS = -O2 -g -Wall -Werror | ||
|
||
AR = ar | ||
ARFLAGS = -cru | ||
LDFLAGS = | ||
|
||
LAUNCH_SERIAL_CMD = | ||
LAUNCH_MPIRUN_CMD = mpirun --oversubscribe | ||
MPIRUN_NTASK_FLAG = -np | ||
|
||
# Unit tests only | ||
MPIRUN_NTASK_UNIT = 4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.