Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions tests/smoke/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ add_grb_executables( small_pagerank ../unit/auto_launcher.cpp
BACKENDS reference reference_omp bsp1d hybrid
)

add_grb_executables( alp_gemm alp_gemm.cpp
BACKENDS alp_reference
)

add_grb_executables( alp_cholesky alp_cholesky.cpp
BACKENDS alp_reference
)

# targets to list and build the test for this category
get_property( smoke_tests_list GLOBAL PROPERTY tests_category_smoke )
add_custom_target( "list_tests_category_smoke"
Expand Down
File renamed without changes.
File renamed without changes.
36 changes: 36 additions & 0 deletions tests/smoke/smoketests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ echo "**************************************************************************
echo " FUNCTIONAL PERFORMANCE DESCRIPTION "
echo "----------------------------------------------------------------------------------------"
echo " "
# run non alp_ backends
for BACKEND in ${BACKENDS[@]}; do
if [ "${BACKEND:0:4}" == "alp_" ]; then
continue
fi

if [ "$BACKEND" = "bsp1d" ]; then
if [ -z "${LPFRUN}" ]; then
echo "LPFRUN is not set!"
Expand Down Expand Up @@ -505,6 +510,37 @@ for BACKEND in ${BACKENDS[@]}; do
fi
done

for BACKEND in ${BACKENDS[@]}; do
if [ "${BACKEND:0:4}" != "alp_" ]; then
continue
fi

runner=
echo "#################################################################"
echo "# Starting standardised smoke tests for the ${BACKEND} backend"
if [ "x${runner}" != "x" ]; then
echo "# using runner \`\`$runner''"
fi
echo "#################################################################"
echo " "

NTEST_CHOLESKY=30
echo ">>> [x] [ ] Tests Cholesky decomposition for a random"
echo " symmetric matrix (${NTEST_CHOLESKY}x${NTEST_CHOLESKY})."
bash -c "$runner ${TEST_BIN_DIR}/alp_cholesky_${BACKEND} -n ${NTEST_CHOLESKY} &> ${TEST_OUT_DIR}/alp_cholesky_${BACKEND}.log"
head -1 ${TEST_OUT_DIR}/alp_cholesky_${BACKEND}.log
grep 'Test OK' ${TEST_OUT_DIR}/alp_cholesky_${BACKEND}.log || echo "Test FAILED"
echo " "

NTEST_GEMM=100
echo ">>> [x] [ ] Tests Gemm on matrix (${NTEST_GEMM}x${NTEST_GEMM}x${NTEST_GEMM})."
bash -c "$runner ${TEST_BIN_DIR}/alp_gemm_${BACKEND} ${NTEST_GEMM} &> ${TEST_OUT_DIR}/alp_gemm_${BACKEND}.log"
head -1 ${TEST_OUT_DIR}/alp_gemm_${BACKEND}.log
grep 'Test OK' ${TEST_OUT_DIR}/alp_gemm_${BACKEND}.log || echo "Test FAILED"
echo " "

done

echo "*****************************************************************************************"
echo "All smoke tests done."
echo " "
Expand Down
8 changes: 0 additions & 8 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,6 @@ add_grb_executables( add15m add15m.cpp
BACKENDS reference NO_BACKEND_NAME
)

add_grb_executables( alp_gemm alp_gemm.cpp
BACKENDS alp_reference
)

add_grb_executables( alp_cholesky alp_cholesky.cpp
BACKENDS alp_reference
)

add_grb_executables( alp_views alp_views.cpp
BACKENDS alp_reference
)
Expand Down