Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add one more failing test.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Sat, 5 Apr 2014 20:30:42 +0000 (22:30 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Sat, 5 Apr 2014 20:50:50 +0000 (22:50 +0200)
An assertion is failing in lmm_print when running with --log=surf.thres:debug:

** SimGrid: UNCAUGHT EXCEPTION received on ./bug-17132(0): category: unknown error; value: 0
** Incorrect value (10000000000.000002 is not smaller than 10000000000.000000): 1.90735e-06
** Thrown by () in this process
[0.000013] [...]/src/xbt/ex.c:144: [xbt_ex/CRITICAL] Incorrect value (10000000000.000002 is not smaller than 10000000000.000000): 1.90735e-06

**   In _Z9lmm_printP10lmm_system() at [...]/src/surf/maxmin.cpp:568
**   In lmm_solve() at [...]/src/surf/maxmin.cpp:799
**   In _ZN5Model18shareResourcesLazyEd() at [...]/src/surf/surf_interface.cpp:531
**   In _ZN5Model14shareResourcesEd() at [...]/src/surf/surf_interface.cpp:512
**   In _ZN21WorkstationCLM03Model14shareResourcesEd() at [...]/src/surf/workstation_clm03.cpp:82
**   In surf_solve() at [...]/src/surf/surf_c_bindings.cpp:80
**   In SIMIX_run() at [...]/src/simix/smx_global.c:377
**   In smpi_main() at [...]/src/simgrid/sg_config.c:1001
**   In main() at [...]/src/smpi/smpi_global.c:472
Aborted

It looks like a rounding error, but I'm not sure if the problem in lmm_print
itself, or before.

buildtools/Cmake/AddTests.cmake
teshsuite/bug-17132/CMakeLists.txt
teshsuite/bug-17132/bug-17132-surf-debug.tesh [new file with mode: 0644]

index 1b7ea2c..106e4c3 100644 (file)
@@ -446,7 +446,8 @@ if(NOT enable_memcheck)
     ADD_TEST(smpi-compute-thread                ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/compute.tesh)
     
     # https://gforge.inria.fr/tracker/index.php?func=detail&aid=17132&group_id=12&atid=165
-    ADD_TEST(smpi-bug-17132                ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132 --cd ${CMAKE_BINARY_DIR}/teshsuite/bug-17132 ${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132/bug-17132.tesh)
+    ADD_TEST(smpi-bug-17132                     ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132 --cd ${CMAKE_BINARY_DIR}/teshsuite/bug-17132 ${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132/bug-17132.tesh)
+    ADD_TEST(smpi-bug-17132-surf-debug          ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --setenv srcdir=${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132 --cd ${CMAKE_BINARY_DIR}/teshsuite/bug-17132 ${CMAKE_HOME_DIRECTORY}/teshsuite/bug-17132/bug-17132-surf-debug.tesh)
     
     if (NOT WIN32)
       ADD_TEST(smpi-shared-thread               ${TESH_COMMAND} ${TESH_OPTION} --cfg contexts/factory:thread --cd ${CMAKE_BINARY_DIR}/teshsuite/smpi ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/shared.tesh)
index f2000e0..87b5a82 100644 (file)
@@ -17,6 +17,7 @@ if(enable_smpi)
   set(tesh_files
     ${tesh_files}
     ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132.tesh
+    ${CMAKE_CURRENT_SOURCE_DIR}/bug-17132-surf-debug.tesh
     PARENT_SCOPE)
   set(xml_files
     ${xml_files}
diff --git a/teshsuite/bug-17132/bug-17132-surf-debug.tesh b/teshsuite/bug-17132/bug-17132-surf-debug.tesh
new file mode 100644 (file)
index 0000000..9256883
--- /dev/null
@@ -0,0 +1,2 @@
+! output ignore
+$ ../../smpi_script/bin/smpirun -np 16 -platform ${srcdir:=.}/small_platform.xml -hostfile ${srcdir:=.}/hostfile.txt ./bug-17132 --cfg=smpi/cpu_threshold:-1 --log=surf.thres:debug