mlx_fast_metal_kernel_new function
- @Native<mlx_fast_metal_kernel Function(Pointer<Char>, mlx_vector_string, mlx_vector_string, Pointer<Char>, Pointer<Char>, Bool, Bool)>(ffi.Pointer<ffi.Char>, mlx_vector_string, mlx_vector_string, ffi.Pointer<ffi.Char>, ffi.Pointer<ffi.Char>, ffi.Bool, ffi.Bool)>()
mlx_fast_metal_kernel
mlx_fast_metal_kernel_new(
- Pointer<Char> name,
- mlx_vector_string input_names,
- mlx_vector_string output_names,
- Pointer<Char> source,
- bool ensure_row_contiguous,
- bool atomic_outputs,
)
Implementation
@ffi.Native<
mlx_fast_metal_kernel Function(
ffi.Pointer<ffi.Char>,
mlx_vector_string,
mlx_vector_string,
ffi.Pointer<ffi.Char>,
ffi.Pointer<ffi.Char>,
ffi.Bool,
ffi.Bool,
)
>()
external mlx_fast_metal_kernel mlx_fast_metal_kernel_new(
ffi.Pointer<ffi.Char> name,
mlx_vector_string input_names,
mlx_vector_string output_names,
ffi.Pointer<ffi.Char> source,
ffi.Pointer<ffi.Char> header,
bool ensure_row_contiguous,
bool atomic_outputs,
);