We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00ea1b7 commit d825fd4Copy full SHA for d825fd4
runtime/kernel/targets.bzl
@@ -3,7 +3,10 @@ load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "get_aten_mode_opt
3
def _operator_registry_preprocessor_flags():
4
max_kernel_num = native.read_config("executorch", "max_kernel_num", None)
5
if max_kernel_num != None:
6
- return ["-DMAX_KERNEL_NUM=" + max_kernel_num]
+ return select({
7
+ "DEFAULT": ["-DMAX_KERNEL_NUM=" + max_kernel_num],
8
+ "ovr_config//build_mode/constraints:arvr_is_host_platform": []
9
+ })
10
elif not runtime.is_oss:
11
return select({
12
"DEFAULT": [],
0 commit comments