Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
O
openfpm_pdata
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
1
Merge Requests
1
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_pdata
Commits
e3eb69d5
Commit
e3eb69d5
authored
Aug 04, 2017
by
incardon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
General fix fir numeric
parent
feed5676
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
24 deletions
+28
-24
build.sh
build.sh
+28
-24
No files found.
build.sh
View file @
e3eb69d5
...
...
@@ -6,6 +6,12 @@ echo "Directory: $1"
echo
"Machine:
$2
"
echo
"Branch name:
$5
"
if
[
x
"
$5
"
==
x
""
]
;
then
branch
=
$(
git ls-remote
--heads
origin |
grep
$(
git rev-parse HEAD
)
|
cut
-d
/
-f
3
)
else
branch
=
$5
fi
#### If you have a dep_dir file change the branch name to the dep_dir
dep_dir
=
$(
cat
dep_dir
)
...
...
@@ -22,27 +28,25 @@ then
echo
"Compiling on gin
\n
"
source
"
$HOME
/.bashrc"
echo
"AHHHHHHHHHH:
$(
which mpic++
)
"
echo
"AHHHHHHHHHH:
$(
which mpirun
)
"
## Check if MPI folder exist if not copy MPICH
if
[
!
-d
$HOME
/
$
5
/MPI
]
;
then
if
[
!
-d
$HOME
/
$
branch
/MPI
]
;
then
echo
"COPY MPICH"
cp
-R
$HOME
/MPI
$HOME
/
$
5
/MPI
echo
2
>
$HOME
/
$
5
/MPI/version
cp
-R
$HOME
/MPI
$HOME
/
$
branch
/MPI
echo
2
>
$HOME
/
$
branch
/MPI/version
fi
### Activate MPI and binutils ###
export
PATH
=
"
$PATH
:
$HOME
/
$
5
/MPI/bin"
export
PATH
=
"
$PATH
:
$HOME
/
$
branch
/MPI/bin"
export
PATH
=
"/usr/local/binutils/bin/:
$PATH
"
mkdir
$HOME
/
$
5
mkdir
$HOME
/
$
branch
if
[
x
"
$4
"
==
x
"full"
]
;
then
CC
=
gcc-4.9.2
CXX
=
g++-4.9.2
FC
=
gfortran-4.9.2
F77
=
gfortran-4.9.2 ./install
-i
$HOME
/
$
5
-s
-c
"--prefix=/home/jenkins/openfpm_install"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
5
source
$HOME
/openfpm_vars_
$
5
CC
=
gcc-4.9.2
CXX
=
g++-4.9.2
FC
=
gfortran-4.9.2
F77
=
gfortran-4.9.2 ./install
-i
$HOME
/
$
branch
-s
-c
"--prefix=/home/jenkins/openfpm_install"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
branch
source
$HOME
/openfpm_vars_
$
branch
elif
[
x
"
$3
"
==
x
"numerics"
]
;
then
branch
=
$(
git ls-remote
--heads
origin |
grep
$(
git rev-parse HEAD
)
|
cut
-d
/
-f
3
)
CC
=
gcc-4.9.2
CXX
=
g++-4.9.2
FC
=
gfortran-4.9.2
F77
=
gfortran-4.9.2 ./install
-i
$HOME
/
$branch
-m
-s
-c
"--prefix=/home/jenkins/openfpm_install"
...
...
@@ -50,9 +54,9 @@ then
source
$HOME
/openfpm_vars_
$branch
make
$3
else
CC
=
gcc-4.9.2
CXX
=
g++-4.9.2
FC
=
gfortran-4.9.2
F77
=
gfortran-4.9.2 ./install
-i
$HOME
/
$
5
-m
-s
-c
"--prefix=/home/jenkins/openfpm_install --no-recursion"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
5
source
$HOME
/openfpm_vars_
$
5
CC
=
gcc-4.9.2
CXX
=
g++-4.9.2
FC
=
gfortran-4.9.2
F77
=
gfortran-4.9.2 ./install
-i
$HOME
/
$
branch
-m
-s
-c
"--prefix=/home/jenkins/openfpm_install --no-recursion"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
branch
source
$HOME
/openfpm_vars_
$
branch
make
$3
fi
...
...
@@ -82,10 +86,10 @@ then
export
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:/home/incard/PARMETIS/lib:/home/incard/METIS/lib:/home/incard/HDF5/lib"
mkdir
/scratch/p_ppm/
$
5
./install
-m
-i
"/scratch/p_ppm/
$
5
"
-s
-c
"CXX=mpic++ --no-recursion"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
5
source
$HOME
/openfpm_vars_
$
5
mkdir
/scratch/p_ppm/
$
branch
./install
-m
-i
"/scratch/p_ppm/
$
branch
"
-s
-c
"CXX=mpic++ --no-recursion"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
branch
source
$HOME
/openfpm_vars_
$
branch
make
$3
...
...
@@ -97,20 +101,20 @@ else
echo
"Compiling general"
source
~/.bashrc
mkdir
$HOME
/
$
5
mkdir
$HOME
/
$
branch
if
[
x
"
$4
"
==
x
"full"
]
;
then
./install
-i
$HOME
/
$
5
-s
-c
"--prefix=/Users/jenkins/openfpm_install"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
5
source
$HOME
/openfpm_vars_
$
5
./install
-i
$HOME
/
$
branch
-s
-c
"--prefix=/Users/jenkins/openfpm_install"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
branch
source
$HOME
/openfpm_vars_
$
branch
elif
[
x
"
$3
"
==
x
"numerics"
]
;
then
branch
=
$(
git ls-remote
--heads
origin |
grep
$(
git rev-parse HEAD
)
|
cut
-d
/
-f
3
)
./install
-i
$HOME
/
$branch
-m
-s
-c
"--prefix=/home/jenkins/openfpm_install"
source
$HOME
/openfpm_vars_
$branch
make
$3
else
./install
-i
$HOME
/
$
5
-m
-s
-c
"--prefix=/Users/jenkins/openfpm_install --no-recursion"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
5
source
$HOME
/openfpm_vars_
$
5
./install
-i
$HOME
/
$
branch
-m
-s
-c
"--prefix=/Users/jenkins/openfpm_install --no-recursion"
mv
$HOME
/openfpm_vars
$HOME
/openfpm_vars_
$
branch
source
$HOME
/openfpm_vars_
$
branch
make
$3
fi
...
...
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