diff --git a/tensorflow/stream_executor/stream_executor_internal.h b/tensorflow/stream_executor/stream_executor_internal.h index 36eabda459c..65bd44b8601 100644 --- a/tensorflow/stream_executor/stream_executor_internal.h +++ b/tensorflow/stream_executor/stream_executor_internal.h @@ -374,6 +374,11 @@ class StreamExecutorInterface { return absl::nullopt; } + // Clears the compilation cache from volatile memory. Returns OK if no + // compilation cache exists or if clearing the compilation cache is + // unsupported. Caches in non-volatile storage are unaffected. + virtual port::Status FlushCompilationCache() { return port::Status::OK(); } + private: SE_DISALLOW_COPY_AND_ASSIGN(StreamExecutorInterface); };