Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_io
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sbalzarini Lab
Software
Parallel Computing
OpenFPM
openfpm_io
Commits
eaffa231
Commit
eaffa231
authored
6 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Adding install scripts
parent
19ccc291
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
install_BOOST.sh
+32
-0
32 additions, 0 deletions
install_BOOST.sh
install_HDF5.sh
+57
-0
57 additions, 0 deletions
install_HDF5.sh
install_MPI_mpich.sh
+41
-0
41 additions, 0 deletions
install_MPI_mpich.sh
with
130 additions
and
0 deletions
install_BOOST.sh
0 → 100755
+
32
−
0
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
This diff is collapsed.
Click to expand it.
install_HDF5.sh
0 → 100755
+
57
−
0
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
This diff is collapsed.
Click to expand it.
install_MPI_mpich.sh
0 → 100755
+
41
−
0
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment