commit | 2b774d9781e0eb25237e625faa7f9ced70eac704 | [log] [tgz] |
---|---|---|
author | Kojo Acquah <KoolJBlack@users.noreply.github.com> | Tue Oct 05 17:08:19 2021 -0700 |
committer | GitHub <noreply@github.com> | Tue Oct 05 17:08:19 2021 -0700 |
tree | 96830dfb3235120cdc0b91487d8c6f0074b8c6ee | |
parent | 889e744ec70b8caa5a82008c572e4e42d8b282a8 [diff] |
Implementation of the gradle-android Docker file and build_android_library github action. (#7143) This implements a new Github action `.github/workflows/build_android_library.yml` that runs our workflow to build IREE's TFLite Java bindings via `build_tools/gradle/build_tflite_android_library.sh`. The Github Action uses a new `gradle-android/Docker` file to produce consistent repeatable builds locally and remote. On some systems, gradle fails to run the `externalNativeBuild` task with an unexplained NullPointer error. To get around this. We manually build the native IREE TFLite compatibility shim with [Android cross-compilation](https://google.github.io/iree/building-from-source/android/). The resulting library is copied into the `jniLibs` folder to be included directly in the final library, while native build tasks are skipped by gradle. Additional changes to fix recent issues with the gradle build: * Switching to the support Android library for the `NonNull` annotation * Encapsulating `mlir-tablegen` target with the `IREE_BUILD_COMPILER ` in `build_tools/cmake/iree_copts.cmake`. This caused build failure when compiling the host-tooling without compiler targets (avoid building all of LLVM) since tablegen targets can't compile without other compiler dependencies hidden behind this flag.
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels!
See our website for more information.
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.