Skip to content

Commit

Permalink
Enable attn build outside of jit
Browse files Browse the repository at this point in the history
  • Loading branch information
jagrit06 committed Nov 21, 2024
1 parent 292c6cd commit 9702b37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlx/backend/metal/kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ set(STEEL_ATTN_HEADERS
steel/attn/transforms.h
steel/attn/kernels/steel_attention.h)

build_kernel(steel/attn/kernels/steel_attention ${STEEL_ATTN_HEADERS})

if(NOT MLX_METAL_JIT)
build_kernel(arange arange.h)
build_kernel(binary binary.h binary_ops.h)
Expand All @@ -107,7 +109,6 @@ if(NOT MLX_METAL_JIT)
build_kernel(steel/gemm/kernels/steel_gemm_fused ${STEEL_HEADERS})
build_kernel(steel/gemm/kernels/steel_gemm_masked ${STEEL_HEADERS})
build_kernel(steel/gemm/kernels/steel_gemm_splitk ${STEEL_HEADERS})
build_kernel(steel/attn/kernels/steel_attention ${STEEL_ATTN_HEADERS})
build_kernel(gemv_masked steel/utils.h)
endif()

Expand Down

0 comments on commit 9702b37

Please sign in to comment.