commit | 62c4f988c56aee550d281273f0fe476224a868fe | [log] [tgz] |
---|---|---|
author | Ben Vanik <ben.vanik@gmail.com> | Tue Dec 12 18:01:52 2023 -0800 |
committer | GitHub <noreply@github.com> | Wed Dec 13 02:01:52 2023 +0000 |
tree | 80955c2d9d55b0bf2a78b4dea4dc6700d34ec699 | |
parent | 0b7b74dccdd251c747750552e4bbbae0fd0accb0 [diff] |
Replacing cpuinfo on Mac and adding support for E/P cores. (#15891) Topology selection now takes a performance level flag indicating which core types should be included in heterogeneous configurations. `IREE_TASK_TOPOLOGY_PERFORMANCE_LEVEL_ANY` selects all cores (as default before this PR) while `_LOW` and `_HIGH` restrict to efficiency and performance cores respectively. Currently only Mac/iOS and Apple chips on Linux handle this detection but as we replace cpuinfo on Linux we can add support for heterogeneous x86 chips there too. Windows should be easy to support as they expose the performance level of each core but I don't have a machine to test with today and the flag is ignored. cpuinfo was pretty useless to us on Mac so it was easy to switch over to our own detection. There's some missing features around cache sharing but that doesn't mean anything on Mac as Apple doesn't allow for thread pinning and we can't factor constructive cache sharing into our scheduling logic. Fun charts on my M2 showing `--task_topology_performance_level=low`, `--task_topology_performance_level=high`, and `--task_topology_performance_level=any` respectively:   
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.