File tree Expand file tree Collapse file tree 3 files changed +782
-12
lines changed
Expand file tree Collapse file tree 3 files changed +782
-12
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ target_sources(
3939 ${CMAKE_CURRENT_SOURCE_DIR} /reduce/row_reduce.cu
4040 ${CMAKE_CURRENT_SOURCE_DIR} /rms_norm.cu
4141 ${CMAKE_CURRENT_SOURCE_DIR} /rope.cu
42+ ${CMAKE_CURRENT_SOURCE_DIR} /scaled_dot_product_attention.cu
4243 ${CMAKE_CURRENT_SOURCE_DIR} /scan.cu
4344 ${CMAKE_CURRENT_SOURCE_DIR} /slicing.cpp
4445 ${CMAKE_CURRENT_SOURCE_DIR} /softmax.cu
Original file line number Diff line number Diff line change 66
77namespace mlx ::core {
88
9- bool fast::ScaledDotProductAttention::use_fallback (
10- const array& q,
11- const array& k,
12- const array& v,
13- bool has_mask,
14- bool has_arr_mask,
15- bool do_causal,
16- Stream s) {
17- return true ;
18- }
19-
209#define NO_GPU_MULTI (func ) \
2110 void func::eval_gpu ( \
2211 const std::vector<array>& inputs, std::vector<array>& outputs) { \
@@ -53,7 +42,6 @@ NO_GPU_MULTI(Eig)
5342NO_GPU_MULTI (Eigh)
5443
5544namespace fast {
56- NO_GPU (ScaledDotProductAttention)
5745NO_GPU_MULTI (CustomKernel)
5846} // namespace fast
5947
You can’t perform that action at this time.
0 commit comments