Skip to content

Commit 4c2267b

Browse files
pytorchbotSS-JIA
andauthored
[ET-VK][ez] Allow Vulkan operator tests to run on devserver and Mac (#11652)
This PR was created by the merge bot to help merge the original PR into the main branch. ghstack PR number: #11648 by @SS-JIA ^ Please use this as the source of truth for the PR details, comments, and reviews ghstack PR base: https://github.com/pytorch/executorch/tree/gh/SS-JIA/243/base ghstack PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/243/head Merge bot PR base: https://github.com/pytorch/executorch/tree/main Merge bot PR head: https://github.com/pytorch/executorch/tree/gh/SS-JIA/243/orig @diff-train-skip-merge cc @SS-JIA @manuelcandales @cbilgin Co-authored-by: Stephen Jia <[email protected]>
1 parent 67b6009 commit 4c2267b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

backends/vulkan/test/op_tests/targets.bzl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID")
22
load("@fbsource//xplat/caffe2:pt_defs.bzl", "get_pt_ops_deps")
33
load("@fbsource//xplat/caffe2:pt_ops.bzl", "pt_operator_library")
44
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
5+
load(
6+
"@fbsource//xplat/executorch/backends/vulkan:targets.bzl",
7+
"get_platforms",
8+
)
59

610
def define_test_targets(test_name, extra_deps = [], src_file = None, is_fbcode = False):
711
deps_list = [
@@ -20,7 +24,7 @@ def define_test_targets(test_name, extra_deps = [], src_file = None, is_fbcode =
2024
compiler_flags = [
2125
"-Wno-unused-variable",
2226
],
23-
platforms = [ANDROID],
27+
platforms = get_platforms(),
2428
define_static_target = False,
2529
deps = deps_list,
2630
)
@@ -135,7 +139,7 @@ def define_common_targets(is_fbcode = False):
135139
"//executorch/backends/vulkan:vulkan_graph_runtime",
136140
runtime.external_dep_location("libtorch"),
137141
],
138-
platforms = [ANDROID],
142+
platforms = get_platforms(),
139143
)
140144

141145
define_test_targets(

0 commit comments

Comments
 (0)