Skip to content

Caching TargetBackends and their flags. - #6856

Merged
benvanik merged 3 commits into
mainfrom
benvanik-shared-target-backend
Aug 25, 2021
Merged

benvanik merged 3 commits into
mainfrom
benvanik-shared-target-backend

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

This reduces a lot of churn - especially for things like LLVM target options queries (which make syscalls to get the current host CPU architecture!) and is just cleaner overall. The target backend registry still needs to die but this will hold us over a bit longer.

@benvanik benvanik added compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) performance ⚡ Performance/optimization related work across the compiler and runtime labels Aug 25, 2021
@benvanik
benvanik requested a review from ScottTodd August 25, 2021 04:52
@google-cla google-cla Bot added the cla: yes label Aug 25, 2021
@benvanik
benvanik marked this pull request as ready for review August 25, 2021 04:56
@benvanik
benvanik force-pushed the benvanik-shared-target-backend branch from 816bc13 to 091f332 Compare August 25, 2021 14:19
Base automatically changed from benvanik-move-target-backend to main August 25, 2021 16:11
This shouldn't even be needed, but if it is it should be in the right
place.
Unlike gflags the LLVM flags don't really change once set.
Still not good because each alias has its own copy, but baby steps.
Reduces the number of times we alloc (and setup options) a few thousand
times on the bert training model.
@benvanik
benvanik force-pushed the benvanik-shared-target-backend branch from 091f332 to ba9a441 Compare August 25, 2021 16:26
@benvanik
benvanik enabled auto-merge August 25, 2021 16:26
@benvanik
benvanik merged commit 7660e49 into main Aug 25, 2021
@benvanik
benvanik deleted the benvanik-shared-target-backend branch August 25, 2021 17:14
@hanhanW hanhanW mentioned this pull request Aug 25, 2021
copybara-service Bot pushed a commit that referenced this pull request Aug 25, 2021
* 30463f1 Adding #util.composite attribute. (#6854)
* 7a1c579 Implement function.py return type coercion (#6832)
* d90f0fc Remove PromoteTensorLoads pass, convert ExtractOp in TensorToFlow. (#6852)
* 7fa8c20 Update SwiftShader to 2021-08-25 (#6859)
* a328761 Rename Bazel repo iree_vulkan_headers to vulkan_headers (#6862)
* 7660e49 Merge pull request #6856 from google/benvanik-shared-target-backend
* ebc5eb5 Removing the pipeline caching during executable translation. (#6855)
* 2fb7a8d Reapply "Update TFLite concrete function conversion codes" (#6800)
* ce7b475 NFC: Merge ConvertToFlow passes into dedicated before/after passes. (#6850)
* 9fce2d6 Support f32 in the VM by default in the compiler. (#6744)
* b6baea9 Support global ref ops and fix passing of refs on function boundaries in the C..
* 4b5d2ed Bump flatcc version (#6853)
* c8a8f5d Add e2e tests for mhlo.bitcast_convert (#6846)

COPYBARA_INTEGRATE_REVIEW=#6865 from hanhanW:main-to-google 30463f1
PiperOrigin-RevId: 392952973
iree-github-actions-bot pushed a commit that referenced this pull request Aug 25, 2021
* 30463f1 Adding #util.composite attribute. (#6854)
* 7a1c579 Implement function.py return type coercion (#6832)
* d90f0fc Remove PromoteTensorLoads pass, convert ExtractOp in TensorToFlow. (#6852)
* 7fa8c20 Update SwiftShader to 2021-08-25 (#6859)
* a328761 Rename Bazel repo iree_vulkan_headers to vulkan_headers (#6862)
* 7660e49 Merge pull request #6856 from google/benvanik-shared-target-backend
* ebc5eb5 Removing the pipeline caching during executable translation. (#6855)
* 2fb7a8d Reapply "Update TFLite concrete function conversion codes" (#6800)
* ce7b475 NFC: Merge ConvertToFlow passes into dedicated before/after passes. (#6850)
* 9fce2d6 Support f32 in the VM by default in the compiler. (#6744)
* b6baea9 Support global ref ops and fix passing of refs on function boundaries in the C..
* 4b5d2ed Bump flatcc version (#6853)
* c8a8f5d Add e2e tests for mhlo.bitcast_convert (#6846)

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

Labels

compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) performance ⚡ Performance/optimization related work across the compiler and runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants