Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openfpm_pdata
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_pdata
Commits
665076bb
Commit
665076bb
authored
9 years ago
by
Pietro Incardona
Browse files
Options
Downloads
Patches
Plain Diff
Added jenkins script
parent
c236c78f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build_pdata.sh
+118
-0
118 additions, 0 deletions
build_pdata.sh
with
118 additions
and
0 deletions
build_pdata.sh
0 → 100644
+
118
−
0
View file @
665076bb
#! /bin/bash
# Make a directory in /tmp/OpenFPM_data
echo
"Directory:
$1
"
echo
"Machine:
$2
"
mkdir
/tmp/openfpm_pdata
mv
*
.[^.]
*
/tmp/openfpm_pdata
mv
/tmp/openfpm_pdata OpenFPM_pdata
mkdir
OpenFPM_pdata/src/config
git clone ssh://git@ppmcoremirror.dynu.com:2222/incardon/openfpm_vcluster.git OpenFPM_vcluster
git clone ssh://git@ppmcoremirror.dynu.com:2222/incardon/openfpm_devices.git OpenFPM_devices
git clone ssh://git@ppmcoremirror.dynu.com:2222/incardon/openfpm_data.git OpenFPM_data
cd
OpenFPM_pdata
git checkout develop
cd
..
cd
"
$1
/OpenFPM_pdata"
if
[
"
$2
"
==
"gin"
]
then
echo
"Compiling on gin
\n
"
module load gcc/4.9.2
module load openmpi/1.8.1
elif
[
"
$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
-o
output_compile.%J
-K
-n
1
-J
compile sh ./compile_script
## Run on the cluster
bsub
-o
output_run2.%J
-K
-n
2
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 2 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run3.%J
-K
-n
3
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 3 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run4.%J
-K
-n
4
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 4 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run5.%J
-K
-n
5
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 5 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run6.%J
-K
-n
6
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 6 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run6.%J
-K
-n
7
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 7 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run6.%J
-K
-n
8
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 8 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run6.%J
-K
-n
9
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 9 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run6.%J
-K
-n
10
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 10 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run6.%J
-K
-n
11
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 11 ./src/pdata"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
bsub
-o
output_run12.%J
-K
-n
12
-R
"span[hosts=1]"
"module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 12 ./src/vcluster"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
# bsub -o output_run32.%J -K -n 32 "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 32 ./src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
# bsub -o output_run32.%J -K -n 64 "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 64 ./src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
# bsub -o output_run32.%J -K -n 128 "module load openmpi/1.8.1 ; module load gcc/4.9.2; mpirun -np 128 ./src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
elif
[
"
$2
"
==
"taurus"
]
then
echo
"Compiling on taurus"
echo
"
$PATH
"
module load gcc/4.8.2
module load boost/1.55.0-gnu4.8
module load openmpi/1.8.7
module unload bullxmpi
sh ./autogen.sh
sh ./configure
--enable-verbose
CXX
=
mpic++
make
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
# salloc --nodes=1 --ntasks-per-node=16 --time=00:05:00 --mem-per-cpu=1900 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 16 src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
# salloc --nodes=2 --ntasks-per-node=16 --time=00:05:00 --mem-per-cpu=1900 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 32 src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
# salloc --nodes=4 --ntasks-per-node=16 --time=00:05:00 --mem-per-cpu=1900 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 64 src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
# salloc --nodes=8 --ntasks-per-node=16 --time=00:05:00 --mem-per-cpu=1900 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 128 src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
# salloc --nodes=16 --ntasks-per-node=16 --time=00:5:00 --mem-per-cpu=1900 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 256 src/vcluster"
# if [ $? -ne 0 ]; then exit 1 ; fi
else
echo
"Compiling general"
sh ./autogen.sh
sh ./configure
CXX
=
mpic++
make
mpirun
-np
2 ./src/pdata
mpirun
-np
3 ./src/pdata
mpirun
-np
4 ./src/pdata
fi
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