Skip to content

Replacing std::vector use with a simple stack/heap allocated array. - #5816

Merged
benvanik merged 1 commit into
mainfrom
benvanik-vulkan-allocs
May 10, 2021
Merged

benvanik merged 1 commit into
mainfrom
benvanik-vulkan-allocs

Conversation

@benvanik

@benvanik benvanik commented May 9, 2021

Copy link
Copy Markdown
Collaborator

The absl::InlinedVector->std::vector change introduced an alloc per barrier recorded. This adds a fixed-size stack/heap array (as that's our common usage of these stack vectors) and returns to 0 allocations during command buffer recording in the steady state.

image

@benvanik benvanik added performance ⚡ Performance/optimization related work across the compiler and runtime hal/vulkan Runtime Vulkan GPU HAL backend labels May 9, 2021
@benvanik
benvanik requested a review from ScottTodd May 9, 2021 03:31
@google-cla google-cla Bot added the cla: yes label May 9, 2021
@benvanik
benvanik enabled auto-merge (squash) May 9, 2021 03:46
@benvanik
benvanik force-pushed the benvanik-vulkan-allocs branch from 1fc2450 to 25d2cdf Compare May 9, 2021 03:50
@benvanik
benvanik merged commit 66e44e9 into main May 10, 2021
@benvanik
benvanik deleted the benvanik-vulkan-allocs branch May 10, 2021 15:17
@not-jenni not-jenni mentioned this pull request May 10, 2021
copybara-service Bot pushed a commit that referenced this pull request May 11, 2021
* e3ecf22 Add IREE_BUILD_EMBEDDING_SAMPLES to the doc (#5823)
* 50296a9 Fix the ghost emojis on the website (#5824)
* a204da0 Disable printing op on diagnostics in iree_check_test targets. (#5820)
* 052657d Adding rank-0/1 memref -> vm.buffer conversion. (#5817)
* 88424d0 Move check for backends used in simple_embedding (#5818)
* 66e44e9 Replacing std::vector use with a simple stack/heap allocated array. (#5816)
* 893f1a2 Bumping tracy and defining TRACY_NO_FRAME_IMAGE. (#5815)
* d8de378 Workaround conflicting concatenate lowerings with a PatternBenefit. (#5810)
* fb62468 Adding switch default for vulkan tracing time scaling. Fixes #5635.
* 397c4fc Implement python argument decoding for list/tuple/dict nests. (#5811)
* 792cd6d Fix website 404 relative paths and customize the 404.html page. (#5813)
* 038d5f0 Disable printing op on diagnostics in user tools by default. (#5806)
* 4559840 Remove OUT option from iree_cc_[binary/test] (#5696)
* cb0727a Trim README.md and link to our website more prominently. (#5803)
* 0076031 Remap hyperlinks following website migration. (#5805)
* 59c7098 Add simple heuristic to decide if TensorReshape should be folded during fusion..
* dcc38a9 A few CMake config fixes. (#5801)
* 2018009 Specifying (void) for argument-less C functions. (#5793)
* 89746a0 Support linalg.pad_tensor bufferization (#5768)
* 5a58aa4 Removing the use of the SIP signature parsers from the runtime. (#5784)
* 86286d0 Update simple_embedding riscv64 prebuilt (#5794)
* dc9e245 Adding integer/float conversion to the VM. (#5787)
* f96b100 Pass write access token to publish_website workflow. (#5795)

COPYBARA_INTEGRATE_REVIEW=#5826 from not-jenni:main-to-google 4e0a633
PiperOrigin-RevId: 373052493
iree-github-actions-bot pushed a commit that referenced this pull request May 11, 2021
* e3ecf22 Add IREE_BUILD_EMBEDDING_SAMPLES to the doc (#5823)
* 50296a9 Fix the ghost emojis on the website (#5824)
* a204da0 Disable printing op on diagnostics in iree_check_test targets. (#5820)
* 052657d Adding rank-0/1 memref -> vm.buffer conversion. (#5817)
* 88424d0 Move check for backends used in simple_embedding (#5818)
* 66e44e9 Replacing std::vector use with a simple stack/heap allocated array. (#5816)
* 893f1a2 Bumping tracy and defining TRACY_NO_FRAME_IMAGE. (#5815)
* d8de378 Workaround conflicting concatenate lowerings with a PatternBenefit. (#5810)
* fb62468 Adding switch default for vulkan tracing time scaling. Fixes #5635.
* 397c4fc Implement python argument decoding for list/tuple/dict nests. (#5811)
* 792cd6d Fix website 404 relative paths and customize the 404.html page. (#5813)
* 038d5f0 Disable printing op on diagnostics in user tools by default. (#5806)
* 4559840 Remove OUT option from iree_cc_[binary/test] (#5696)
* cb0727a Trim README.md and link to our website more prominently. (#5803)
* 0076031 Remap hyperlinks following website migration. (#5805)
* 59c7098 Add simple heuristic to decide if TensorReshape should be folded during fusion..
* dcc38a9 A few CMake config fixes. (#5801)
* 2018009 Specifying (void) for argument-less C functions. (#5793)
* 89746a0 Support linalg.pad_tensor bufferization (#5768)
* 5a58aa4 Removing the use of the SIP signature parsers from the runtime. (#5784)
* 86286d0 Update simple_embedding riscv64 prebuilt (#5794)
* dc9e245 Adding integer/float conversion to the VM. (#5787)
* f96b100 Pass write access token to publish_website workflow. (#5795)

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

Labels

hal/vulkan Runtime Vulkan GPU HAL backend 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