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
3c23828d
Commit
3c23828d
authored
Nov 24, 2018
by
incardon
Browse files
Testing Jenkins MPI
parent
e06b12c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
run.sh
View file @
3c23828d
...
...
@@ -2,21 +2,26 @@
# Make a directory in /tmp/openfpm_data
echo
"Directory:
$1
"
echo
"Machine:
$2
"
echo
"N
proc
:
$3
"
echo
"B
ranch
:
$4
"
workspace
=
$1
hostname
=
$2
n
proc
=
$3
b
ranch
=
$4
echo
"Directory:
$workspace
"
echo
"Machine:
$hostname
"
echo
"Nproc:
$nproc
"
echo
"Branch:
$branch
"
if
[
"
$2
"
==
"wetcluster"
]
;
then
if
[
"
$hostname
"
==
"wetcluster"
]
;
then
export
MODULEPATH
=
"/sw/apps/modules/modulefiles:
$MODULEPATH
"
## 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
$
3
./src/vcluster_test"
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
$
nproc
./src/vcluster_test"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
elif
[
"
$
2
"
==
"taurus"
]
;
then
elif
[
"
$
hostname
"
==
"taurus"
]
;
then
echo
"Running on taurus"
echo
"
$PATH
"
...
...
@@ -27,7 +32,7 @@ elif [ "$2" == "taurus" ]; then
### to exclude --exclude=taurusi[6300-6400],taurusi[5400-5500]
salloc
--nodes
=
1
--ntasks-per-node
=
$
3
--time
=
00:05:00
--mem-per-cpu
=
1800
--partition
=
haswell bash
-c
"ulimit -s unlimited && mpirun -np
$
3
src/vcluster_test --report_level=no"
salloc
--nodes
=
1
--ntasks-per-node
=
$
nproc
--time
=
00:05:00
--mem-per-cpu
=
1800
--partition
=
haswell bash
-c
"ulimit -s unlimited && mpirun -np
$
nproc
src/vcluster_test --report_level=no"
if
[
$?
-ne
0
]
;
then
exit
1
;
fi
sleep
5
# salloc --nodes=2 --ntasks-per-node=24 --time=00:05:00 --mem-per-cpu=1800 --partition=haswell bash -c "ulimit -s unlimited && mpirun -np 48 src/vcluster_test --report_level=no"
...
...
@@ -49,8 +54,9 @@ else
export
LD_LIBRARY_PATH
=
"
$LD_LIBRARY_PATH
:/
$HOME
/openfpm_dependencies/openfpm_vcluster/BOOST/lib"
export
DYLD_LIBRARY_PATH
=
"
$DYLD_LIBRARY_PATH
:/
$HOME
/openfpm_dependencies/openfpm_vcluster/BOOST/lib"
ls
cd
openfpm_vcluster
mpirun
--oversubscribe
-np
$
4
./build/src/vcluster_test
mpirun
--oversubscribe
-np
$
nproc
./build/src/vcluster_test
if
[
$?
-ne
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