Skip to content

[XLA:CPU] Release memory after compilation in HLO benchmarks.#44230

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_931186564
Open

[XLA:CPU] Release memory after compilation in HLO benchmarks.#44230
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_931186564

Conversation

@copybara-service

Copy link
Copy Markdown

[XLA:CPU] Release memory after compilation in HLO benchmarks.

Compiling HLOs can use a significant amount of memory. To avoid OOMs when running benchmarks with many iterations, this change releases the memory associated with the compiled executable and purges per-thread caches to the OS after each compilation, outside of the timed benchmark loop.

@copybara-service copybara-service Bot force-pushed the test_931186564 branch 5 times, most recently from ff6d734 to 2ab29f4 Compare June 13, 2026 01:42
Compiling HLOs can use a significant amount of memory. To avoid OOMs when running benchmarks with many iterations, this change releases the memory associated with the compiled executable and purges per-thread caches to the OS after each compilation, outside of the timed benchmark loop.

PiperOrigin-RevId: 931186564
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.

1 participant