Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open-mpi-build-script.sh: run singletons #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion jenkins/open-mpi-build-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,11 @@ cd ..
set +e

run_example() {
example=`basename ${2}`
if test -n "{$2}"; then
example=`basename ${2}`
else
example=`basename ${1}`
fi
echo "--> Running example: $example"
${1} ${2}
ret=$?
Expand All @@ -267,32 +271,37 @@ if test "${MPIRUN_MODE}" != "none"; then
;;
esac
run_example "${exec}" ./examples/hello_c
run_example ./examples/hello_c
run_example "${exec}" ./examples/ring_c
run_example "${exec}" ./examples/connectivity_c
if ompi_info --parsable | grep -q bindings:cxx:yes >/dev/null; then
echo "--> running C++ examples"
run_example "${exec}" ./examples/hello_cxx
run_example ./examples/hello_cxx
run_example "${exec}" ./examples/ring_cxx
else
echo "--> skipping C++ examples"
fi
if ompi_info --parsable | grep -q bindings:mpif.h:yes >/dev/null; then
echo "--> running mpif examples"
run_example "${exec}" ./examples/hello_mpifh
run_example ./examples/hello_mpifh
run_example "${exec}" ./examples/ring_mpifh
else
echo "--> skipping mpif examples"
fi
if ompi_info --parsable | egrep -q bindings:use_mpi:\"\?yes >/dev/null; then
echo "--> running usempi examples"
run_example "${exec}" ./examples/hello_usempi
run_example ./examples/hello_usempi
run_example "${exec}" ./examples/ring_usempi
else
echo "--> skipping usempi examples"
fi
if ompi_info --parsable | grep -q bindings:use_mpi_f08:yes >/dev/null; then
echo "--> running usempif08 examples"
run_example "${exec}" ./examples/hello_usempif08
run_example ./examples/hello_usempif08
run_example "${exec}" ./examples/ring_usempif08
else
echo "--> skipping usempif08 examples"
Expand Down