commit | f6490969998ed021595fdcdd88400ddbc147581a | [log] [tgz] |
---|---|---|
author | Scott Todd <scotttodd@google.com> | Tue Mar 29 10:05:13 2022 -0700 |
committer | GitHub <noreply@github.com> | Tue Mar 29 10:05:13 2022 -0700 |
tree | 40f42cc261f108c1708f4f6f497ce5833473330b | |
parent | 2cf4a787ad631be33b092eaf65223252fd63eab8 [diff] |
Fix web sample warnings and use IREE_DEFAULT_COPTS warnings/errors. (#8672) Tested on Windows with emsdk 3.1.8 --- Warnings are now treated as errors thanks to applying `IREE_DEFAULT_COPTS`. I hesitate to use an internal IREE CMake variable in a sample, but the convenience seems worth it here. Anyone forking this can just set the options they want. --- Mismatched pointer type was from https://github.com/google/iree/pull/8436 (since these don't build/test on presubmit and warnings were not treated as errors before). These samples now match https://github.com/google/iree/blob/2cf4a787ad631be33b092eaf65223252fd63eab8/iree/samples/static_library/static_library_demo.c#L33-L41 --- The `-sMAIN_MODULE=2` change is to fix this warning: ``` [10/10] Linking C executable experimental\web\sample_dynamic\web-sample-dynamic-sync.js emcc: warning: EXPORTED_FUNCTIONS is not valid with LINKABLE set (normally due to SIDE_MODULE=1/MAIN_MODULE=1) since all functions are exported this mode. To export only a subset use SIDE_MODULE=2/MAIN_MODULE=2 [-Wunused-command-line-argument] ``` See the docs: https://emscripten.org/docs/compiling/Dynamic-Linking.html#code-size. Setting to `2` enables DCE and `EXPORTED_FUNCTIONS` again (we tightly control the symbols we need so the default export all behavior isn't what we want).
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.