-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTARGETS
More file actions
75 lines (70 loc) · 1.58 KB
/
TARGETS
File metadata and controls
75 lines (70 loc) · 1.58 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
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
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
load("//tools/build/buck:nvcc_flags.bzl", "get_nvcc_arch_args")
cpp_library(
name = "cutlass_kernel",
srcs = [
"cutlass_kernel.cu",
],
headers = [
"cutlass_kernel.h",
],
nvcc_flags = get_nvcc_arch_args(),
deps = [
"fbsource//third-party/cutlass-3:cutlass-3",
],
)
cpp_library(
name = "cutlass",
srcs = [
"cutlass.cpp",
],
supports_python_dlopen = True,
deps = [
":cutlass_kernel",
"//caffe2:torch-cpp", # @manual
"//caffe2:torch_extension", # @manual
],
)
python_library(
name = "triton_kernel",
srcs = [
"triton_kernel.py",
],
deps = [
"//caffe2:torch",
],
)
python_binary(
name = "test",
srcs = [
"test.py",
],
cpp_deps = [
":cutlass",
],
main_function = "scripts.bertrand.tf32_gemm.test.main",
par_style = "xar",
deps = [
":triton_kernel",
"//caffe2:torch",
],
)
python_binary(
name = "benchmark",
srcs = [
"benchmark.py",
],
cpp_deps = [
":cutlass",
],
main_function = "scripts.bertrand.tf32_gemm.benchmark.main",
par_style = "xar",
deps = [
"fbsource//third-party/pypi/matplotlib:matplotlib", # @manual
"fbsource//third-party/pypi/pandas:pandas", # @manual
":triton_kernel",
"//caffe2:torch",
],
)