213 Commits

Author SHA1 Message Date
Miao Wang
39a0b22cf8 Merge "[RenderScript] Add dummy getMinorID to maintain compatible with old RS compat lib." into mnc-dev 2015-05-14 22:22:07 +00:00
Miao Wang
f9d518a2af [RenderScript] Add dummy getMinorID to maintain compatible with old RS
compat lib.

bug: 21132592
Change-Id: I375f188dfbd33367a9589533aa51b182fda8bc21
2015-05-14 15:11:52 -07:00
Jason Sams
f061653202 Merge "Fix issues found during CTS testing of FP16" into mnc-dev 2015-05-14 20:15:40 +00:00
Jason Sams
6faa4d20c5 Fix issues found during CTS testing of FP16
bug 20822382

This corrects a copy&paste error placing F16 into F32.
Fixes an error disallowing vectors of fp16 types.

Change-Id: I34be1aa9a323d61a7121581ab9599d2c2d32dd42
2015-05-13 13:21:30 -07:00
Yang Ni
20e16f4f76 Merge "Elaborate on description of ScriptGroup.execute" into mnc-dev 2015-05-12 21:25:29 +00:00
Jason Sams
0cf42ffbbe Merge "Fix API name based on API review" into mnc-dev 2015-05-12 21:20:15 +00:00
Jason Sams
f76423062a Fix API name based on API review
rename getMinorID to getMinorVersion

bug 21039492

Change-Id: I03908dba508e30a605818d81a085ad627fa202fb
2015-05-12 14:06:56 -07:00
Yang Ni
4356389606 Elaborate on description of ScriptGroup.execute
b/21039492

ScriptGroup.execute(Object...): Describe input and output order.

Change-Id: I88668338ab2ac50e602b97891b86509c81dedf4d
2015-05-12 13:53:38 -07:00
Miao Wang
cb556e0d25 Merge "[RenderScript] hide Allocation.copyToFieldPacker()" into mnc-dev 2015-05-11 21:13:47 +00:00
Miao Wang
50a8ff108f [RenderScript] (minor) fix validation of L3 BLAS
bug: 21028875

Change-Id: I9fd48c57b6518e06ee1d9d7d4ca44faa96d887b0
2015-05-11 12:08:02 -07:00
Miao Wang
3c61327fa9 [RenderScript] hide Allocation.copyToFieldPacker()
bug: 21027883

Change-Id: I122392bc5206ff19ea52712576d7f363e5915231
2015-05-11 11:51:09 -07:00
Jason Sams
d1516dffa8 Fix Allocation-less launches
Cherry-pick fix from AOSP.  Error check for kernel launch was
generating a false positive.

bug 20690242


Change-Id: Ic4c6644072a11aab9a273070be5734519136f685
2015-05-05 18:00:34 -07:00
Yang Ni
17c2d7a3e1 Sanity checks in JNI code for closure creation
b/20728113

In case the requested size for memory allocation overflows, or memory
allocation fails.

Change-Id: I8dac132dd4d0210938660ffbb82cbe44000d2a90
(cherry picked from commit 4e90b9b57cc96964a9d5c1845172a72cb51feafb)
2015-05-04 15:09:29 -07:00
Miao Wang
194679ed95 [RenderScript] typo fix in BLAS, TRMM & TSMM
Change-Id: I78f014a864700369c7ccdfb46a257851a45abd7c
2015-04-30 17:14:28 -07:00
Miao Wang
1e940d87c4 [RenderScript] fix edges cases about Transpose for SYMM & SYR2K
Change-Id: Id86d5fe8475060a22f49b06b6e1f8f3eae7c7e9f
2015-04-30 13:37:38 -07:00
Miao Wang
cecc00aba1 [RenderScript] L2 BLAS, fix element type in ZHER
Change-Id: I99f9f9ff8942522d6581ff60b9a2d75e33e66ff6
2015-04-29 18:15:36 -07:00
Miao Wang
37ae07c643 [RenderScript] fixes for L3 BLAS APIs
- Typo for validateUplo
  - Typo in ZHEMM, element should be FLOAT64_2.
  - For GEMM and SYMM, SYRK, 'CONJ_TRANSPOSE' should also be handled in the
    validation process.
  - For SYMM, check matrix A is symmetric.
  - For HERK, the dimension validation was switched for Transpose case.
    Also, only Conj Trans is allowed in this case.
  - FOR SYR2K, fix the dimension check for Matrix C.
  - For TRMM & TRSM, fix the validation part for dimension check.

Change-Id: I559b5c5695aa82604de2955ae2327b694236d3ed
2015-04-29 17:00:28 -07:00
Miao Wang
89c3a5f8c5 [RenderScript] Enable L2 BLAS APIs
Change-Id: I484a185a79190da365ac832b90bb3bedb8bbca48
2015-04-23 15:20:11 -07:00
Miao Wang
68ca43ebe6 [RenderScript] improve & minor fixes of L2 BLAS validation.
Change-Id: If8dd0f9d4c7db03df22763a80fa6d600539be7c1
2015-04-23 15:06:09 -07:00
Miao Wang
4c47274522 [RenderScript] Fix HEMM and SYRK in IntrinscBLAS to correctly handle
complex 'Alpha' and 'Beta'

Change-Id: I0aed57d41b0199d5c6dd3c31ca33644a5634dc35
2015-04-22 15:57:57 -07:00
Yang Ni
18314caccd Move new script group API into ScriptGroup class
And mark existing methods and builder deprecated.
Removed ScriptGroup2 class.
Renamed nested class UnboundValue to Input.
Marked classes Closure, Future, and Input as final.

Change-Id: I362910c115e9d0173dc515674e08bf4878232879
2015-04-21 14:13:47 -07:00
Tim Murray
ef0e1c6a0c Unhide BLAS intrinsics.
Change-Id: I3006d878e68cce833d8f26cb5d8a1a660a6f5565
2015-04-16 11:15:43 -07:00
Miao Wang
68e03ab998 am 13391109: am 2b300a99: am 782b4339: Merge "[RenderScript] typo fix in Allocation.java"
* commit '133911095ce0d9ef01766aa7b67a0a31b852e242':
  [RenderScript] typo fix in Allocation.java
2015-04-16 02:46:43 +00:00
Miao Wang
782b43394e Merge "[RenderScript] typo fix in Allocation.java" 2015-04-16 02:03:32 +00:00
Miao Wang
179e8b5351 [RenderScript] typo fix in Allocation.java
Change-Id: Id0eae76387d18c5bfed6cdbb52781b0dc3e4ae90
2015-04-15 17:44:32 -07:00
Jason Sams
a217d69d05 Merge "Hide array allocation" 2015-04-16 00:35:23 +00:00
Jason Sams
d016266de2 Hide array allocation
Not done for feature complete

Change-Id: I79c8da2c7e64d6feb660c9652688f971535c1f92
2015-04-15 17:18:10 -07:00
Tim Murray
ef532f8435 am 3d9c9093: am 91d2f27b: am 7f72f747: Merge "Add BNNM intrinsic."
* commit '3d9c9093d1d76d4aeb5f99b1746b65788c72736e':
  Add BNNM intrinsic.
2015-04-15 23:15:13 +00:00
Tim Murray
7f72f74766 Merge "Add BNNM intrinsic." 2015-04-15 22:30:14 +00:00
Tim Murray
9cb16a2f91 Add BNNM intrinsic.
Change-Id: I05fc9835786455e28d69f2b4ffe70c3292a01404
2015-04-14 15:10:19 -07:00
Yang Ni
5024f20a85 am 09339053: am 6ca1e45a: am 8704ae46: Merge "Add name to ScriptGroup2.Builder.create() method"
* commit '0933905375790eb850334b53fd6d0981bd40e007':
  Add name to ScriptGroup2.Builder.create() method
2015-04-14 17:02:33 +00:00
Yang Ni
35be56cce8 Add name to ScriptGroup2.Builder.create() method
This name will be used to name the .so file generated for the
script group with fused kernels.

Change-Id: I46e351c8412740512f56b7915b14f36183c6eeaf
2015-04-13 17:24:44 -07:00
Yang Ni
ad6b44aaa1 Add a name to ScriptGroup2.Builder.create method
The name is not used in any meaningful way yet, but would be used
to name the file for generated code for fused kernels in other
coming CLs.

A script group name cannot be null or empty, or longer than 100
characters. It can only contain letters, digits, '-', or '_'.

Change-Id: I95fdbf58e6689da91ca98c2057dfa1a803d3b27b
2015-04-13 14:32:18 -07:00
Tim Murray
9509bfe46a am 72fcf9eb: am af61d43d: am 6d718c2f: Merge "Add support for setting the cache directory."
* commit '72fcf9eb1079312afd7bdbee167c759109af4244':
  Add support for setting the cache directory.
2015-04-10 04:35:04 +00:00
Tim Murray
47f31582b6 Add support for setting the cache directory.
Change-Id: I2bf1874705b877a8a8262ab49b47fe8241e603d5
2015-04-09 17:50:39 -07:00
Stephen Hines
b6b17a575f resolved conflicts for merge of 764f08ad to master
Change-Id: I0a22225b2d26b6d806de2dcc70ffba29c96865b3
2015-04-07 14:47:32 -07:00
Tim Murray
e1e6c66198 Move cache dir to its own class.
This prevents us from loading the RS static initializer all the time.

Change-Id: I8cea7540e50251aba8c2f199f06f344f991e7d7f
2015-04-07 13:24:14 -07:00
Yang Ni
922346c0b2 Merge "Add a name to ScriptGroup2.Builder.create method" 2015-04-07 19:54:31 +00:00
Yang Ni
1709856238 Add a name to ScriptGroup2.Builder.create method
The name is not used in any meaningful way yet, but would be used
to name the file for generated code for fused kernels in other
coming CLs.

A script group name cannot be null or empty, or longer than 100
characters. It can only contain letters, digits, '-', or '_'.

Change-Id: I95fdbf58e6689da91ca98c2057dfa1a803d3b27b
2015-04-07 09:37:50 -07:00
Jason Sams
217a36b193 am ef2279a1: am 283e5ce3: am 7200f661: Merge "Fix minor blur doc bug"
* commit 'ef2279a1f1a12b9ba16cd18c7ec2be97111307a8':
  Fix minor blur doc bug
2015-04-07 00:17:24 +00:00
Yang Ni
a9d76d153d am 249968b4: am 6bef5eb4: am 6422ee71: Merge "Rewrote FieldPack::createFieldPack for alignment"
* commit '249968b421a8dcfe5a26ec7f524e76295ec5eef5':
  Rewrote FieldPack::createFieldPack for alignment
2015-04-07 00:06:34 +00:00
Jason Sams
7200f661c1 Merge "Fix minor blur doc bug" 2015-04-06 23:38:05 +00:00
Yang Ni
8bcbf47245 Rewrote FieldPack::createFieldPack for alignment
b/20032217

Some data types requires data alignment. This has an impact on the
total data size for the FieldPack. Fixed createFiledPack()
implementation to handle this correctly.

Change-Id: I241da19df69bf51cfdaf3b3a1381b446eaacb7fb
2015-04-06 14:49:53 -07:00
Miao Wang
edea751f64 am 1327fa9e: am 511eb660: am 6aed9ec1: Merge "[RenderScript] update exception reporting for copyTo() after autoPadding added."
* commit '1327fa9eb155eb57fe24a8aa90a18f57d706e86b':
  [RenderScript] update exception reporting for copyTo() after autoPadding added.
2015-04-03 18:18:01 +00:00
Miao Wang
d9b6328509 [RenderScript] update exception reporting for copyTo() after
autoPadding added.

 - This CL fixes recent CTS failures about copyPadded after
   lmp-mr1-dev changes pushed to aosp.

Change-Id: Ica1f4fd934cd83ca4357ea7e7c82dcc7f844b689
2015-04-03 09:15:39 -07:00
Jason Sams
37192dcde3 Fix minor blur doc bug
Change-Id: I4c129d9d3c93d8a36c887e5c594b4402aca5745e
2015-04-02 14:10:53 -07:00
Yang Ni
249e6c8cd8 am 02dff422: am 5db6f1fa: am 63dde9c8: Merge "Fix value size data type in closure creation."
* commit '02dff422a7734764e3ce00179f62ba115f2081a5':
  Fix value size data type in closure creation.
2015-04-01 02:19:41 +00:00
Yang Ni
4470d68a89 Unhide new ScriptGroup API
This includes the new class ScriptGroup2 and a related change in
class Script to add InvokeID.

Change-Id: I012dc0a32c65803453022fa534ef05f855ea5ace
2015-03-31 15:00:13 -07:00
Miao Wang
eb9a10c829 Merge "[RenderScript] Remove @hide for setAutoPadding(boolean)." 2015-03-31 19:41:02 +00:00
Jason Sams
8610f837bc Update LaunchOptions description
Change-Id: I7425c9ea9d82ed54950557e93aa46b69ebc02c23
2015-03-30 17:01:10 -07:00