-
Notifications
You must be signed in to change notification settings - Fork 130
/
BUILD.bazel
108 lines (99 loc) · 2.32 KB
/
BUILD.bazel
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
load("@rules_python//python:defs.bzl", "py_binary", "py_test")
load("@rules_cc//cc:defs.bzl", "cc_binary")
py_binary(
name = "brute_force",
srcs = ["brute_force.py"],
visibility = ["//visibility:public"],
deps = [
"//compiler_gym/envs",
"//compiler_gym/service/proto",
"//compiler_gym/util",
"//compiler_gym/util/flags",
],
)
py_test(
name = "brute_force_test",
srcs = ["brute_force_test.py"],
deps = [
":brute_force",
"//compiler_gym",
"//tests:test_main",
],
)
py_binary(
name = "explore",
srcs = ["explore.py"],
visibility = ["//visibility:public"],
deps = [
"//compiler_gym/envs",
"//compiler_gym/service/proto",
"//compiler_gym/util",
"//compiler_gym/util/flags",
],
)
py_test(
name = "explore_test",
srcs = ["explore_test.py"],
deps = [
":explore",
"//compiler_gym",
"//compiler_gym/util/flags",
"//tests:test_main",
],
)
py_binary(
name = "tabular_q",
srcs = ["tabular_q.py"],
visibility = ["//visibility:public"],
deps = [
"//compiler_gym",
"//compiler_gym/util",
"//compiler_gym/util/flags",
],
)
py_test(
name = "tabular_q_test",
timeout = "short",
srcs = ["tabular_q_test.py"],
deps = [
":tabular_q",
"//compiler_gym/util",
"//tests:test_main",
"//tests/pytest_plugins:common",
],
)
py_binary(
name = "random_walk",
srcs = ["random_walk.py"],
visibility = ["//visibility:public"],
deps = [
"//compiler_gym/envs",
"//compiler_gym/util",
"//compiler_gym/util/flags",
],
)
py_test(
name = "random_walk_test",
srcs = ["random_walk_test.py"],
deps = [
":random_walk",
"//compiler_gym/util",
"//tests:test_main",
],
)
cc_binary(
name = "RandomSearch",
srcs = ["RandomSearch.cc"],
deps = [
"//compiler_gym/envs/llvm/service:LlvmSession",
"//compiler_gym/service/runtime:CompilerGymService",
"@boost//:filesystem",
"@gflags",
"@glog",
"@magic_enum",
],
)