xref: /aosp_15_r20/external/executorch/runtime/platform/runtime.cpp (revision 523fa7a60841cd1ecfb9cc4201f1ca8b03ed023a)
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  * All rights reserved.
4  *
5  * This source code is licensed under the BSD-style license found in the
6  * LICENSE file in the root directory of this source tree.
7  */
8 
9 #include <executorch/runtime/platform/profiler.h>
10 #include <executorch/runtime/platform/runtime.h>
11 
12 #include <executorch/runtime/platform/platform.h>
13 
14 namespace executorch {
15 namespace runtime {
16 
17 /**
18  * Initialize the ExecuTorch global runtime.
19  */
runtime_init()20 void runtime_init() {
21   et_pal_init();
22   EXECUTORCH_PROFILE_CREATE_BLOCK("default");
23 }
24 
25 } // namespace runtime
26 } // namespace executorch
27