-
Notifications
You must be signed in to change notification settings - Fork 80
Expand file tree
/
Copy pathBUILD
More file actions
45 lines (37 loc) · 1.16 KB
/
BUILD
File metadata and controls
45 lines (37 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
load("@repository_configuration//:repository_config.bzl", "PROFILER_REQUIREMENTS_FILE")
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
# Description
# XProf, ML Performance Toolbox (for TPU, GPU, CPU).
licenses(["notice"])
exports_files(["LICENSE"]) # Needed for internal repo.
exports_files(["README.md"]) # Needed for pip package description
exports_files([
"tsconfig.json",
"rollup.config.js",
])
py_library(
name = "expect_tensorflow_installed",
# This is a dummy rule used as a tensorflow dependency in open-source.
# We expect tensorflow to already be installed on the system, e.g. via
# `pip install tensorflow`
visibility = ["//visibility:public"],
)
compile_pip_requirements(
name = "requirements",
extra_args = [
"--allow-unsafe",
"--build-isolation",
"--rebuild",
],
generate_hashes = True,
requirements_in = "requirements.in",
requirements_txt = PROFILER_REQUIREMENTS_FILE,
)
platform(
name = "x64_windows-clang-cl",
constraint_values = [
"@platforms//cpu:x86_64",
"@platforms//os:windows",
"@bazel_tools//tools/cpp:clang-cl",
],
)