History log of /frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/UT_reduce_backward.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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_CompatLib/src/com/android/rs/test/UT_reduce_backward.java
04cf3e4c1caad17bcd89c3fbe15260ac63c3704f 26-Feb-2016 David Gross <dgross@google.com> Compatibility library support for general reduction.

Requires corresponding change in frameworks/support.

Note that the new RSTest_CompatLib test cases were copied from RsTest.

Also:
- Change LOCAL_RENDERSCRIPT_TARGET_API to 0.
- Change manifest targetSdkVersion from 8 to 24 (see Bug: 27367665).
- Change compile-only RSTest_CompatLib test apitest.rs to use N rather than pre-N
rsForEach() API.

Bug: 23535724
Change-Id: I872f2b5a83fb78f4b54b8f6710e1d49df3bea3d1
(cherry picked from commit 328245ae4aecdae3ec23a640efc454959f2ff98c)
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/UT_reduce_backward.java