BUILD 707 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
load("//brain/megbrain/dnn:flags.bzl", "megdnn_opts")
load("@megvii3//tools/build_rules:bangc.bzl", "bangc_library")

package(default_visibility = ["//brain/megbrain/dnn:__subpackages__"])

bangc_library(
    name = "bangc_kernels",
    srcs = glob([
        "**/*.mlu",
    ]) + [
        "//brain/megbrain/dnn:src/common/utils.cuh",
    ],
    hdrs = glob([
        "**/*.mlu.h",
    ]),
    deps = [
        "//brain/megbrain/dnn:public_headers",
18
        "//brain/megbrain/sdk/build_config",
19 20 21 22 23 24 25 26 27 28 29 30 31 32
    ],
    copts = megdnn_opts + [
        "-Ibrain/megbrain/dnn",
    ],
)

filegroup(
    name = "cambricon_backend_files",
    srcs = glob([
        "**/*.cpp",
        "**/*.h",
        "**/*.hpp",
    ]),
)