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
f9af0710
Commit
f9af0710
authored
3 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Resetiing all deps
parent
ffc427aa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#3603
failed
3 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.sh
+5
-3
5 additions, 3 deletions
build.sh
install_MPI.sh
+34
-0
34 additions, 0 deletions
install_MPI.sh
with
39 additions
and
3 deletions
build.sh
+
5
−
3
View file @
f9af0710
...
...
@@ -39,9 +39,11 @@ cd "$1/openfpm_io"
#rm -rf $HOME/openfpm_dependencies/openfpm_io/$branch/HDF5
#rm -rf $HOME/openfpm_dependencies/openfpm_io/$branch/BOOST
rm
-rf
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/
if
[
x
"
$hostname
"
==
x
"cifarm-centos-node.mpi-cbg.de"
]
;
then
source
/opt/rh/devtoolset-7/enable
./install_MPI
_mpich
.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
./install_MPI.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
export
PATH
=
"
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/MPI/bin/:
$PATH
"
./install_BOOST.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
./install_HDF5.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
...
...
@@ -50,7 +52,7 @@ if [ x"$hostname" == x"cifarm-centos-node.mpi-cbg.de" ]; then
fi
if
[
x
"
$hostname
"
==
x
"cifarm-ubuntu-node"
]
;
then
./install_MPI
_mpich
.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
./install_MPI.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
export
PATH
=
"/opt/bin:
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/MPI/bin/:
$PATH
"
./install_BOOST.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
./install_HDF5.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
...
...
@@ -60,7 +62,7 @@ fi
if
[
x
"
$hostname
"
==
x
"cifarm-mac-node.mpi-cbg.de"
]
;
then
export
PATH
=
"/usr/local/bin:
$PATH
"
./install_MPI
_mpich
.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
./install_MPI.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
export
PATH
=
"
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/MPI/bin/:
$PATH
"
./install_BOOST.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
./install_HDF5.sh
$HOME
/openfpm_dependencies/openfpm_io/
$branch
/ 4
...
...
This diff is collapsed.
Click to expand it.
install_MPI.sh
0 → 100755
+
34
−
0
View file @
f9af0710
#!/bin/bash
# check if the directory $1/MPI exist
if
[
-d
"
$1
/MPI"
]
;
then
echo
"MPI already installed"
exit
0
fi
./script/download_MPI.sh
cd
openmpi-4.1.1
if
[
-f
../mpi_add_options
]
;
then
mpi_options
=
$(
cat
../mpi_add_options
)
echo
"Adding MPI options:
$mpi_options
"
fi
if
[
x
"
$3
"
==
x
"1"
]
;
then
echo
"Installing MPI with GPU support"
# Detect where is nvcc
cuda_location
=
$(
dirname
$(
dirname
$(
which nvcc
))
)
./configure
--with-hwloc
=
internal
--with-libevent
=
internal
$mpi_options
--with-cuda
=
$cuda_location
--prefix
=
$1
/MPI
--enable-mpi-fortran
=
yes
CC
=
$4
CXX
=
$5
F77
=
$6
FC
=
$7
$8
else
echo
"Installing MPI without GPU support"
./configure
--with-hwloc
=
internal
--with-libevent
=
internal
$mpi_options
--prefix
=
$1
/MPI
--enable-mpi-fortran
=
yes
CC
=
$4
CXX
=
$5
F77
=
$6
FC
=
$7
$8
fi
make
-j
$2
make
install
# Mark the installation
echo
10
>
$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