Skip to content

Commit 75bfda3

Browse files
cccclaifacebook-github-bot
authored andcommitted
Remove preprocess xplat build
Summary: Fix the error ``` BUILD FAILED Error running analysis for `fbsource//xplat/executorch/backends/qualcomm:preprocess (cfg:linux-x86_64-fbcode-platform010-clang15-no-san#5d1c5fc41fddc9ad)` Caused by: 0: Error in configured node dependency, dependency chain follows (-> indicates depends on, ^ indicates same configuration as previous): fbsource//xplat/executorch/backends/qualcomm:preprocess (cfg:linux-x86_64-fbcode-platform010-clang15-no-san#5d1c5fc41fddc9ad) -> fbsource//xplat/executorch/backends/qualcomm/passes:passes (^) 1: looking up unconfigured target node `fbsource//xplat/executorch/backends/qualcomm/passes:passes` 2: Error loading targets in package `fbsource//xplat/executorch/backends/qualcomm/passes` for target `fbsource//xplat/executorch/backends/qualcomm/passes:passes` 3: package `fbsource//xplat/executorch/backends/qualcomm/passes:` does not exist missing `BUCK` file (also missing alternatives `BUCK.v2`, `BUCK`) ``` In https://www.internalfb.com/sandcastle/workflow/941252322124876986/artifact/actionlog.941252322206237690.stdout.1?selectedLines=622-633-1-77 Differential Revision: D63587929
1 parent fbcd332 commit 75bfda3

File tree

4 files changed

+29
-39
lines changed

4 files changed

+29
-39
lines changed

backends/qualcomm/TARGETS

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
12
load(":targets.bzl", "define_common_targets")
23

34
oncall("executorch")
45

56
define_common_targets()
7+
8+
runtime.python_library(
9+
name = "preprocess",
10+
srcs = ["qnn_preprocess.py"],
11+
visibility = [
12+
"//executorch/backends/qualcomm/...",
13+
"@EXECUTORCH_CLIENTS",
14+
],
15+
deps = [
16+
"//executorch/backends/qualcomm/passes:passes",
17+
],
18+
)

backends/qualcomm/passes/TARGETS

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
1-
load(":targets.bzl", "define_common_targets")
1+
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
22

33
oncall("executorch")
44

5-
define_common_targets()
5+
runtime.python_library(
6+
name = "passes",
7+
srcs = glob([
8+
"*.py",
9+
]),
10+
visibility = [
11+
"@EXECUTORCH_CLIENTS",
12+
],
13+
deps = [
14+
"//executorch/backends/transforms:addmm_mm_to_linear",
15+
"//executorch/exir/backend:backend_details",
16+
"//executorch/exir/backend:compile_spec_schema",
17+
],
18+
)

backends/qualcomm/passes/targets.bzl

Lines changed: 0 additions & 22 deletions
This file was deleted.

backends/qualcomm/targets.bzl

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ load(
22
"@fbsource//tools/build_defs:default_platform_defs.bzl",
33
"ANDROID",
44
)
5-
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
65
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
76

8-
97
# Construct the input and output file names. All input and output files rely on scalar_type file.
108
SCHEMA_NAME = "schema"
119

@@ -56,6 +54,7 @@ def define_common_targets():
5654
[OUTPUT_SCHEMA_HEADER],
5755
OUTPUT_SCHEMA_HEADER,
5856
)
57+
5958
# Header-only library target with the generate executorch program schema header.
6059
runtime.cxx_library(
6160
name = "schema",
@@ -77,7 +76,6 @@ def define_common_targets():
7776
platforms = [ANDROID],
7877
)
7978

80-
8179
runtime.cxx_library(
8280
name = "qnn_executorch_backend",
8381
srcs = [],
@@ -94,15 +92,3 @@ def define_common_targets():
9492
":schema",
9593
],
9694
)
97-
98-
runtime.python_library(
99-
name = "preprocess",
100-
srcs = ["qnn_preprocess.py"],
101-
deps = [
102-
"//executorch/backends/qualcomm/passes:passes",
103-
],
104-
visibility = [
105-
"//executorch/backends/qualcomm/...",
106-
"@EXECUTORCH_CLIENTS",
107-
],
108-
)

0 commit comments

Comments
 (0)