File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
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
+ #pragma once
10
+
11
+ namespace torch {
12
+ namespace executor {
13
+
14
+ /* *
15
+ * BackendContext will be used to inject run time context.
16
+ * The current plan is to add temp allocator and event tracer (for profiling) as
17
+ * part of the runtime context.
18
+ */
19
+ class BackendRuntimeContext final {};
20
+
21
+ } // namespace executor
22
+ } // namespace torch
Original file line number Diff line number Diff line change @@ -7,6 +7,17 @@ def define_common_targets():
7
7
TARGETS and BUCK files that call this function.
8
8
"""
9
9
10
+ runtime .cxx_library (
11
+ name = "backend_runtime_context" ,
12
+ exported_headers = [
13
+ "backend_runtime_context.h" ,
14
+ ],
15
+ visibility = [
16
+ "//executorch/..." ,
17
+ "@EXECUTORCH_CLIENTS" ,
18
+ ],
19
+ )
20
+
10
21
for aten_mode in (True , False ):
11
22
aten_suffix = ("_aten" if aten_mode else "" )
12
23
runtime .cxx_library (
@@ -23,6 +34,7 @@ def define_common_targets():
23
34
"@EXECUTORCH_CLIENTS" ,
24
35
],
25
36
exported_deps = [
37
+ "//executorch/runtime/backend:backend_runtime_context" ,
26
38
"//executorch/runtime/core:core" ,
27
39
"//executorch/runtime/core:evalue" + aten_suffix ,
28
40
"//executorch/runtime/core:memory_allocator" ,
You can’t perform that action at this time.
0 commit comments