mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
### Description
<!-- Describe your changes. -->
Android emulator usage updates:
- Change approach to detecting boot has completed
- use `-delay-adb` and a simple command (`ls`) with `wait-for-device` as
the first step
- this ensures enough startup has occurred for adb to be responsive
- use secondary loop on the python side to check for sys.boot_completed
to be set
- doing the check on the python side provides more feedback and seems to
work well
- make the 'stop' logic more precise by using psutil
- add internal timeout of 20 mins for emulator startup
- waiting for the CI jobs overall timeout is way too long
- value is hardcoded for now (most CIs startup in under 10 mins) but
could be made configurable if needed
CI updates:
- add template for using the Android emulator
- update CIs to use template
- reorder React Native CI
- minimize the time the Android emulator or iOS simulator is running by
moving some build steps around
- don't run both at the same time
- unnecessary and potentially adds significant memory pressure to the
machine
- fix QNN Android emulator CI as much as possible
- now everything works apart from running onnx_test_runner with the QNN
EP
### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Fix inconsistent detection of the emulator boot completing.
---------
Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| android | ||
| mobile_helpers | ||
| ort_format_model | ||
| qdq_helpers | ||
| test | ||
| __init__.py | ||
| __init__append.py | ||
| add_openvino_win_libs.py | ||
| check_onnx_model_mobile_usability.py | ||
| convert_onnx_models_to_ort.py | ||
| file_utils.py | ||
| get_azcopy.py | ||
| logger.py | ||
| make_dynamic_shape_fixed.py | ||
| onnx_model_utils.py | ||
| optimize_onnx_model.py | ||
| platform_helpers.py | ||
| pytorch_export_helpers.py | ||
| reduced_build_config_parser.py | ||
| run.py | ||
| update_onnx_opset.py | ||