Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions extension/llm/custom_ops/BUCK
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbcode_macros//build_defs:cpp_benchmark.bzl", "cpp_benchmark")
oncall("executorch")
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain xplat-only targets.
Expand Down Expand Up @@ -89,3 +90,16 @@ fbcode_target(_kind = runtime.python_test,
"//caffe2:torch",
],
)

fbcode_target(_kind = cpp_benchmark,
name = "bench_sdpa",
srcs = ["bench_sdpa.cpp"],
deps = [
"fbsource//third-party/benchmark:benchmark",
"//executorch/extension/llm/custom_ops:custom_ops_mkl_noomp",
"//executorch/extension/threadpool:threadpool",
"//executorch/kernels/optimized:libblas",
"//executorch/runtime/core/exec_aten:lib",
"//executorch/runtime/core/exec_aten/testing_util:tensor_util",
],
)
Loading
Loading