Skip to content

Commit b078f10

Browse files
committed
Finalizing the first working draft of the MPICH build script.
Signed-off-by: Damian Rouson <[email protected]>
1 parent 3d2f535 commit b078f10

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

install_prerequisites/buildmpich

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# buildmpich
44
#
55
# -- This script ownloads and installs the MPICH library (http://www.mpich.org).
6-
# Execute this script with no arguments to obtain usage information.
76
#
87
# OpenCoarrays is distributed under the OSI-approved BSD 3-clause License:
98
# Copyright (c) 2015, Sourcery, Inc.
@@ -83,7 +82,7 @@ fi
8382
# Default to installing in the current directory if no path is provided
8483
# in the second command-line argument
8584
if [ -z $2 ]; then
86-
install_path=${PWD}
85+
install_path=${PWD}mpich-$version-installation
8786
else
8887
install_path=$2
8988
fi
@@ -104,7 +103,7 @@ build()
104103
mkdir -p $src\-build &&
105104
cd $src\-build &&
106105
CC=$CC FC=$FC CXX=$CXX ../$src/configure --prefix=$install_path &&
107-
make -j $num_threads
106+
CC=$CC FC=$FC CXX=$CXX make -j $num_threads
108107
}
109108

110109
if [ $# == 0 ]; then

0 commit comments

Comments
 (0)