aboutsummaryrefslogtreecommitdiff
path: root/Android.mk
AgeCommit message (Collapse)Author
2023-07-19IVGCVSW-7760 Add support for Android 14Kevin May
* Replace code duplication with filter Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I8ac5773c7a6622cbab2dbf12f25886c81b485255
2022-07-06IVGCVSW-6899 Add basic Android 13 support to Android.mkKevin May
* Android 13 does not differ significantly form 12 so there is no need to add a new Android variable for 13 Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I4880bd93fea9bdfff6d1e18660ea637b7b6d2ace
2022-06-27Add Mapfiles generation to Android.mkRyan OShea
* Adds map file to libArmnnDriver for each Hal version * Adds map file to neuralNetwork driver for each hal version Signed-off-by: Ryan OShea <ryan.oshea3@arm.com> Change-Id: I644d0aefbd55edf8ad2d63d0166e9cbb9d768a42
2022-05-26GitHub #644 fails to build with flatbuffers 2.0.6Mike Kelly
* Fixed bug where flatbuffers was downloaded every time setup.sh was run. * setup.sh will attempt to use the version of flatbuffers used by android if one is available. * setup.sh will now generate ArmnnSchema_generated.h where one does not exist !armnn:7625 Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I62f3be6ebfc7fbef39597295dca194d70294646c
2022-03-23IVGCVSW-6706 Update header includes for new client profiling libJim Flynn
!armnn:7327 Change-Id: If4efc2195eb8713e98767fd4732ae9f4f2bfe09b Signed-off-by: Jim Flynn <jim.flynn@arm.com>
2022-01-31Make ETHOSN backend disabled by defaultKevin May
* Use ARMNN_ETHOS_ENABLE variable to enable it Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I5465b7738556604367262cf9aa8e1ce6e01639b9
2021-12-14Make it possible to add libs from armnn backends during linking for testZingo Andersen
Change-Id: I95e6a3819ba99e41883f9d64a0bd6ce8706a7a4f Signed-off-by: Zingo Andersen <zingo.andersen@arm.com>
2021-11-04IVGCVSW-5636 'Implement NNAPI caching functions'Sadik Armagan
* Cached serialized ArmNN model. !armnn:6384 Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I78120a7f8ea892a28c0ff25f1b54e67a4f912574
2021-11-03Make it possible to add libs from armnn backends during linkingZingo Andersen
Signed-off-by: Zingo Andersen <zingo.andersen@arm.com> Change-Id: I95e6a3819ba60e41885f9d64c0bd6ce8706a7b1e
2021-06-25IVGCVSW-6178 Add additional compiler warnings to the driverFinn Williams
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Change-Id: I2209251736a095583fffc8da774188e0dccfc932
2021-02-15IVGCVSW-5665 Basic NN Driver support for next OS VersionSadik Armagan
Signed-off-by: Kevin May <kevin.may@arm.com> Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I1e1db52322092c6b1b7ac6183c3adc90aabcec24
2021-01-11IVGCVSW-5485 'Add CacheLoadedNetwork options to Android NN Driver'Sadik Armagan
* Added Flatbuffers dependency to android-nn-driver * Added CacheLoadedNetwork options to android-nn-driver Options will be android.hardware.neuralnetworks@1.3-service-armnn -v -c GpuAcc -n arm-armnn -s -q <file_path> & Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I2cdf0b84062cb1c6ad4346cd64b00161cfe85920
2020-10-29IVGCVSW-5267 Remove boost from core android-nn-driverJames Ward
* WIP !armnn:4231 !armnn:4287 Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I7844efc84fac018d8aad1f72dd236ede3fd8e7f2
2020-10-07IVGCVSW-5278 Switch Android-nn-driver/DriverOptions.cpp over to cxxoptsColm Donelan
* Add armnn/third-party to LOCAL_C_INCLUDES in Android.mk. * Update DriverOptions.cpp to use cxxopts instead of Boost:program_options Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Change-Id: I54c080e3b01f128c05d73ed5b7b76e5e64bd63ac
2020-10-07IVGCVSW-5298 Remove boost::format from Android-nn-driverColm Donelan
* Replaced with stringstream, string or filesystem::path Signed-off-by: Colm Donelan <Colm.Donelan@arm.com> Signed-off-by: Jan Eilers <jan.eilers@arm.com> Change-Id: I2aa80d88cc0eaff5de4dc6a121370ebf41dcb0a8
2020-06-20IVGCVSW-4912 Enable CL in Android.mk for Android RKevin May
Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I87d562e73376b8ee8f933564d6ab06f6d8998fab
2020-06-19IVGCVSW-4836 Build EthosNRef on Android and run VTS and CTS test suites on itFrancisMurtagh
Change-Id: Ie484555277dfe7610533e06104639f452692a4ae Signed-off-by: FrancisMurtagh <Francis.Murtagh@arm.com> Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
2020-06-02IVGCVSW-4871 Update Android.mk file to build with platform version 11Kevin May
Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I79400884d57b72da3e0e490120fdbc0db6bd0480
2020-06-02IVGCVSW-4780 Add QoS to AndroidNNDriverNarumol Prangnawarat
* Add model priority to ArmnnPreparedModel_1_3 * Add RequestThread_1_3 to allow execution based on priority * Add RETIRE_RATE to Android.mk to be able to configure the retire rate Signed-off-by: Narumol Prangnawarat <narumol.prangnawarat@arm.com> Change-Id: Ic5f4309249b744c2a8f625c986eede381a26028b
2020-05-15IVGCVSW-4837 Add driver service name command line optionKevin May
* revert commit 8a510e8e9ed22ec0bbd295b69a6700ad0ba7cfd8 * Add driver option to give service a name, default to "armnn" Change-Id: I9755206494f637bee4c8299bf6370fc4731638c8 Signed-off-by: Kevin May <kevin.may@arm.com>
2020-05-06IVGCVSW-4673 Change ArmNN driver service name to arm-armnnKevin May
* Change service name from "armnn" to "arm-armnn" * Rename .rc files * Update Android.mk to use new service name * Update Integrator Guide Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: If2a4ac9756101472d30255afbf8c90859e29aabf
2020-04-23IVGCVSW-4677 Fix FencedComputeTest Hal 1.3Sadik Armagan
* Implemented executeFenced() function in HAL 1.3 Driver Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: I11f8f532e9688d4e194992b46dbed575a19be3c5
2020-04-07Fixed missed change to libOpenCL exclusion flowalered01
Part of "Add flow to exclude libOpenCL when building AndroidNN" Signed-off-by: alered01 <Alex.Redshaw@arm.com> Change-Id: I7d57db8a314312d7c160c2759224a54d9bf3d0af
2020-04-03Add flow to exclude libOpenCL when building AndroidnNNalered01
When building AndroidNN for a commercial silicon device, there's no need to include libOpenCL as we should be able to use the one already on the device Change-Id: I5ef5776010399dd2d2d48958465daf4b71e4f825 Signed-off-by: alered01 <Alex.Redshaw@arm.com>
2020-03-26IVGCVSW-4447 Add Hal 1_3 SupportKevin May
* Add new 1.3 files HalPolicy, ArmnnDriver, ArmnnDriverImpl * Add new .rc file for 1.3 service * Add ArmnnPreparedModel_1_3 and implement new functions * Update Android.mk with 1.3 driver and service * Refactor ifdef to include ARMNN_ANDROID_NN_V1_3 * Create Utils getMainModel for new 1.3 Model Main Subgraph * Use android Utils to convertToV1_X in ArmnnPrepapredModel_1_3 * Refactor HAL 1.2 convert functions into ConversionUtils_1_2.hpp * Replace ArmnnBurstExecutorWithCache with call to ExecutionBurstServer Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I514069e9e1b16bcd1c4abfb5d563d25ac22d02e3
2020-03-03IVGCVSW-4473 Android R pre Hal 1_3 build changesKevin May
* Update ErrorStatus to V1_0::ErrorStatus * Update Request to V1_0::Request * Update OperandType to V1_2::OperandType * Add namespace android::nn::hal in ArmnnDriverImpl for R only * Add missing g_RelaxedFloat32toFloat16PerformancePowerUsageName * Add namespace V1_0 or V1_1 where necessary * Update Android.mk with R macro and android.hardware.neuralnetworks@1.3 * Remove androidnn.go * include IAllocator in DriverTestHelpers * Remove unused LOCAL_CFLAGS Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I1787f1ed6784b3bbec017536d87d49197405e853 Signed-off-by: Kevin May <kevin.may@arm.com>
2020-02-11Partial Revert "IVGCVSW-4130 Remove clframework from android-nn-driver build."Mike Kelly
* Partial reversion to restore Android.mk files. * Changed armnn-arm_compute library name to arm_compute_library. !armnn:2714 This reverts commit 826dd41dc4de616059a61fb0aaec432311372c6c. Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: Idb4a2eeb6cbb19a249c1a85eec2cf597d6b6d970
2020-01-31IVGCVSW-4130 Remove clframework from android-nn-driver build.Colm Donelan
Signed-off-by: Colm Donelan <colm.donelan@arm.com> Change-Id: I019bdab899de19c1a2cb6bbd72dd38ceb677d98b
2019-10-18Github #275 Improved getting ArmNN's version at compile timeMatteo Martincigh
* The version macro is set in the Version.hpp just like before, so parsing it from file is no longer necessary !armnn:2090 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I3f8d10bd7b8947f9361e50edf033ea4e93451faf
2019-10-17Move version definition to its own fileMatteo Martincigh
* Move the ArmNN version to a separate ArmnnVersion.txt file * Updated makefiles accordingly !referencetests:206978 !armnn:2089 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I02b838bc71611a866b3f96335e44a33b0167134f
2019-08-29IVGCVSW-3656 Undo wrong rename of the backend control macrosMatteo Martincigh
* Renamed the cl/neon backend macros to their original values, as they were renamed by mistake * Reverted misleading comment * Updated the readme file !armnn:1837 Change-Id: I49faabae2c8ad196f51eca5f8dd049ecf74b36e1 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-08-28IVGCVSW-3656 Rename ARMNN_COMPUTE_REF_ENABLED to ARMNN_REF_ENABLEDMatteo Martincigh
Change-Id: I5982d8dc733bd8bf1eed51c467df5a16a6aabcdb Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-08-27IVGCVSW-3656 Rename ARMCOMPUTEREF to ARMNNREFMatteo Martincigh
* Renamed ARMCOMPUTEREF to ARMNNREF (and relative symbols) as the previous name was misleading Change-Id: Ia0400a7d63a76c80fb5bdd26410553db1c15cba0 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-08-20IVGCVSW-3656 Make the reference backend optionalMatteo Martincigh
* Added ARMNN_COMPUTE_REF_ENABLED to programmatically build the reference backend * Adjusted the makefiles to allow any backend combination to build * Refactoring where necessary Change-Id: I04cf23245971fcd460b776dd60e01cacb0458dab Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-08-07IVGCVSW-3595 Implement the LoadDynamicBackends function in the Runtime classMatteo Martincigh
* Updated the makefiles to include boost::filesystem !armnn:1702 Change-Id: Ibe0a696d9fd473b552602266a89465289e9dc043 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2019-07-26IVGCVSW-3578 Do not attempt to infer dynamic output shapesAron Virginas-Tar
* Report dynamic output tensors as unsupported for all operations, regardless of HAL level Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I2341dc96be965886666b75515e9a226d813a1591
2019-07-10IVGCVSW-3482 Report operations with dynamic output size as unsupportedAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: Ifafe2a6fbfd6019b3395d51ed9967db794d2b034
2019-07-09IVGCVSW-3456 Add support for dynamic output shape in ConvertPreluAron Virginas-Tar
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com> Change-Id: I8fc7a716455be3f51b51177f6896a73790a41fc3
2019-07-04IVGCVSW-3369 Add conversion method to HAL1.2 Policy for PReLU activationMatteo Martincigh
* Added ConvertPrelu method to HalPolicy V1.2 Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I8248d2e2bd236295845da665b2d4e687478368ef
2019-06-11IVGCVSW-3181 Add HAL 1.2 support to android-nn-driverMike Kelly
* Updated Android.mk to build HAL 1.2 driver * Added 1.2 HalPolicy and ArmnnDriver * Added 1.2 ArmnnPreparedModel * Updated converters and utilities to accept new HAL 1.2 operands and operand types. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Signed-off-by: Mike Kelly <mike.kelly@arm.com> Change-Id: I62856deab24e106f72cccce09468db4971756fa6
2019-05-22IVGCVSW-2911 Add Android Q support to android-nn-driver infrastructureSadik Armagan
* Updated Android.mk to build Android Q * Added androidnn.go to inject cpp flags for Q * Create Runtime when ACL is not enabled Change-Id: Ia3e7a8e484fc81ce63998a65e29753cbf941173c Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com>
2019-01-31IVGCVSW-2603 The macros ARMCOMPUTECL_ENABLED and ARMCOMPUTENEON_ENABLEDMatteo Martincigh
no longer work * Added two master variables ARMNN_COMPUTE_CL_ENABLED and ARMNN_COMPUTE_NEON_ENABLED to android-nn-driver/Android.mk to easily control backend support * Setting either of those two new variables then properly sets the corresponding build macro * If a specific backend gets disabled, the corresponding source files will be excluded from the build Change-Id: I06e71c352bb9d7048bc439e5c8ccac0a9c2bb47b Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com>
2018-10-22IVGCVSW-1998 : fix for missing initialization in the driverDavid Beck
Change-Id: I5b1209a871d0a848bb1fdfba5228f181e6968004
2018-10-22IVGCVSW-1998 : preparation for ArmNN separate backendsDavid Beck
* to auto-register backend factories we need static global varibles to be initialized which only happens if not omitted by the linker * the whole-library option makes sure we include the whole ArmnN library in the driver !armnn:153399 Change-Id: Idd2fc67ecc848e1b9be75da0e3ceace9bfa0061d
2018-09-18IVGCVSW-1806: Refactor Android-NN-Driver ModelToINetworkConverterarovir01
* Moved conversion logic into new V1_0 and V1_1 HalPolicy classes * Extracted common helper functions into ConversionUtils class Change-Id: I1ab50edc266dd528c0cb22a5cd1aa65e103674d9
2018-09-18IVGCVSW-1807: change license text in file headersDavid Beck
All changes are the same: // // Copyright © 2017 ARM Ltd. All rights reserved. -// See LICENSE file in the project root for full license information. +// SPDX-License-Identifier: MIT // Change-Id: Ibb7ed1e4e2191b9a978e26b5bacf916db403a60e
2018-09-18IVGCVSW-1806 Restored the fp16 flag left behind during the previousMatteo Martincigh
refactoring * Split getCapabilities and getCapabilities_1_1 as it was before * Setting relaxedFloat32toFloat16Performance when using HAL 1.1 as required by one of the VTS test Change-Id: Iff883b8cbd0511596e9848fa40e91e4fa58d4260
2018-09-18IVGCVSW-1806 Refactored Android-NN-Driver, added common "getCapabilities",Matteo Martincigh
"getSupportedOperations" and "prepareModel" implementations * Added common base ArmnnDriverImpl class * Added common template implementation of the driver's "getCapabilities", "getSupportedOperations" and "prepareModel" methods * Refactored ArmnnPreparedModel and RequestThread to support HAL v1.1 models * Moved "getStatus" to the common base class, as it is shared by both HAL implementations * Refactored the code where necessary Change-Id: I747334730026d63b4002662523fb93608f67c899
2018-09-18Fix for building the NN Driver correctly without having to setMatteo Martincigh
ALLOW_MISSING_DEPENDENCIES to true on Android versions that don't provide all the HAL versions supported by the NN Driver Change-Id: I7c828649499ca1d7cb26feb93f559e9f1eae33c7
2018-08-31Release 18.08telsoa01