summaryrefslogtreecommitdiff
path: root/java
Commit message (Collapse)AuthorAgeFilesLines
* Test for old style kernels in single-source RSYang Ni2016-05-112-3/+14
| | | | | | | | | | | | Bug: 28666819 Old-styles kernels are not allowed in a rsForEach() call, but allowed to coexist with such calls. This test verifies that. Updated the single-source kernel launch test to include some old-style kernels, and a launch from Java of such an old-style kernel. Change-Id: I7180266fcfa83400319f704c846805cc0349e144
* Merge "Fix the makefiles for our tests following JACK change." into nyc-devTreeHugger Robot2016-04-1522-19/+29
|\
| * Fix the makefiles for our tests following JACK change.Miao Wang2016-04-1522-19/+29
| | | | | | | | | | | | | | | | | | | | Bug: 28212281 - Added LOCAL_MIN_SDK_VERSION for tests using current SDK and intend to run on older devices. - Fix several errors in the AndroidManifest.xml. Change-Id: Ib2d2b2b167f9c5a084fd3b09f742988b626c5052
* | Merge changes from topic 'struct-fix' into nyc-devTreeHugger Robot2016-04-153-0/+135
|\ \ | |/ |/| | | | | | | * changes: Fix uninitialized fields in rsElement for composite data types Add a test for structs with 64-bit scalar fields
| * Add a test for structs with 64-bit scalar fieldsPirama Arumuga Nainar2016-04-153-0/+135
| | | | | | | | | | | | | | | | | | | | http://b/24142721 Add a test to trigger the above bug by operating on a struct with a 64-bit scalar field. Change-Id: Ida6e3b25ef985c865a3bd583045c2ccfb9553bdf (cherry picked from commit f6ea62be4717c73890dbe44e3781cb195c2cf7e1)
* | Add reduction test cases findMinMat2, findMinMat4.David Gross2016-04-133-19/+174
|/ | | | | | | Helps test that combiner function synthesis understands call lowering. Bug: 27299475 Change-Id: Ifd8b69f5557025e0b359fd1497d3100807cec9b2
* Merge "Shrink down 2D and 3D general reduction tests to control time and ↵David Gross2016-04-131-4/+14
|\ | | | | | | space." into nyc-dev
| * Shrink down 2D and 3D general reduction tests to control time and space.David Gross2016-04-121-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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
* | Merge "Test Java reflection for anonymous result types." into nyc-devDavid Gross2016-04-123-2/+81
|\ \
| * | Test Java reflection for anonymous result types.David Gross2016-04-113-2/+81
| |/ | | | | | | | | Bug: 28118344 Change-Id: I5907887e27b97c9e4faa7747b0a907f3994c4ba2
* | Merge "Add tests related to destroying temporary Allocations in reflected ↵David Gross2016-04-111-0/+64
|\| | | | | | | code." into nyc-dev
| * Add tests related to destroying temporary Allocations in reflected code.David Gross2016-04-081-0/+64
| | | | | | | | | | Bug: 27973904 Change-Id: Id1e90e76d2442eca73cd2fba5d03002da27d86c6
* | Merge "Multithreaded execution of general reduction kernels over 2D and 3D ↵David Gross2016-04-081-1/+1
|\| | | | | | | iteration spaces." into nyc-dev
| * Multithreaded execution of general reduction kernels over 2D and 3D ↵David Gross2016-04-061-1/+1
| | | | | | | | | | | | | | | | | | | | iteration spaces. Includes fix for bug in reduce_backward fz3 kernel (combiner function). Bug: 27299475 Change-Id: I48ed2f99f53dfc786a85e04dc0206cb3ebe98034
* | Merge "Test for half as a global or as a parameter to an invokable" into nyc-devPirama Arumuga Nainar2016-04-063-0/+107
|\ \
| * | Test for half as a global or as a parameter to an invokablePirama Arumuga Nainar2016-04-063-0/+107
| | | | | | | | | | | | | | | | | | http://b/27526302 Change-Id: Ibc71ef4523c2fe1f233a75bd5b8e5b2dbedb30de
* | | Merge changes from topic 'rsdebug' into nyc-devPirama Arumuga Nainar2016-04-041-0/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | * changes: Test rsDebug for half Implement rsDebug for half Add rsDebug for half
| * | | Test rsDebug for halfPirama Arumuga Nainar2016-04-041-0/+11
| |/ / | | | | | | | | | | | | | | | http://b/27556050 Change-Id: I9e9ff171faaf1bb59eeec90b27c6b14fe4b32196
* | | Merge "General reduction test improvement and bug fixes." into nyc-devDavid Gross2016-04-043-101/+440
|\ \ \ | |/ / |/| / | |/
| * General reduction test improvement and bug fixes.David Gross2016-04-013-101/+440
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Clean-up makefiles for test applications." into nyc-devMiao Wang2016-03-315-8/+1
|\ \ | |/ |/|
| * Clean-up makefiles for test applications.Miao Wang2016-03-315-8/+1
| | | | | | | | | | | | | | | | | | Bug: 27945291 - Remove 32bit only flag (except for RSTest_CompatLibLegacy) - Make BLAS Benchmark able to run on N. Change-Id: Ie4c39cfff5b964f009eec431b5ea1455ad9a6724
* | Merge "Multithreaded execution of certain general reduction kernels; ↵David Gross2016-03-299-251/+616
|\ \ | | | | | | | | | reduction test overhaul." into nyc-dev
| * | Multithreaded execution of certain general reduction kernels; reduction test ↵David Gross2016-03-299-251/+616
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge "Add a default region to healingbrush." into nyc-devMiao Wang2016-03-292-10/+23
|\ \ \
| * | | Add a default region to healingbrush.Miao Wang2016-03-292-10/+23
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27340444 - Adding a default region makes it possible to test HealingBrush on fugu. - Fix NPE, when no photos are in the Download folder. Change-Id: Idecd70618580bb3e40f322e36ab8a3454a579076 (cherry picked from commit f04a68c0e3e58ce4cb6a47a5f9cd17b63003db3a)
* / | Reorder tests for Float16 vector functionsPirama Arumuga Nainar2016-03-281-3/+14
|/ / | | | | | | | | | | | | | | | | http://b/27547875 Add test for native_distance in RsTest. Also add missing tests and re-order tests for other Float16 vector functions. Change-Id: I0527dd5cf447aa9b31e1c73bcb555c03adc66042
* | Merge "Fixed intrinsics inside a script group" into nyc-devYang Ni2016-03-221-7/+13
|\ \
| * | Fixed intrinsics inside a script groupYang Ni2016-03-221-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 27439842 An RS intrinsic relies on RSExpandKernelDriverInfo.usr for the "this" pointer to the ScriptIntrinsic object. Need to to correctly set that field in a script execution for intrinsics. Also fixed a bcc command-line option. Added a test of script group with intrinsics to ImageProcessing GroupTest(native). Change-Id: Ia8b45bca3396ac987ba167fd1709ee89123a2557 (cherry picked from commit 7a106adbb5e370b544f2cbf5b83c063560c81b57)
* | | Enable half3 tests in RsTestPirama Arumuga Nainar2016-03-211-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | http://b/25819476 These failures are fixed by the recent LLVM rebase. Change-Id: I71ef78eebddaa76d4d6fb64f13b57aa89f76f8db
* | | Enable commented-out tests for fp16 math functionsPirama Arumuga Nainar2016-03-211-34/+7
|/ / | | | | | | | | | | | | | | http://b/26099914 These tests are fixed by the recent LLVM rebase. Change-Id: I40c7493c856309bf2b43ade25c9e6e734c33797e
* / Avoid explict loading of libRSSupport in testYang Ni2016-03-171-1/+0
|/ | | | | | | | | | | | Bug: 27692823 Since libRSSupport is not necessarily included in the test APK, this test will try to load libRSSupport.so from /system/lib directory, which will fail after M. This was really an old work around for NDK RS API, and no longer needed. Change-Id: Ifccc09f5cec074fba40f7a0cfc300b8294e80aa3
* Compatibility library support for general reduction.David Gross2016-02-268-3/+1014
| | | | | | | | | | | | | | | | 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)
* Test length, normalize variants for f16.Pirama Arumuga Nainar2016-02-181-0/+10
| | | | | | | http://b/23536224 Change-Id: Idbf28fec0b5e7cdc279d8ad80d60fec1077cac1d (cherry picked from commit c5345365efaace2b7c76ce1c3ea71b5047cd6227)
* Enable tests for float16 allocationsPirama Arumuga Nainar2016-02-182-3/+5
| | | | | | | | | http://b/24862914 These were previously disabled due to a missing enum value. Change-Id: Idc2115a03d2fe48bd542f6fe8fd585e6e54b5bb6 (cherry picked from commit de5b6081ce101491910be97c5b204305018f1b62)
* Merge "General reduction test case where pragma follows constituent ↵David Gross2016-02-115-0/+515
|\ | | | | | | functions." into nyc-dev
| * General reduction test case where pragma follows constituent functions.David Gross2016-02-115-0/+515
| | | | | | | | | | | | | | Bug: 23535724 (cherry picked from commit 23966203d0b4d4a7da90d521349dbb77d7283261) Change-Id: I99c3a6f9623d8fa422a4699d5a2967db14caedd3
* | Disable frexp and modf for halfPirama Arumuga Nainar2016-02-101-2/+12
|/ | | | | | | | | | | http://b/23536224 http://b/26099914 Variants of frexp and modf for half vectors also fail instruction selection on AArch64. Disable this test until we update on-device LLVM. Change-Id: I0a7463c8c955f7bd945b5ec7690d2a4a158579dc (cherry picked from commit de10692c7e41bb52ccc627dd85e1e3f35d85ffb6)
* Add tests for fract, frexp and modf for halfPirama Arumuga Nainar2016-02-081-1/+61
| | | | | | | | http://b/23536224 (cherry picked from commit 8ea537d7fd075f0057a4d8780093cbace104c8c8) Change-Id: I3ee8961147a715f8eaf3063bb91b94a6e944a6c6
* Merge changes from topic \'fp16-math-update\' am: 20807a72d7Pirama Arumuga Nainar2016-02-051-37/+105
|\ | | | | | | | | | | | | | | | | | | am: 9084aebf5c * commit '9084aebf5c4047f61cb02602de071714da286360': Enable half tests for copysign, ilogb, nextafter Implement copysign, ilogb and nextafter for half Update RS headers with copysign, ilogb and nextafter Add copysign, ilogb and nextafter for half
| * Enable half tests for copysign, ilogb, nextafterPirama Arumuga Nainar2016-02-051-37/+105
| | | | | | | | | | | | | | | | | | | | | | | | http://b/23536224 Tests for copysign, ilogb and nextafter were disabled until they could be added to the spec and headers. This CL enables these tests. Test for nextafter is updated so inputs in subnormal range are not tested. Change-Id: I27ca961de650362f0bb55fda36c449523773c8a2
* | Merge "Rename from com.android.rs.test -> com.android.rs.refocus." am: ↵Stephen Hines2016-01-3025-57/+57
|\| | | | | | | | | | | | | | | | | a255273939 am: 9f2be515c1 * commit '9f2be515c18d7aff99e2a55a67f273dc746e1951': Rename from com.android.rs.test -> com.android.rs.refocus.
| * Rename from com.android.rs.test -> com.android.rs.refocus.Stephen Hines2016-01-3025-57/+57
| | | | | | | | | | | | | | The collision here prevented me from installing this app alongside the actual RSTest app (which has always used com.android.rs.test). Change-Id: I0811f9738de68c6c591aa2a948fb7e7a4c96c7b5
* | Merge "Support for general reduction kernels." am: accdb783d1David Gross2016-01-223-0/+494
|\| | | | | | | | | | | | | am: 88df392629 * commit '88df392629d06b1444fc7bccbbd29b4a3e587ede': Support for general reduction kernels.
| * Support for general reduction kernels.David Gross2016-01-193-0/+494
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Assign API level 24 to single-source RS APIYang Ni2016-01-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | Updated the RenderScript API spec files, and reran the auto-generating script for the single-source RS API. Also updated LatencyBenchmark makefile to set its target-api to 23, since it uses the deprecated rsForEach() function that takes a script parameter. Change-Id: I75d36010be49a0cdcbe1d6ec1fc7eed3a6d7b12b
* | Merge changes from topic \'f16-math\' am: 8ea0a4219aPirama Arumuga Nainar2015-12-133-0/+385
|\| | | | | | | | | | | | | | | | | | | am: 8c13d3ea14 * commit '8c13d3ea1454d2197d020c8ecb23e3e3822b511a': Test f16 math functions in RsTest Implement f16 math functions in the runtime Generated .rsh files for f16 math functions Add RS math functions for F16.
| * Test f16 math functions in RsTestPirama Arumuga Nainar2015-12-113-0/+385
| | | | | | | | | | | | | | | | | | | | | | - API test to ensure all f16 math functions added in https://android-review.googlesource.com/#/c/186324 exist - Tests nextafter and ilogb are included but commented out. Bug: 23536224 Bug: 26099914 Change-Id: If5bcbb34750f9b47af80fe01af27a629cbf78882
* | Merge "Test F16 allocations" am: b67089f492Pirama Arumuga Nainar2015-12-133-0/+264
|\| | | | | | | | | | | | | am: af55b48044 * commit 'af55b48044adc194462adba2e55034ee141a6d7a': Test F16 allocations
| * Test F16 allocationsPirama Arumuga Nainar2015-12-123-0/+264
| | | | | | | | | | | | | | | | | | Bug: 25819476 Test reads and writes on an f16 allocation in an invoke and as part of input or outputs of kernels. Change-Id: I1bc3f3f8b544db02067767913b2fb114ae097be7