Skip to content
Snippets Groups Projects
Commit 71bb0a61 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing jenkins script

parent a3f74c23
No related branches found
No related tags found
No related merge requests found
...@@ -30,8 +30,6 @@ then ...@@ -30,8 +30,6 @@ then
./install ./install
make make
ldd src/pdata
if [ $? -ne 0 ]; then exit 1 ; fi if [ $? -ne 0 ]; then exit 1 ; fi
mpirun -np 2 ./src/pdata mpirun -np 2 ./src/pdata
if [ $? -ne 0 ]; then exit 1 ; fi if [ $? -ne 0 ]; then exit 1 ; fi
...@@ -61,24 +59,16 @@ then ...@@ -61,24 +59,16 @@ then
## produce the module path ## produce the module path
export MODULEPATH="/sw/apps/modules/modulefiles:$MODULEPATH" module load gcc/4.9.2
module load openmpi/1.8.1
script="module load gcc/4.9.2\n module load boost/1.54.0
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 sh ./autogen.sh
./install --with-boost=/sw/apps/boost/1.54.0/ CXX=mpic++
make
if [ $? -ne 0 ]; then exit 1
## Run on the cluster ## 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" 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 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" 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"
...@@ -89,15 +79,15 @@ exit(0)\n" ...@@ -89,15 +79,15 @@ exit(0)\n"
if [ $? -ne 0 ]; then exit 1 ; fi 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" 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 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" bsub -o output_run7.%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 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" bsub -o output_run8.%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 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" bsub -o output_run9.%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 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" bsub -o output_run10.%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 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" bsub -o output_run11.%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 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" 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 if [ $? -ne 0 ]; then exit 1 ; fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment