Files
pytorch/tools/bazel.bzl
mikey dagitses 2efee542fd create a c10 test suite (#71907)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71907

This allows us to refactor the c10 tests without anything downstream
needing to be concerned about it.
ghstack-source-id: 150235098

Test Plan: This ought to be a no-op, rely on CI to validate.

Reviewed By: malfet

Differential Revision: D33815403

fbshipit-source-id: d358d6e8b1b45b62cef73bdbfd9c7709a7075c42
(cherry picked from commit a554dbe55a28516c8db2287552194860be87f2f0)
2022-03-02 11:33:22 +00:00

21 lines
770 B
Python

load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
load("@rules_cuda//cuda:defs.bzl", "requires_cuda_enabled")
load("//c10/macros:cmake_configure_file.bzl", "cmake_configure_file")
load("//tools/config:defs.bzl", "if_cuda")
# Rules implementation for the Bazel build system. Since the common
# build structure aims to replicate Bazel as much as possible, most of
# the rules simply forward to the Bazel definitions.
rules = struct(
cc_binary = cc_binary,
cc_library = cc_library,
cc_test = cc_test,
cmake_configure_file = cmake_configure_file,
filegroup = native.filegroup,
glob = native.glob,
if_cuda = if_cuda,
requires_cuda_enabled = requires_cuda_enabled,
select = select,
test_suite = native.test_suite,
)