[test-suite] r284480 - [polybench] fix some places I have missed in the large patch
Sebastian Pop via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 18 07:27:43 PDT 2016
Author: spop
Date: Tue Oct 18 09:27:43 2016
New Revision: 284480
URL: http://llvm.org/viewvc/llvm-project?rev=284480&view=rev
Log:
[polybench] fix some places I have missed in the large patch
I have missed to add the correct tolerance in a few places, printing
the strictFP array, and avoid useless computation in init_array.
Modified:
test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/cholesky.c
test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt
test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile
test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/symm.c
test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt
test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile
test-suite/trunk/SingleSource/Benchmarks/Polybench/stencils/seidel-2d/seidel-2d.c
Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/cholesky.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/cholesky.c?rev=284480&r1=284479&r2=284480&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/cholesky.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/cholesky/cholesky.c Tue Oct 18 09:27:43 2016
@@ -43,13 +43,7 @@ void init_array(int n,
{
p[i] = i + n;
for (j = 0; j < n; j++)
- A[i][j] = j + n;
- }
- for (i = 0; i < n; i++)
- {
- p[i] = i + n;
- for (j = 0; j < n; j++)
- A_StrictFP[i][j] = j + n;
+ A_StrictFP[i][j] = A[i][j] = j + n;
}
}
Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt?rev=284480&r1=284479&r2=284480&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/CMakeLists.txt Tue Oct 18 09:27:43 2016
@@ -8,5 +8,5 @@ if(DEFINED SMALL_PROBLEM_SIZE)
list(APPEND CFLAGS -DSMALL_DATASET)
endif()
set(HASH_PROGRAM_OUTPUT 1)
-add_definitions(-DFP_ABSTOLERANCE=10)
+add_definitions(-DFP_ABSTOLERANCE=1e-5)
llvm_singlesource()
Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile?rev=284480&r1=284479&r2=284480&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/Makefile Tue Oct 18 09:27:43 2016
@@ -2,7 +2,7 @@ LEVEL = ../../../../../..
POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
PROG = symm
-CFLAGS += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS -DFP_ABSTOLERANCE=10
+CFLAGS += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS -DFP_ABSTOLERANCE=1e-5
ifeq ($(ARCH),Mips)
Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/symm.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/symm.c?rev=284480&r1=284479&r2=284480&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/symm.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/kernels/symm/symm.c Tue Oct 18 09:27:43 2016
@@ -192,6 +192,7 @@ int main(int argc, char** argv)
/* Be clean. */
POLYBENCH_FREE_ARRAY(C);
+ POLYBENCH_FREE_ARRAY(C_StrictFP);
POLYBENCH_FREE_ARRAY(A);
POLYBENCH_FREE_ARRAY(B);
Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt?rev=284480&r1=284479&r2=284480&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/CMakeLists.txt Tue Oct 18 09:27:43 2016
@@ -5,5 +5,5 @@ if(DEFINED SMALL_PROBLEM_SIZE)
list(APPEND CFLAGS -DSMALL_DATASET)
endif()
set(HASH_PROGRAM_OUTPUT 1)
-add_definitions(-DFP_ABSTOLERANCE=1)
+add_definitions(-DFP_ABSTOLERANCE=1e-5)
llvm_singlesource()
Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile?rev=284480&r1=284479&r2=284480&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/linear-algebra/solvers/gramschmidt/Makefile Tue Oct 18 09:27:43 2016
@@ -2,7 +2,7 @@ LEVEL = ../../../../../..
POLYBENCH_UTILS = SingleSource/Benchmarks/Polybench/utilities
PROG = gramschmidt
-CFLAGS += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS -DFP_ABSTOLERANCE=1
+CFLAGS += -I $(PROJ_SRC_ROOT)/$(POLYBENCH_UTILS) -DPOLYBENCH_DUMP_ARRAYS -DFP_ABSTOLERANCE=1e-5
ifdef SMALL_PROBLEM_SIZE
CFLAGS += -DSMALL_DATASET
Modified: test-suite/trunk/SingleSource/Benchmarks/Polybench/stencils/seidel-2d/seidel-2d.c
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Polybench/stencils/seidel-2d/seidel-2d.c?rev=284480&r1=284479&r2=284480&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Polybench/stencils/seidel-2d/seidel-2d.c (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Polybench/stencils/seidel-2d/seidel-2d.c Tue Oct 18 09:27:43 2016
@@ -144,7 +144,7 @@ int main(int argc, char** argv)
/* Prevent dead-code elimination. All live-out data must be printed
by the function call in argument. */
- polybench_prevent_dce(print_array(n, POLYBENCH_ARRAY(A)));
+ polybench_prevent_dce(print_array(n, POLYBENCH_ARRAY(A_StrictFP)));
/* Be clean. */
POLYBENCH_FREE_ARRAY(A);
More information about the llvm-commits
mailing list