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.
extract //c10 to common build system (pytorch#71411)
Summary: Pull Request resolved: pytorch#71411 This library is mostly the same now externally and internally, though internal to Meta we never include cuda in this library, so our select resolves internally unconditionally to false. ghstack-source-id: 150235103 Test Plan: This ought to be a no-op, rely on CI. Reviewed By: malfet Differential Revision: D33635739 fbshipit-source-id: a4d3c7e30995c0e43ecd4c69ad0abb23498ee098 (cherry picked from commit c574a12)
- Loading branch information
1 parent
81437e6
commit e9dfc61
Showing
3 changed files
with
30 additions
and
25 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,24 @@ | ||
def define_targets(rules): | ||
rules.cc_library( | ||
name = "c10", | ||
deps = [ | ||
"//c10/core:CPUAllocator", | ||
"//c10/core:ScalarType", | ||
"//c10/core:alignment", | ||
"//c10/core:alloc_cpu", | ||
"//c10/core:base", | ||
"//c10/macros", | ||
"//c10/mobile:CPUCachingAllocator", | ||
"//c10/mobile:CPUProfilingAllocator", | ||
"//c10/util:TypeCast", | ||
"//c10/util:base", | ||
"//c10/util:typeid", | ||
] + rules.if_cuda( | ||
[ | ||
"//c10/cuda", | ||
"//c10/cuda:Macros", | ||
], | ||
[], | ||
), | ||
visibility = ["//visibility:public"], | ||
) |
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