-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathBUILD
75 lines (69 loc) · 1.31 KB
/
BUILD
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
package(default_visibility=["//visibility:public"])
load("//:cuda.bzl", "cuda_binary")
cc_library(
name="multiply",
srcs=[
"src/multiply/multiply.cc",
"src/multiply/multiply_cpu.cc"
],
hdrs=[
"include/multiply/multiply.h",
"include/cuda_utils.h"
],
)
# TODO(patwie): typed tests fail
# cc_test(
# name="multiply-test",
# srcs=[
# "test/test_multiply_impl.h",
# "test/test_multiply.cc",
# ],
# copts=[
# "-Iexternal/gtest/include",
# "-Iexternal/gmock/include"
# ],
# deps=[
# ":multiply",
# "@gtest//:gtest",
# ]
# )
cc_binary(
name="multiply-example",
srcs=[
"src/multiply.cc"
],
deps=[
":multiply",
],
)
cuda_binary(
name="sharedmemory-example",
includes=[
"/usr/local/cuda/include",
"."
],
hdrs=[
"include/cuda_utils.h",
"include/cuda_index.h",
"include/test/multiply.h",
],
flags="-std=c++11",
srcs=[
"src/sharedmemory.cu.cc"
],
)
cuda_binary(
name="tune-example",
includes=[
"/usr/local/cuda/include",
"."
],
hdrs=[
"include/cuda_utils.h",
"include/test/multiply.h",
],
flags="-std=c++11",
srcs=[
"src/tune.cu.cc"
],
)