summaryrefslogtreecommitdiff
path: root/rsContext.h
diff options
context:
space:
mode:
authorDavid Gross <dgross@google.com>2016-03-29 13:48:41 -0700
committerDavid Gross <dgross@google.com>2016-04-15 11:00:59 -0700
commit35dbc8c20814997a00e06d7798a5633c37706978 (patch)
tree9f2aefb9af0f868a53d4bb023c2e6c611c01f6d6 /rsContext.h
parent8b09d9fb7fffa901de9e6d207a4988e3197b1f6e (diff)
downloadrs-35dbc8c20814997a00e06d7798a5633c37706978.tar.gz
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 (cherry picked from commit 10adb0c2029f112b5738228617d5645f6ecea0c5)
Diffstat (limited to 'rsContext.h')
-rw-r--r--rsContext.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/rsContext.h b/rsContext.h
index fce22b56..dd2fc00e 100644
--- a/rsContext.h
+++ b/rsContext.h
@@ -226,6 +226,8 @@ public:
bool mLogShadersAttr;
bool mLogShadersUniforms;
bool mLogVisual;
+ bool mLogReduceAccum;
+ bool mDebugReduceSplitAccum;
uint32_t mDebugMaxThreads;
} props;