generated from DARMA-tasking/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
de8d3c0
commit eeb3c22
Showing
6 changed files
with
203 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if test $# -lt 1 | ||
then | ||
echo "usage: ./$0 <cmake-version> <arch>" | ||
exit 1 | ||
fi | ||
|
||
cmake_version=$1 | ||
arch=x86_64 | ||
|
||
if test $# -gt 1 | ||
then | ||
arch=$2 | ||
fi | ||
|
||
if test "${arch}" = "arm64v8" | ||
then | ||
arch=aarch64 | ||
fi | ||
|
||
if test "${arch}" = "amd64" | ||
then | ||
arch=x86_64 | ||
fi | ||
|
||
cmake_tar_name=cmake-${cmake_version}-linux-$arch.tar.gz | ||
|
||
echo "${cmake_version}" | ||
echo "${cmake_tar_name}" | ||
|
||
wget http://github.com/Kitware/CMake/releases/download/v${cmake_version}/${cmake_tar_name} | ||
|
||
tar xzf ${cmake_tar_name} --one-top-level=cmake --strip-components 1 |
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if test $# -lt 1 | ||
then | ||
echo "usage: ./$0 <fmt-version> <make_flags>" | ||
exit 1 | ||
fi | ||
|
||
fmt_version=$1 | ||
|
||
base_dir=$(pwd) | ||
|
||
git clone https://github.com/fmtlib/fmt.git | ||
cd fmt | ||
git checkout ${fmt_version} | ||
mkdir build && cd build | ||
cmake .. -D FMT_TEST=OFF | ||
make ${make_flags} | ||
make install | ||
cd ${base_dir} | ||
rm -rf fmt |
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,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if test $# -lt 1 | ||
then | ||
echo "usage: ./$0 <libunwind-version>" | ||
exit 1 | ||
fi | ||
|
||
libunwind_version=$1 | ||
libunwind_name="libunwind-${libunwind_version}" | ||
libunwind_tar_name=${libunwind_name}.tar.gz | ||
|
||
echo "${libunwind_version}" | ||
echo "${libunwind_name}" | ||
echo "${libunwind_tar_name}" | ||
|
||
wget https://github.com/libunwind/libunwind/releases/download/v${libunwind_version}/${libunwind_tar_name} | ||
|
||
tar xzf ${libunwind_tar_name} | ||
rm ${libunwind_tar_name} | ||
cd ${libunwind_name} | ||
./configure \ | ||
--enable-static \ | ||
--enable-shared \ | ||
--enable-setjmp=no \ | ||
--prefix=`/usr/lib/x86_64-linux-gnu/` | ||
make | ||
make install | ||
cd - | ||
rm -rf ${libunwind_name} |
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,39 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if test $# -lt 2 | ||
then | ||
echo "usage: ./$0 <mpich-version> <make_flags> <installation_prefix>" | ||
exit 1 | ||
fi | ||
|
||
mpich_version=$1 | ||
mpich_name="mpich-${mpich_version}" | ||
mpich_tar_name="${mpich_name}.tar.gz" | ||
make_flags="$2" | ||
installation_prefix="${3-}" | ||
|
||
echo "${mpich_version}" | ||
echo "${mpich_name}" | ||
echo "${mpich_tar_name}" | ||
echo "${make_flags}" | ||
|
||
wget http://www.mpich.org/static/downloads/${mpich_version}/${mpich_tar_name} | ||
tar xzf ${mpich_tar_name} | ||
rm ${mpich_tar_name} | ||
cd ${mpich_name} | ||
./configure \ | ||
--enable-static=false \ | ||
--enable-alloca=true \ | ||
--disable-long-double \ | ||
--enable-threads=single \ | ||
--enable-fortran=no \ | ||
--enable-fast=all \ | ||
--enable-g=none \ | ||
--enable-timing=none \ | ||
${installation_prefix:+ --prefix"=${installation_prefix}"} | ||
make ${make_flags} | ||
make install | ||
cd - | ||
rm -rf ${mpich_name} |
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,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if test $# -lt 3 | ||
then | ||
echo "usage: ./$0 <openmpi-dir> <openmpi-version> <make_flags>" | ||
exit 1 | ||
fi | ||
|
||
openmpi_dir=$1 | ||
openmpi_version=$2 | ||
openmpi_name="openmpi-${openmpi_version}" | ||
openmpi_tar_name="${openmpi_name}.tar.gz" | ||
make_flags="$3" | ||
|
||
echo "${openmpi_dir}" | ||
echo "${openmpi_version}" | ||
echo "${openmpi_name}" | ||
echo "${openmpi_tar_name}" | ||
echo "${make_flags}" | ||
|
||
wget https://download.open-mpi.org/release/open-mpi/${openmpi_dir}/${openmpi_tar_name} | ||
tar xzf ${openmpi_tar_name} | ||
rm ${openmpi_tar_name} | ||
cd ${openmpi_name} | ||
./configure \ | ||
--disable-shared \ | ||
--enable-static | ||
make ${make_flags} | ||
make install | ||
cd - | ||
rm -rf ${openmpi_name} |
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,40 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -exo pipefail | ||
|
||
if test $# -lt 2 | ||
then | ||
echo "usage: ./$0 <make_flags> <install-dir>" | ||
exit 1 | ||
fi | ||
|
||
make_flags=$1 | ||
build_dir=/trilinos-build/ | ||
install_dir=$2 | ||
|
||
if test -d Trilinos | ||
then | ||
echo "Found Trilinos already" | ||
else | ||
git clone https://github.com/trilinos/Trilinos.git --depth=1 | ||
fi | ||
|
||
mkdir -p ${build_dir} | ||
mkdir -p ${install_dir} | ||
|
||
cd ${build_dir} | ||
export FC=/usr/bin/gfortran | ||
cmake \ | ||
-DCMAKE_INSTALL_PREFIX:FILEPATH=${install_dir} \ | ||
-DTPL_ENABLE_MPI:BOOL=ON \ | ||
-DCMAKE_C_FLAGS:STRING="-m64 -g" \ | ||
-DCMAKE_CXX_FLAGS:STRING="-m64 -g" \ | ||
-DTrilinos_ENABLE_ALL_PACKAGES:BOOL=OFF \ | ||
-DTrilinos_ENABLE_Zoltan:BOOL=ON \ | ||
-DZoltan_ENABLE_ULLONG_IDS:Bool=ON \ | ||
../Trilinos | ||
make ${make_flags} | ||
make install | ||
cd - | ||
rm -rf Trilinos | ||
rm -rf ${build_dir} |