Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_io
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
openfpm
openfpm_io
Commits
eaffa231
Commit
eaffa231
authored
Dec 17, 2018
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding install scripts
parent
19ccc291
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
130 additions
and
0 deletions
+130
-0
install_BOOST.sh
install_BOOST.sh
+32
-0
install_HDF5.sh
install_HDF5.sh
+57
-0
install_MPI_mpich.sh
install_MPI_mpich.sh
+41
-0
No files found.
install_BOOST.sh
0 → 100755
View file @
eaffa231
#!/bin/bash
# check if the directory $1/BOOST exist
if
[
-d
"
$1
/BOOST"
]
;
then
echo
"BOOST already installed"
exit
0
fi
wget http://ppmcore.mpi-cbg.de/upload/boost_1_68_0.tar.bz2
tar
-xvf
boost_1_68_0.tar.bz2
cd
boost_1_68_0
if
[
x
"
$4
"
!=
x
""
]
;
then
if
[
-f
$HOME
/user-config.jam
]
;
then
mv
$HOME
/user-config.jam
$HOME
/user-config.jam_bck
fi
if
[
x
"
$5
"
!=
x
""
]
;
then
echo
"using gcc :
$5
.
$6
:
$4
; "
>
$HOME
/user-config.jam
else
echo
"using gcc : :
$4
; "
>
$HOME
/user-config.jam
fi
fi
./bootstrap.sh
--with-toolset
=
$3
mkdir
$1
/BOOST
./b2
-j
$2
install
--prefix
=
$1
/BOOST
rm
-rf
boost_1_68_0
if
[
-f
$HOME
/user-config.jam_bck
]
;
then
mv
$HOME
/user-config.jam_bck
$HOME
/user-config.jam
fi
rm
-rf
boost_1_68_0.tar.bz2
install_HDF5.sh
0 → 100755
View file @
eaffa231
#! /bin/bash
source
script/discover_os
discover_os
# check if the directory $1/HDF5 exist
if
[
-d
"
$1
/HDF5"
-a
-f
"
$1
/HDF5/include/hdf5.h"
]
;
then
echo
"HDF5 is already installed"
exit
0
fi
if
[
!
-d
"
$1
/ZLIB"
-a
x
"
$platform
"
!=
x
"cygwin"
]
;
then
rm
zlib-1.2.11.tar.gz
rm
-rf
zlib-1.2.11
wget https://zlib.net/zlib-1.2.11.tar.gz
if
[
$?
-ne
0
]
;
then
echo
-e
"
\0
33[91;5;1m FAILED! Installation requires an Internet connection
\0
33[0m"
exit
1
fi
tar
-xf
zlib-1.2.11.tar.gz
cd
zlib-1.2.11
CC
=
mpicc ./configure
--prefix
=
$1
/ZLIB
make
-j
$2
if
[
$?
-eq
0
]
;
then
make check
install
else
echo
-e
"
\0
33[91;5;1m ZLIB Installation FAILED
\0
33[0m"
exit
1
fi
else
echo
"ZLIB is already installed"
fi
### 1.8.19 does not compile on CYGWIN
wget http://ppmcore.mpi-cbg.de/upload/hdf5-1.8.19.tar.gz
tar
-xf
hdf5-1.8.19.tar.gz
cd
hdf5-1.8.19
if
[
x
"
$platform
"
!=
x
"cygwin"
]
;
then
CC
=
mpicc ./configure
--with-zlib
=
$1
/ZLIB
--enable-parallel
--prefix
=
$1
/HDF5
make
-j
$2
else
CC
=
mpicc ./configure
--enable-parallel
--prefix
=
$1
/HDF5
make
CFLAGS
=
-D_POSIX_C_SOURCE
-j
$2
fi
mkdir
$1
/HDF5
make
install
if
[
$?
-ne
0
]
;
then
echo
"HDF5 error installing"
exit
0
fi
echo
1
>
$1
/HDF5/version
install_MPI_mpich.sh
0 → 100755
View file @
eaffa231
#!/bin/bash
# check if the directory $1/MPI exist
if
[
-d
"
$1
/MPI"
]
;
then
echo
"MPI already installed"
exit
0
fi
rm
-rf
mpich-3.3
rm
mpich-3.3.tar.gz
wget http://ppmcore.mpi-cbg.de/upload/mpich-3.3.tar.gz
tar
-xvf
mpich-3.3.tar.gz
cd
mpich-3.3
#
# --disable-mca-dso \
# --disable-sysv-shmem \
# --enable-cxx-exceptions \
# --with-threads=posix \
# --without-cs-fs \
# --with-mpi-param_check=always \
# --enable-contrib-no-build=vt,libompitrace \
#
#--enable-mca-no-build=paffinity,installdirs-windows,timer-windows,shmem-sysv
#
#
if
[
x
"
$6
"
==
x
"1"
]
;
then
echo
"Installing MPI with GPU support"
./configure
--prefix
=
$1
/MPI
--enable-fortran
CC
=
$3
CXX
=
$4
F77
=
$5
FC
=
$5
else
echo
"Installing MPI without GPU support"
./configure
--prefix
=
$1
/MPI
--enable-fortran
CC
=
$3
CXX
=
$4
F77
=
$5
FC
=
$5
fi
make
-j
$2
make
install
# Mark the installation
echo
4
>
$1
/MPI/version
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment