@@ -79,46 +79,23 @@ jobs:
7979 echo ">>> Building and testing with $FMT matrix format."
8080
8181 sed -E -i \
82- -e 's/^(ENABLE_MPI[[:space:]]*\?=).*/\1true/' \
83- -e 's/^(ENABLE_OPENMP[[:space:]]*\?=).*/\1false/' \
84- -e "s/^(MTX_FMT[[:space:]]*\?=).*/\1$FMT/" \
85- -e "s/^(TOOLCHAIN[[:space:]]*\?=).*/\1${{ matrix.compiler } }/" \
86- config.mk
82+ -e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]* ).*/\1true/' \
83+ -e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]* ).*/\1false/' \
84+ -e "s/^(MTX_FMT[[:space:]]*\?=[[:space:]]* ).*/\1${ FMT} /" \
85+ -e "s/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]* ).*/\1${TOOLCHAIN }/" \
86+ config.mk
8787
88- make -j # Build sparseBench
89- cd tests
90- make -j # Build tests
91- mpirun -n 1 ./runTests # Run (single rank) tests
88+ # Build (MPI-only) sparseBench
89+ make
90+
91+ # Build tests
92+ cd tests && make clean && make
93+
94+ # Run (single rank) tests
95+ mpirun -n 1 ./runTests
9296 cd ..
9397 }
9498
95- # Run both test formats
99+ # Run tests with both formats
96100 run_tests CRS
97- run_tests SCS
98-
99- # # Set build configuration flags to CRS in config.mk
100- # sed -E -i \
101- # -e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
102- # -e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \
103- # -e 's/^(MTX_FMT[[:space:]]*\?=[[:space:]]*).*/\1CRS/' \
104- # -e "s/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1${TOOLCHAIN}/" \
105- # config.mk
106-
107- # make # Build the main project
108- # cd tests # Move into the tests directory
109- # make # Build test suite
110- # mpirun -n 1 ./runTests # Run the (single rank) tests
111-
112- # cd ../
113- # # Set build configuration flags to SCS in config.mk
114- # sed -E -i \
115- # -e 's/^(ENABLE_MPI[[:space:]]*\?=[[:space:]]*).*/\1true/' \
116- # -e 's/^(ENABLE_OPENMP[[:space:]]*\?=[[:space:]]*).*/\1false/' \
117- # -e 's/^(MTX_FMT[[:space:]]*\?=[[:space:]]*).*/\1SCS/' \
118- # -e "s/^(TOOLCHAIN[[:space:]]*\?=[[:space:]]*).*/\1${TOOLCHAIN}/" \
119- # config.mk
120-
121- # make # Build the main project
122- # cd tests # Move into the tests directory
123- # make # Build test suite
124- # mpirun -n 1 ./runTests # Run the (single rank) tests
101+ run_tests SCS
0 commit comments