History log of /frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a9e09601605f8ce2770dc6610d1d98f3ee90c686 13-Apr-2016 David Gross <dgross@google.com> Add reduction test cases findMinMat2, findMinMat4.

Helps test that combiner function synthesis understands call lowering.

Bug: 27299475
Change-Id: Ifd8b69f5557025e0b359fd1497d3100807cec9b2
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
61bc4952da7be1c2100aae2bfad57431bc1ae32e 13-Apr-2016 David Gross <dgross@google.com> Merge "Shrink down 2D and 3D general reduction tests to control time and space." into nyc-dev
1430dcc4a9033ed874c89a014b3421884686c9d0 13-Apr-2016 David Gross <dgross@google.com> Shrink down 2D and 3D general reduction tests to control time and space.

(1) Apply Z-dimension limiting to 3D correctness tests.

The Z dimension is always handled specially by GPU drivers, and a high
value for this dimension can have serious performance implications.
For example, Cuda and OpenCL encourage Z to be the smallest dimension.

We have observed that prior to this fix, this testing runs out of
memory when running as a 32-bit application on n6p.

(2) Increase sparseness of 2D and 3D correctness tests.

Before this change, reduction tests take about 7m on n6p as a 32-bit app.
After this change, reduction tests take about 3m on n6p as a 32-bit app.

Bug: 27299475
Change-Id: Id8241cc3e2d0abbd5f643d1266dc4317b91093a0
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
f5802d4bc63d3dfaeb12a05bab3b6393075602b6 12-Apr-2016 David Gross <dgross@google.com> Test Java reflection for anonymous result types.

Bug: 28118344
Change-Id: I5907887e27b97c9e4faa7747b0a907f3994c4ba2
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
fc101de3bdb7554aee04da60848cda72e40b2e79 09-Apr-2016 David Gross <dgross@google.com> Add tests related to destroying temporary Allocations in reflected code.

Bug: 27973904
Change-Id: Id1e90e76d2442eca73cd2fba5d03002da27d86c6
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
d41c224c3e1e31e29d225e51b994d689022cfd07 02-Apr-2016 David Gross <dgross@google.com> General reduction test improvement and bug fixes.

Improved testing (UT_reduce.java):
- Add addint3D test.
- Execute 2D and 3D tests over a range of sizes.

Bug fixes:
- Fix bug in fz3 kernel (combiner function).
- Fix bug in UT_reduce_backward.java findMinAndMax test (copy fix from UT_reduce.java).
- In UT_reduce.java (which creates a very large number of Allocations), explicitly
invoke Allocation.destroy() to avoid out-of-native-memory problems.

Bug: 27299475
Change-Id: I939a329af9f92e57bc8aa4c22db2b56996f1ff88
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
10adb0c2029f112b5738228617d5645f6ecea0c5 29-Mar-2016 David Gross <dgross@google.com> Multithreaded execution of certain general reduction kernels; reduction test overhaul.

A reduction kernel is eligible for multithreaded execution if it has a
combiner function and it is launched over a 1D iteration space.

Note: Properties debug.rs.reduce-accum and debug.rs.reduce-split-accum
are added for debugging multithreaded reduction.

The following changes are made to reduction tests in RsTest:
- Overhaul the test framework -- now data-driven, and can execute the same
test multiple times with different seeds and input sizes, features
separate sets of quick correctness tests, full correctness tests,
and performance tests. (Performance tests are not run by default.)
- Report timing information for test execution.
- Report more information for fz* kernel testing.
- Remove dp kernel testing -- this involved floating-point arithmetic
which is not guaranteed to produce identical results between java
and rs or for different rs multithreaded executions.
- Add sumgcd kernel testing. This is intended to be representative of
a compute-heavy kernel.
- findMinAndMax kernel testing must compare cell value not cell index
-- two or more cells might have the same min or max value, and java
and various rs multithreaded executions are not guaranteed to find
the same cell.
- Fix bug in findMinAndMax kernel's combiner function. (It behaved
incorrectly when operating on an accumulator datum that has been
initialized but never passed to the accumulator function.)
- RsTest now requests largeHeap.

Bug: 27299475
Change-Id: I58f99c21389dbae5c8e3ad85d98700dc165664bb
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
73a422b2f32f947ce1b1366a6c78ddec58a4c1ea 09-Feb-2016 David Gross <dgross@google.com> General reduction test case where pragma follows constituent functions.

Bug: 23535724
(cherry picked from commit 23966203d0b4d4a7da90d521349dbb77d7283261)

Change-Id: I99c3a6f9623d8fa422a4699d5a2967db14caedd3
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java
6c1876bbef1b2c89975dce91230a168bd2d2ce4c 15-Jan-2016 David Gross <dgross@google.com> Support for general reduction kernels.

Requires coordinated change in frameworks/base.

Requires coordinated change in frameworks/compile/libbcc in order
for RsTest to run.

At present, general reduction kernels are run single-threaded.

Also: Remove dead struct field MTLaunchStructForEach::sig.

Bug: 23535724
Change-Id: Ice17ccf20a902f8a106eaa62ec071d46e3c0ad8c
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/UT_reduce.java