Commit b90b2958 authored by MIJIEUX Thomas's avatar MIJIEUX Thomas

Add CMake warning when compiling with LAPACKE_NANCHECK option ON

parent f65061c3
......@@ -78,6 +78,14 @@ ELSE()
OPTION(FABULOUS_DEBUG_MODE "Set to On to compile with debug info" OFF)
ENDIF()
IF (FABULOUS_LAPACKE_NANCHECK)
message( WARNING
"There is a bug (fixed in latest LAPACK development branch) in "
"toplevel lapacke wrapper for 'tpmqrt' used in QR+IB(+DR) version\n"
"Use -DFABULOUS_LAPACKE_NANCHECK=OFF on cmake command line to make "
"fabulous use the low level (bug free) lapacke interface directly ")
ENDIF()
INCLUDE_DIRECTORIES(include)
ADD_SUBDIRECTORY(include)
......
......@@ -293,18 +293,18 @@ ggplot(df, aes(x=nb_mvp)) +
#+BEGIN_SRC shell
cd ${WORKDIR}/build/src/test/cmd/
#nbRHS=6; maxSpace=90
./fabulous_test -n 100 -t BLOCK -s CGS -m 700 -e 1e-4 -A IBDR -r DEFLATED -p 5 -u -o "IB-BGMRES-DR"
./fabulous_test -n 100 -t BLOCK -s CGS -m 700 -e 1e-4 -A QRIBDR -r DEFLATED -p 5 -u -o "QR-IB-BGMRES-DR"
./fabulous_test -n 100 -t BLOCK -s MGS -m 700 -e 1e-4 -A IB -u -o "IB-BGMRES"
./fabulous_test -n 100 -t BLOCK -s MGS -m 700 -e 1e-4 -A QRIBDR -u -o "QR-IB-BGMRES"
#+END_SRC
RESULTS FILES:
file:~/fabulous/build/src/test/cmd/IB-BGMRES-DR.res
file:~/fabulous/build/src/test/cmd/QR-IB-BGMRES-DR.res
file:~/fabulous/build/src/test/cmd/IB-BGMRES.res
file:~/fabulous/build/src/test/cmd/QR-IB-BGMRES.res
**** plot
#+BEGIN_SRC R
library(ggplot2)
df <- read.csv("./build/src/test/cmd/IB-BGMRES-DR.res")
df <- rbind(df, read.csv("./build/src/test/cmd/QR-IB-BGMRES-DR.res"))
df <- read.csv("./build/src/test/cmd/IB-BGMRES.res")
df <- rbind(df, read.csv("./build/src/test/cmd/QR-IB-BGMRES.res"))
ggplot(df, aes(x=nb_mvp)) +
geom_line(aes(y=least_square_time, color=paste(name,"gels"))) +
geom_line(aes(y=facto_time, color=paste(name, "facto"))) +
......
......@@ -30,24 +30,24 @@ FOREACH(_test ${FABULOUS_TEST_RUN_BASIC_SRC})
)
ENDFOREACH()
SET(FABULOUS_TEST_RUN_CHAM_SRC
desc2.cpp
)
FOREACH(_test ${FABULOUS_TEST_RUN_CHAM_SRC})
GET_FILENAME_COMPONENT(_name_exe ${_test} NAME_WE)
ADD_EXECUTABLE(${_name_exe} ${_test})
TARGET_LINK_LIBRARIES(${_name_exe} ${FABULOUS_CHAM_LIBRARIES})
TARGET_COMPILE_DEFINITIONS(${_name_exe} PRIVATE ${FABULOUS_CHAM_DEFINITIONS})
ADD_TEST(NAME "test_${_name_exe}" COMMAND ${_name_exe})
SET_TESTS_PROPERTIES("test_${_name_exe}" PROPERTIES
FAIL_REGULAR_EXPRESSION "Intel MKL ERROR"
IF(FABULOUS_USE_CHAMELEON)
SET(FABULOUS_TEST_RUN_CHAM_SRC
desc2.cpp
)
INSTALL(
TARGETS ${_name_exe}
DESTINATION lib/fabulous/examples/
)
ENDFOREACH()
FOREACH(_test ${FABULOUS_TEST_RUN_CHAM_SRC})
GET_FILENAME_COMPONENT(_name_exe ${_test} NAME_WE)
ADD_EXECUTABLE(${_name_exe} ${_test})
TARGET_LINK_LIBRARIES(${_name_exe} ${FABULOUS_CHAM_LIBRARIES})
TARGET_COMPILE_DEFINITIONS(${_name_exe} PRIVATE ${FABULOUS_CHAM_DEFINITIONS})
ADD_TEST(NAME "test_${_name_exe}" COMMAND ${_name_exe})
SET_TESTS_PROPERTIES("test_${_name_exe}" PROPERTIES
FAIL_REGULAR_EXPRESSION "Intel MKL ERROR"
)
INSTALL(
TARGETS ${_name_exe}
DESTINATION lib/fabulous/examples/
)
ENDFOREACH()
ENDIF()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment