forked from flagos-ai/FlagGems
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
105 lines (86 loc) · 5.12 KB
/
Copy pathCMakeLists.txt
File metadata and controls
105 lines (86 loc) · 5.12 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
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
add_executable(test_triton_pointwise test_triton_pointwise.cpp)
target_link_libraries(test_triton_pointwise
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_pointwise COMMAND test_triton_pointwise)
add_executable(test_triton_reduction test_triton_reduction.cpp)
target_link_libraries(test_triton_reduction
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_reduction COMMAND test_triton_reduction)
add_executable(test_triton_blas test_triton_blas.cpp)
target_link_libraries(test_triton_blas PRIVATE Torch::Torch operators gtest gtest_main)
add_test(NAME test_triton_blas COMMAND test_triton_blas)
add_executable(test_triton_norm test_triton_norm.cpp)
target_link_libraries(test_triton_norm
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_norm COMMAND test_triton_norm)
add_executable(test_triton_rope test_triton_rope.cpp)
target_link_libraries(test_triton_rope
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_rope COMMAND test_triton_rope)
add_executable(test_triton_topk test_triton_topk.cpp)
target_link_libraries(test_triton_topk
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_topk COMMAND test_triton_topk)
add_executable(test_triton_contiguous test_triton_contiguous.cpp)
target_link_libraries(test_triton_contiguous
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_contiguous COMMAND test_triton_contiguous)
add_executable(test_triton_cat test_triton_cat.cpp)
target_link_libraries(test_triton_cat
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_cat COMMAND test_triton_cat)
add_executable(test_triton_zeros_constructor test_triton_tensor_constructor.cpp)
target_link_libraries(test_triton_zeros_constructor
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_zeros_constructor COMMAND test_triton_zeros_constructor)
add_executable(test_triton_bmm test_triton_bmm.cpp)
target_link_libraries(test_triton_bmm
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_bmm COMMAND test_triton_bmm)
add_executable(test_triton_embedding test_triton_embedding.cpp)
target_link_libraries(test_triton_embedding
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_embedding COMMAND test_triton_embedding)
add_executable(test_triton_argmax test_triton_argmax.cpp)
target_link_libraries(test_triton_argmax
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_argmax COMMAND test_triton_argmax)
add_executable(test_triton_div test_triton_div.cpp)
target_link_libraries(test_triton_div PRIVATE Torch::Torch operators gtest gtest_main)
add_test(NAME test_triton_div COMMAND test_triton_div)
add_executable(test_triton_sort test_triton_sort.cpp)
target_link_libraries(test_triton_sort
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_sort COMMAND test_triton_sort)
add_executable(test_triton_exponential_ test_triton_exponential_.cpp)
target_link_libraries(test_triton_exponential_
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_exponential_ COMMAND test_triton_exponential_)
add_executable(test_triton_fill test_triton_fill.cpp)
target_link_libraries(test_triton_fill
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_fill COMMAND test_triton_fill)
add_executable(test_triton_softmax test_triton_softmax.cpp)
target_link_libraries(test_triton_softmax
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main ${Python_LIBRARIES} pybind11::embed)
add_test(NAME test_triton_softmax COMMAND test_triton_softmax)
add_executable(test_triton_reshape_and_cache_flash test_triton_reshape_and_cache_flash.cpp)
target_link_libraries(test_triton_reshape_and_cache_flash
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_reshape_and_cache_flash COMMAND test_triton_reshape_and_cache_flash)
add_executable(test_triton_flash_attn_varlen test_triton_flash_attn_varlen.cpp)
target_link_libraries(test_triton_flash_attn_varlen
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_flash_attn_varlen COMMAND test_triton_flash_attn_varlen)
add_executable(test_triton_rwkv_ka_fusion test_triton_rwkv_ka_fusion.cpp)
target_link_libraries(test_triton_rwkv_ka_fusion
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_rwkv_ka_fusion COMMAND test_triton_rwkv_ka_fusion)
add_executable(test_triton_rwkv_mm_sparsity test_triton_rwkv_mm_sparsity.cpp)
target_link_libraries(test_triton_rwkv_mm_sparsity
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_rwkv_mm_sparsity COMMAND test_triton_rwkv_mm_sparsity)
add_executable(test_triton_copy test_triton_copy.cpp)
target_link_libraries(test_triton_copy
PRIVATE Torch::Torch operators GTest::gtest GTest::gtest_main)
add_test(NAME test_triton_copy COMMAND test_triton_copy)