forked from pytorch/pytorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add benchmark to Bazel build (pytorch#71412)
Summary: Pull Request resolved: pytorch#71412 This is only in CMake and internal builds right now. Add to Bazel for parity. ghstack-source-id: 150235094 Test Plan: Built and ran locally. Rely on CI to verify. Reviewed By: malfet Differential Revision: D33635743 fbshipit-source-id: b9e5abbef5feabd52c53a9c2b95713b87ce81681 (cherry picked from commit 11700db)
- Loading branch information
1 parent
e9dfc61
commit 4bf8a9b
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
load("@rules_cc//cc:defs.bzl", "cc_binary") | ||
|
||
cc_binary( | ||
name = "intrusive_ptr", | ||
srcs = ["intrusive_ptr_benchmark.cpp"], | ||
tags = ["benchmark"], | ||
deps = [ | ||
"//c10/util:base", | ||
"@google_benchmark//:benchmark", | ||
], | ||
) |