From 3b5bb0044f7074d582225ed894e03b25cef612df Mon Sep 17 00:00:00 2001 From: Lucy Qiu Date: Mon, 3 Jun 2024 14:52:00 -0700 Subject: [PATCH] Add buck file to selective build (#3812) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/3812 So we can build in xplat. Also remove unused dependencies to scalar_utils. Reviewed By: larryliu0820 Differential Revision: D57950299 fbshipit-source-id: f47a69a2edd2c8f66de9d9b42565d1f65d2b98c0 --- kernels/portable/cpu/util/broadcast_util.cpp | 1 - kernels/portable/cpu/util/matmul_ops_util.cpp | 1 - kernels/portable/cpu/util/targets.bzl | 3 --- 3 files changed, 5 deletions(-) diff --git a/kernels/portable/cpu/util/broadcast_util.cpp b/kernels/portable/cpu/util/broadcast_util.cpp index 0f74589a30..1cd7be6ba6 100644 --- a/kernels/portable/cpu/util/broadcast_util.cpp +++ b/kernels/portable/cpu/util/broadcast_util.cpp @@ -6,7 +6,6 @@ * LICENSE file in the root directory of this source tree. */ -#include #include #include #include diff --git a/kernels/portable/cpu/util/matmul_ops_util.cpp b/kernels/portable/cpu/util/matmul_ops_util.cpp index cdb3bb0c33..d7e49d6495 100644 --- a/kernels/portable/cpu/util/matmul_ops_util.cpp +++ b/kernels/portable/cpu/util/matmul_ops_util.cpp @@ -8,7 +8,6 @@ #include -#include #include #include diff --git a/kernels/portable/cpu/util/targets.bzl b/kernels/portable/cpu/util/targets.bzl index a846d07e59..954bcae3a4 100644 --- a/kernels/portable/cpu/util/targets.bzl +++ b/kernels/portable/cpu/util/targets.bzl @@ -44,7 +44,6 @@ def define_common_targets(): compiler_flags = ["-Wno-missing-prototypes"], deps = [ ":repeat_util", - "//executorch/kernels/portable/cpu:scalar_utils", "//executorch/runtime/kernel:kernel_includes", "//executorch/runtime/core/exec_aten/util:tensor_util", ], @@ -114,7 +113,6 @@ def define_common_targets(): deps = [ ":broadcast_util", "//executorch/runtime/kernel:kernel_includes", - "//executorch/kernels/portable/cpu:scalar_utils", ], visibility = ["//executorch/kernels/portable/cpu/...", "//executorch/kernels/optimized/cpu/..."], ) @@ -151,7 +149,6 @@ def define_common_targets(): "transpose_util.h", ], deps = [ - "//executorch/kernels/portable/cpu:scalar_utils", "//executorch/runtime/kernel:kernel_includes", "//executorch/runtime/core/exec_aten/util:tensor_util", ],