Skip to content

Commit

Permalink
allow bootstrap without MPI
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed Jun 17, 2024
1 parent e466c73 commit 85e8811
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions bootstrap-travis
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
#!/bin/sh

comms="mpi"
cc="mpicc"
if [ "X$1" = "Xsingle" ]; then
comms="single"
cc="gcc"
fi

qmpv="qmp-2.5.4"
qmp="$qmpv.tar.gz"
if [ ! -f $qmp ]; then
Expand All @@ -10,8 +17,8 @@ mkdir qmp
cd $qmpv
./configure \
--prefix="$PWD/../qmp" \
--with-qmp-comms-type=mpi \
CC=mpicc \
--with-qmp-comms-type=$comms \
CC=$cc \
CFLAGS="-Wall -O3 -std=gnu99 -g -fPIC"
make && make install
cd ..
Expand All @@ -27,7 +34,7 @@ cd $qiov
./configure \
--prefix="$PWD/../qio" \
--with-qmp="$PWD/../qmp" \
CC=mpicc \
CC=$cc \
CFLAGS="-Wall -O3 -std=gnu99 -g -fPIC"
make && make install
cd ..

0 comments on commit 85e8811

Please sign in to comment.