Define a default version where metadata is not used.
| 44 | |
| 45 | // Define a default version where metadata is not used. |
| 46 | StatusOr<std::vector<std::unique_ptr<AotCompilationResult>>> |
| 47 | Compiler::CompileAheadOfTime( |
| 48 | std::unique_ptr<HloModuleGroup> module_group, |
| 49 | const AotCompilationOptions& options, |
| 50 | std::unique_ptr<AotCompilationMetadata>* metadata) { |
| 51 | if (metadata != nullptr) { |
| 52 | return Unimplemented( |
| 53 | "Populating AotCompilationMetadata is not implemented on this " |
| 54 | "compiler."); |
| 55 | } |
| 56 | return CompileAheadOfTime(std::move(module_group), options); |
| 57 | } |
| 58 | |
| 59 | /* static */ std::map<se::Platform::Id, Compiler::CompilerFactory>* |
| 60 | Compiler::GetPlatformCompilerFactories() { |