Skip to content

Commit 9b41e3b

Browse files
committed
[ET-VK][ez] Allow Vulkan operator tests to run on devserver and Mac
## Context #11547 was landed recently which restricted vulkan operator tests to the `ANDROID` platform. Simply update to use the utility function `get_platforms()` so that the tests can run everywhere the vulkan delegate can be built. Differential Revision: [D76620647](https://our.internmc.facebook.com/intern/diff/D76620647/) ghstack-source-id: 290326556 Pull Request resolved: #11648
1 parent d660bde commit 9b41e3b

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

backends/vulkan/test/op_tests/targets.bzl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID")
1+
load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "CXX")
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)