[test-suite] r282027 - cmake/447.dealII: Increase fp tolerance levels

Matthias Braun via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 20 14:49:49 PDT 2016


Author: matze
Date: Tue Sep 20 16:49:49 2016
New Revision: 282027

URL: http://llvm.org/viewvc/llvm-project?rev=282027&view=rev
Log:
cmake/447.dealII: Increase fp tolerance levels

Different targets/libm implementation show a higher deviation in the
results from the reference. Increase fpcmp tolerance levels for this
benchmark.

Modified:
    test-suite/trunk/External/SPEC/CFP2006/447.dealII/CMakeLists.txt

Modified: test-suite/trunk/External/SPEC/CFP2006/447.dealII/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/External/SPEC/CFP2006/447.dealII/CMakeLists.txt?rev=282027&r1=282026&r2=282027&view=diff
==============================================================================
--- test-suite/trunk/External/SPEC/CFP2006/447.dealII/CMakeLists.txt (original)
+++ test-suite/trunk/External/SPEC/CFP2006/447.dealII/CMakeLists.txt Tue Sep 20 16:49:49 2016
@@ -3,13 +3,15 @@ add_definitions(-DBOOST_DISABLE_THREADS
 list(APPEND LDFLAGS -lm)
 
 macro(verify_n run_type dir n)
+  # Note that the official SPEC fp tolarence is only "-a .0000001", however this
+  # has proven to only work reliably for x86 targets/libm.
   llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
-    -a .0000001
+    -a 1e-5 -r 1e-5
     ${BENCHMARK_DIR}/data/${dir}/output/grid-${n}.eps
     ${CMAKE_CURRENT_BINARY_DIR}/grid-${n}.eps
   )
   llvm_test_verify(RUN_TYPE ${run_type} ${FPCMP}
-    -a .0000001
+    -a 1e-5 -r 1e-5
     ${BENCHMARK_DIR}/data/${dir}/output/solution-${n}.gmv
     ${CMAKE_CURRENT_BINARY_DIR}/solution-${n}.gmv
   )




More information about the llvm-commits mailing list