File tree 2 files changed +30
-2
lines changed
2 files changed +30
-2
lines changed Original file line number Diff line number Diff line change 77
77
brew install cppcheck
78
78
sudo python3 -m pip install --upgrade pip
79
79
sudo python3 -m pip install setuptools cpplint
80
- brew install valgrind
81
80
- name : Update submodules
82
81
run : git submodule update --init --recursive
83
82
- name : Build
93
92
- name : Run tests
94
93
run : |
95
94
export OMP_NUM_THREADS=4
96
- source scripts/run .sh
95
+ source scripts/run_mac .sh
97
96
windows-msvc-build :
98
97
runs-on : windows-latest
99
98
steps :
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # shellcheck disable=SC2164
4
+ cd build
5
+ ctest --extra-verbose --repeat-until-fail 10 --timeout 10 --build-and-test
6
+ # shellcheck disable=SC2103
7
+ cd ..
8
+
9
+ FILES_MPI=" build/bin/*_mpi"
10
+ for file in $FILES_MPI ; do
11
+ if [ " $file " = " build/bin/*_mpi" ]; then continue ; fi
12
+ echo " --------------------------------"
13
+ # shellcheck disable=SC2046
14
+ echo $( basename $file )
15
+ echo " --------------------------------"
16
+ if [[ $OSTYPE == " linux-gnu" ]]; then
17
+ NUM_PROC=$( cat /proc/cpuinfo| grep processor| wc -l)
18
+ elif [[ $OSTYPE == " darwin" * ]]; then
19
+ NUM_PROC=$( sysctl -a | grep machdep.cpu | grep thread_count | cut -d ' ' -f 2)
20
+ else
21
+ echo " Unknown OS"
22
+ NUM_PROC=" 1"
23
+ fi
24
+ echo " NUM_PROC: " $NUM_PROC
25
+ # shellcheck disable=SC2034
26
+ for i in {1..10}; do
27
+ mpirun -np $NUM_PROC $file || exit 1
28
+ done
29
+ done
You can’t perform that action at this time.
0 commit comments