Skip to content

Separate HAL driver registration with the threading - #7184

Merged
hcindyl merged 3 commits into
iree-org:mainfrom
hcindyl:runtime_cleanup
Sep 29, 2021
Merged

hcindyl merged 3 commits into
iree-org:mainfrom
hcindyl:runtime_cleanup

Conversation

@hcindyl

@hcindyl hcindyl commented Sep 26, 2021 •

Copy link
Copy Markdown
Contributor

Have synced drivers for {Dylib, VMVX}, and the global flags of
IREE_HAL_DRIVER_{DYLIB, VMVX}_SYNC, so the HAL driver registration can be done
with threadless configuration.

Enable iree/runtime libraries to be built in threadless configuration.

Clean up the usage of IREE_ENABLE_THREADING flag in iree/hal and iree/samples

Part of the cleanup for #4298

@hcindyl hcindyl added runtime Relating to the IREE runtime library hal/cpu Runtime Host/CPU-based HAL backend cleanup 🧹 labels Sep 26, 2021
@hcindyl
hcindyl force-pushed the runtime_cleanup branch 5 times, most recently from 3f8cdca to 7aacc81 Compare September 26, 2021 23:05
Have synced drivers for {Dylib, VMVX}, and the global flags of
`IREE_HAL_DRIVER_{DYLIB, VMVX}_SYNC`, so the HAL driver registration can be
done with threadless configuration.

Enable iree/runtime libraries to be built in threadless configuration.

Clean up the usage of IREE_ENABLE_THREADING flag in iree/hal and iree/samples

Part of the cleanup for iree-org#4298
@hcindyl
hcindyl marked this pull request as ready for review September 27, 2021 15:20
Comment thread CMakeLists.txt Resolved
Comment thread iree/runtime/demo/BUILD Resolved
@hcindyl
hcindyl force-pushed the runtime_cleanup branch 2 times, most recently from 6c7d074 to ea98253 Compare September 27, 2021 17:27
This allows iree/runtime can really built in the bare-metal config
without the dynamic_library dependency, and the `-ldl` linker option.

This also removes the driver dependency in iree/samples/{dynamic_shapes,
variable_and_state} examples.

@ScottTodd ScottTodd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the changes!

@hcindyl
hcindyl merged commit a547965 into iree-org:main Sep 29, 2021
@hcindyl
hcindyl deleted the runtime_cleanup branch September 29, 2021 16:32
@antiagainst

Copy link
Copy Markdown
Member

FYI: this breaks benchmarking on Android (https://buildkite.com/iree/iree-benchmark/builds/1100):

--> benchmark: PoseNet [fp32] (TFLite) little-core,full-inference with IREE-Dylib-Sync @ Pixel-4 (CPU-ARMv8.2-A) <--
cmd: adb push /var/lib/buildkite-agent/builds/IREE-LAB-RPI4-PIXEL4-ubuntu-1/iree/iree-benchmark/build-host/benchmark_suites/TFLite/PoseNet-fp32/iree-dylib-sync__CPU-ARM64-v8A__little-core,full-inference/flagfile /data/local/tmp/iree-benchmarks/TFLite/PoseNet-fp32/iree-dylib-sync__CPU-ARM64-v8A__little-core,full-inference/flagfile
cmd: adb shell cd /data/local/tmp/iree-benchmarks/TFLite/PoseNet-fp32/iree-dylib-sync__CPU-ARM64-v8A__little-core,full-inference && taskset 0f /data/local/tmp/iree-benchmarks/normal-tools/iree-benchmark-module --flagfile=flagfile --benchmark_repetitions=10 --benchmark_format=json
I ../iree/tools/utils/vm_util.cc:185] Creating driver and device for 'dylib-sync'...
<vm>:0: UNKNOWN; device not supported in the compiled configuration;
[ 0] bytecode module.main:1504 /usr/src/github/iree/build-host/benchmark_suites/TFLite/PoseNet.mlir:68:11
      at /usr/src/github/iree/build-host/benchmark_suites/TFLite/PoseNet.mlir:2:3
Aborted

@hcindyl

hcindyl commented Sep 29, 2021

Copy link
Copy Markdown
Contributor Author

Breakage fixed with #7207

copybara-service Bot pushed a commit that referenced this pull request Sep 29, 2021
* eed0432 benchmark: Update iree-translate flag for dylib-sync (#7207)
* 4247e98 Fix asan failure in CUDA backend (#7206)
* 5c49556 [NFC] Tidy elementwise op fusion control function a bit (#7204)
* a547965 Separate HAL driver registration with the threading (#7184)
* 3523ed2 Roll benchmark to fix compile warnings in clang-13 (#7202)
* d3ef446 missing #include <limits> (#7193)
* 46fca30 Update docs requirements to include IREE.
* 48a4330 Remove old bindings/python/iree/compiler API. (#7201)
* 6f61506 [CUDA] Refactor op configuration (#7199)
* 5cd678d Merge pull request #7200 from google/google-to-main
* 5ece918 Revert "[CUDA] Refactor op configuration (#7167)" (#7196)
* 0189f9f [CUDA] Refactor op configuration (#7167)

COPYBARA_INTEGRATE_REVIEW=#7209 from MaheshRavishankar:main-to-google eed0432
PiperOrigin-RevId: 399797756
iree-github-actions-bot pushed a commit that referenced this pull request Sep 29, 2021
* eed0432 benchmark: Update iree-translate flag for dylib-sync (#7207)
* 4247e98 Fix asan failure in CUDA backend (#7206)
* 5c49556 [NFC] Tidy elementwise op fusion control function a bit (#7204)
* a547965 Separate HAL driver registration with the threading (#7184)
* 3523ed2 Roll benchmark to fix compile warnings in clang-13 (#7202)
* d3ef446 missing #include <limits> (#7193)
* 46fca30 Update docs requirements to include IREE.
* 48a4330 Remove old bindings/python/iree/compiler API. (#7201)
* 6f61506 [CUDA] Refactor op configuration (#7199)
* 5cd678d Merge pull request #7200 from google/google-to-main
* 5ece918 Revert "[CUDA] Refactor op configuration (#7167)" (#7196)
* 0189f9f [CUDA] Refactor op configuration (#7167)

PiperOrigin-RevId: 399797756
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup 🧹 hal/cpu Runtime Host/CPU-based HAL backend runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants