Skip to content

Commit 2407647

Browse files
authored
Put extension/parallel buck files back (#9232)
I shouldn't have deleted these, for the same reason I left thread_parallel.h behind.
1 parent 54c3f78 commit 2407647

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

extension/parallel/TARGETS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Any targets that should be shared between fbcode and xplat must be defined in
2+
# targets.bzl. This file can contain fbcode-only targets.
3+
4+
load(":targets.bzl", "define_common_targets")
5+
6+
oncall("executorch")
7+
8+
define_common_targets()

extension/parallel/targets.bzl

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_aten_mode_options", "runtime")
2+
3+
def define_common_targets():
4+
"""Defines targets that should be shared between fbcode and xplat.
5+
6+
The directory containing this targets.bzl file should also contain both
7+
TARGETS and BUCK files that call this function.
8+
"""
9+
10+
runtime.cxx_library(
11+
name = "thread_parallel",
12+
exported_headers = [
13+
"thread_parallel.h",
14+
],
15+
visibility = [
16+
"//executorch/...",
17+
"@EXECUTORCH_CLIENTS",
18+
],
19+
deps = [
20+
"//executorch/runtime/kernel:thread_parallel_interface",
21+
],
22+
)

0 commit comments

Comments
 (0)