[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XLA:FFI] Reduce the cost of FFI CallFrame creation and destruction. #70519

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

copybara-service[bot]
Copy link
@copybara-service copybara-service bot commented Jun 27, 2024

[XLA:FFI] Reduce the cost of FFI CallFrame creation and destruction.

This change reduces the cost of custom calls that involve a large number of argument and return buffers.

  • Call std::vector::reserve before populating the arguments and returns list.

  • Eliminate the copying of dims vectors from CallFrameBuilder::Buffer into CallFrame::Buffer.

Reverts 49f4d90

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#13106 from buptzyb:asyncpool f25bd029f1308b23ab8f91876ae967fcfad29890

This change reduces the cost of custom calls that involve a large number of argument and return buffers.

- Call `std::vector::reserve` before populating the arguments and returns list.

- Eliminate the copying of dims vectors from `CallFrameBuilder::Buffer` into `CallFrame::Buffer`.

Reverts 49f4d90

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#13106 from buptzyb:asyncpool f25bd029f1308b23ab8f91876ae967fcfad29890
PiperOrigin-RevId: 647321728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant