Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sbalzarini Lab
S
Software
P
Parallel Computing
OpenFPM
openfpm_vcluster
Commits
31d3dfba
Commit
31d3dfba
authored
May 20, 2015
by
incardon
Browse files
Fixing jenkins script
parent
db15dc1f
Changes
1
Show whitespace changes
Inline
Side-by-side
build_vcluster.sh
View file @
31d3dfba
...
@@ -25,19 +25,6 @@ then
...
@@ -25,19 +25,6 @@ then
module load openmpi/1.8.1
module load openmpi/1.8.1
fi
fi
if
[
"
$2
"
==
"wetcluster"
]
then
echo
"Compiling on wetcluster
\n
"
module load gcc/4.9.2
module load openmpi/1.8.1
module load boost/1.54.0
COMPILE_OPTIONS
=
'--with-boost="/sw/apps/boost/1.54.0/"'
fi
sh ./autogen.sh
sh ./configure
"
$(
COMPILE_OPTIONS
)
"
CXX
=
mpic++
make
if
[
$2
==
"wetcluster"
]
if
[
$2
==
"wetcluster"
]
then
then
bsub
-K
-n
2 mpirun
-np
2 ./src/vcluster
bsub
-K
-n
2 mpirun
-np
2 ./src/vcluster
...
@@ -48,3 +35,32 @@ else
...
@@ -48,3 +35,32 @@ else
# mpirun -np 4 ./src/vcluster
# mpirun -np 4 ./src/vcluster
fi
fi
if
[
"
$2
"
==
"wetcluster"
]
then
echo
"Compiling on wetcluster"
## produce the module path
export
MODULEPATH
=
"/sw/apps/modules/modulefiles:
$MODULEPATH
"
script
=
"module load gcc/4.9.2
\n
module load openmpi/1.8.1
\n
module load boost/1.54.0
\n
compile_options='--with-boost=/sw/apps/boost/1.54.0/'
\n
\n
sh ./autogen.sh
\n
sh ./configure
\"\$
compile_options
\"
CXX=mpic++
\n
make
\n
if [
\"\$
?
\"
= "
0
" ]; then exit 1 ; fi
\n
exit(0)
\n
"
echo
$script
|
sed
-r
's/\\n/\n/g'
>
compile_script
# bsub "cd \"$1/OpenFPM_vcluster\"\n
# sh ./compile_script"
# bsub -K -n 2 mpirun -np 2 ./src/vcluster
# if [ "$?" = "0" ]; then exit 1 ; fi
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