Skip to content

Support dump/load of autotune results in new cache format#46189

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

Support dump/load of autotune results in new cache format#46189
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_953447249

Conversation

@copybara-service

Copy link
Copy Markdown

Support dump/load of autotune results in new cache format

Implement GpuCompiler::LoadAutotuneResultsFromFile and
GpuCompiler::SerializeAutotuneResultsToFile to support the new autotune
cache format when xla_gpu_use_new_autotune_cache_format is enabled.

When the flag is set:

  • Loading reads autotuner::AutotuneCache proto (binary or textproto) and
    populates InMemoryStore.
  • Dumping reads entries from InMemoryStore and serializes them to
    autotuner::AutotuneCache proto.

Parameterize PersistedAutotuningTest in gpu_compiler_test to verify both
legacy and new formats.

Implement GpuCompiler::LoadAutotuneResultsFromFile and
GpuCompiler::SerializeAutotuneResultsToFile to support the new autotune
cache format when xla_gpu_use_new_autotune_cache_format is enabled.

When the flag is set:
- Loading reads autotuner::AutotuneCache proto (binary or textproto) and
  populates InMemoryStore.
- Dumping reads entries from InMemoryStore and serializes them to
  autotuner::AutotuneCache proto.

Parameterize PersistedAutotuningTest in gpu_compiler_test to verify both
legacy and new formats.

PiperOrigin-RevId: 953447249
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