-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathrun_mpi.sh
24 lines (20 loc) · 1.3 KB
/
run_mpi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
if [[ -f build/ppc_opencv/install/bin/setup_vars_opencv4.sh ]]; then
INSTALL_BIN_DIR="build/bin"
source build/ppc_opencv/install/bin/setup_vars_opencv4.sh
else
INSTALL_BIN_DIR="install/bin"
source $INSTALL_BIN_DIR/setup_vars_opencv4.sh
fi
if [[ $OSTYPE == "linux-gnu" && -z "$ASAN_RUN" ]]; then
valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all $INSTALL_BIN_DIR/core_func_tests
valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all $INSTALL_BIN_DIR/ref_func_tests
# valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all $INSTALL_BIN_DIR/all_func_tests
# valgrind --error-exitcode=1 --leak-check=full --show-leak-kinds=all $INSTALL_BIN_DIR/mpi_func_tests
fi
$INSTALL_BIN_DIR/core_func_tests --gtest_also_run_disabled_tests --gtest_repeat=10 --gtest_recreate_environments_when_repeating
$INSTALL_BIN_DIR/ref_func_tests --gtest_also_run_disabled_tests --gtest_repeat=10 --gtest_recreate_environments_when_repeating
if [[ -z "$ASAN_RUN" ]]; then
mpirun $1 -np $PROC_COUNT $INSTALL_BIN_DIR/all_func_tests --gtest_also_run_disabled_tests --gtest_repeat=10 --gtest_recreate_environments_when_repeating
mpirun $1 -np $PROC_COUNT $INSTALL_BIN_DIR/mpi_func_tests --gtest_also_run_disabled_tests --gtest_repeat=10 --gtest_recreate_environments_when_repeating
fi