2024-10-15 23:12:17 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" lang = "en-US" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=11" / >
2025-02-07 04:16:29 +08:00
< meta name = "generator" content = "Doxygen 1.13.2" / >
2024-10-15 23:12:17 +08:00
< meta name = "viewport" content = "width=device-width, initial-scale=1" / >
< title > MLX: mlx/backend/metal/kernels.h File Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< script type = "text/javascript" src = "clipboard.js" > < / script >
< link href = "navtree.css" rel = "stylesheet" type = "text/css" / >
2025-01-10 05:56:20 +08:00
< script type = "text/javascript" src = "navtreedata.js" > < / script >
< script type = "text/javascript" src = "navtree.js" > < / script >
2024-10-15 23:12:17 +08:00
< script type = "text/javascript" src = "resize.js" > < / script >
< script type = "text/javascript" src = "cookie.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/searchdata.js" > < / script >
< script type = "text/javascript" src = "search/search.js" > < / script >
2025-01-10 05:56:20 +08:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() { init_search(); });
/* @license-end */
< / script >
2024-10-15 23:12:17 +08:00
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr id = "projectrow" >
< td id = "projectalign" >
< div id = "projectname" > MLX
< / div >
< / td >
2025-01-10 05:56:20 +08:00
< td > < div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< span id = "MSearchSelect" onmouseover = "return searchBox.OnSearchSelectShow()" onmouseout = "return searchBox.OnSearchSelectHide()" >   < / span >
< input type = "text" id = "MSearchField" value = "" placeholder = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.svg" alt = "" / > < / a >
< / span >
< / div >
< / td >
2024-10-15 23:12:17 +08:00
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
2025-02-07 04:16:29 +08:00
<!-- Generated by Doxygen 1.13.2 -->
2024-10-15 23:12:17 +08:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
< / script >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
$(function() { codefold.init(0); });
/* @license-end */
< / script >
2025-01-10 05:56:20 +08:00
< / div > <!-- top -->
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
2024-10-15 23:12:17 +08:00
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699& dn=expat.txt MIT */
2025-01-10 05:56:20 +08:00
$(function(){initNavTree('kernels_8h.html',''); initResizable(true); });
2024-10-15 23:12:17 +08:00
/* @license-end */
< / script >
2025-01-10 05:56:20 +08:00
< div id = "doc-content" >
2024-10-15 23:12:17 +08:00
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< div id = "MSearchResults" >
< div class = "SRPage" >
< div id = "SRIndex" >
< div id = "SRResults" > < / div >
< div class = "SRStatus" id = "Loading" > Loading...< / div >
< div class = "SRStatus" id = "Searching" > Searching...< / div >
< div class = "SRStatus" id = "NoMatches" > No Matches< / div >
< / div >
< / div >
< / div >
< / div >
< div class = "header" >
< div class = "summary" >
< a href = "#namespaces" > Namespaces< / a > |
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" > < div class = "title" > kernels.h File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include < fmt/format.h> < / code > < br / >
< code > #include " < a class = "el" href = "array_8h_source.html" > mlx/array.h< / a > " < / code > < br / >
< code > #include " < a class = "el" href = "backend_2metal_2device_8h_source.html" > mlx/backend/metal/device.h< / a > " < / code > < br / >
< / div >
< p > < a href = "kernels_8h_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "namespaces" name = "namespaces" > < / a >
Namespaces< / h2 > < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx.html" > mlx< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > namespace   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html" > mlx::core< / a > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a id = "func-members" name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a76f614e9956a6ca05a9be4db5a483446" id = "r_a76f614e9956a6ca05a9be4db5a483446" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a76f614e9956a6ca05a9be4db5a483446" > mlx::core::get_arange_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out)< / td > < / tr >
< tr class = "separator:a76f614e9956a6ca05a9be4db5a483446" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:afbb085188b563a54606d84f87a9bf5a6" id = "r_afbb085188b563a54606d84f87a9bf5a6" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#afbb085188b563a54606d84f87a9bf5a6" > mlx::core::get_unary_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > in_type, < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > out_type, const std::string op)< / td > < / tr >
2024-10-19 03:13:44 +08:00
< tr class = "separator:afbb085188b563a54606d84f87a9bf5a6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a4decd4a07d91487e6903f6e3c8b7513a" id = "r_a4decd4a07d91487e6903f6e3c8b7513a" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a4decd4a07d91487e6903f6e3c8b7513a" > mlx::core::get_binary_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > in_type, < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > out_type, const std::string op)< / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "separator:a4decd4a07d91487e6903f6e3c8b7513a" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a4e809746f48e5dcf7fa63215d3f5e33e" id = "r_a4e809746f48e5dcf7fa63215d3f5e33e" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a4e809746f48e5dcf7fa63215d3f5e33e" > mlx::core::get_binary_two_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > in_type, < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > out_type, const std::string op)< / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "separator:a4e809746f48e5dcf7fa63215d3f5e33e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:a54eb3b65375022428aab5f810e40624b" id = "r_a54eb3b65375022428aab5f810e40624b" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a54eb3b65375022428aab5f810e40624b" > mlx::core::get_ternary_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > type, const std::string op)< / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "separator:a54eb3b65375022428aab5f810e40624b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a05a220cff45f12439fde775983c6df78" id = "r_a05a220cff45f12439fde775983c6df78" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a05a220cff45f12439fde775983c6df78" > mlx::core::get_copy_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & in, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out)< / td > < / tr >
< tr class = "separator:a05a220cff45f12439fde775983c6df78" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2025-01-10 05:56:20 +08:00
< tr class = "memitem:addb29b3e6771875f2aecd035ed560461" id = "r_addb29b3e6771875f2aecd035ed560461" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#addb29b3e6771875f2aecd035ed560461" > mlx::core::get_dynamic_copy_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & in, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out)< / td > < / tr >
< tr class = "separator:addb29b3e6771875f2aecd035ed560461" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:a35a412f688d79eb47e42d20a7c8650ee" id = "r_a35a412f688d79eb47e42d20a7c8650ee" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a35a412f688d79eb47e42d20a7c8650ee" > mlx::core::get_softmax_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, bool precise, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out)< / td > < / tr >
< tr class = "separator:a35a412f688d79eb47e42d20a7c8650ee" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aeefaff208444d3fa61ecc0946fe1de5f" id = "r_aeefaff208444d3fa61ecc0946fe1de5f" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#aeefaff208444d3fa61ecc0946fe1de5f" > mlx::core::get_scan_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, bool reverse, bool inclusive, const std::string & reduce_type, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & in, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out)< / td > < / tr >
< tr class = "separator:aeefaff208444d3fa61ecc0946fe1de5f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a84ebe6275218070f0ea320f126f64e22" id = "r_a84ebe6275218070f0ea320f126f64e22" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a84ebe6275218070f0ea320f126f64e22" > mlx::core::get_sort_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & in, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, int bn, int tn)< / td > < / tr >
< tr class = "separator:a84ebe6275218070f0ea320f126f64e22" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:afb57825bb763050cc9a9d194aa41ac36" id = "r_afb57825bb763050cc9a9d194aa41ac36" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#afb57825bb763050cc9a9d194aa41ac36" > mlx::core::get_mb_sort_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & in, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & idx, int bn, int tn)< / td > < / tr >
< tr class = "separator:afb57825bb763050cc9a9d194aa41ac36" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-11-23 04:24:16 +08:00
< tr class = "memitem:ae0470605dc819efeb6510183619f0299" id = "r_ae0470605dc819efeb6510183619f0299" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#ae0470605dc819efeb6510183619f0299" > mlx::core::get_reduce_init_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const std::string & func_name, const std::string & op_name, const < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > & out_type)< / td > < / tr >
< tr class = "separator:ae0470605dc819efeb6510183619f0299" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1be32ba7d67137dde7ac191dfe83ff49" id = "r_a1be32ba7d67137dde7ac191dfe83ff49" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a1be32ba7d67137dde7ac191dfe83ff49" > mlx::core::get_reduce_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const std::string & func_name, const std::string & op_name, const < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > & in_type, const < a class = "el" href = "structmlx_1_1core_1_1_dtype.html" > Dtype< / a > & out_type, const std::string & idx_t, int ndim=-1, int bm=-1, int bn=-1)< / td > < / tr >
< tr class = "separator:a1be32ba7d67137dde7ac191dfe83ff49" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "memitem:a84fa8e0aee321a9d614433a0b933103b" id = "r_a84fa8e0aee321a9d614433a0b933103b" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a84fa8e0aee321a9d614433a0b933103b" > mlx::core::get_steel_gemm_fused_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const std::string & hash_name, const < a class = "el" href = "namespacemlx_1_1core_1_1metal.html#a616e09a1ef321d527770721cef264c54" > metal::MTLFCList< / a > & func_consts, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, bool transpose_a, bool transpose_b, int bm, int bn, int bk, int wm, int wn)< / td > < / tr >
< tr class = "separator:a84fa8e0aee321a9d614433a0b933103b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af48c6f2f72b61dbd6766e4f5fea85df5" id = "r_af48c6f2f72b61dbd6766e4f5fea85df5" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#af48c6f2f72b61dbd6766e4f5fea85df5" > mlx::core::get_steel_gemm_splitk_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & in, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, bool transpose_a, bool transpose_b, int bm, int bn, int bk, int wm, int wn, bool mn_aligned, bool k_aligned)< / td > < / tr >
< tr class = "separator:af48c6f2f72b61dbd6766e4f5fea85df5" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a195b86cad5bb99aa1bcd23952305af6b" id = "r_a195b86cad5bb99aa1bcd23952305af6b" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a195b86cad5bb99aa1bcd23952305af6b" > mlx::core::get_steel_gemm_splitk_accum_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & in, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, bool axbpy)< / td > < / tr >
< tr class = "separator:a195b86cad5bb99aa1bcd23952305af6b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab5f60614e965144b451930fdf935e08d" id = "r_ab5f60614e965144b451930fdf935e08d" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#ab5f60614e965144b451930fdf935e08d" > mlx::core::get_steel_gemm_masked_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, const std::optional< < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > > & mask_out, const std::optional< < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > > & mask_op, bool transpose_a, bool transpose_b, int bm, int bn, int bk, int wm, int wn, bool mn_aligned, bool k_aligned)< / td > < / tr >
< tr class = "separator:ab5f60614e965144b451930fdf935e08d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:adce79d220672f5f3c65cc31d145ca9c4" id = "r_adce79d220672f5f3c65cc31d145ca9c4" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#adce79d220672f5f3c65cc31d145ca9c4" > mlx::core::get_steel_conv_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, int bm, int bn, int bk, int wm, int wn, int n_channel_specialization, bool small_filter)< / td > < / tr >
< tr class = "separator:adce79d220672f5f3c65cc31d145ca9c4" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2024-11-23 04:24:16 +08:00
< tr class = "memitem:a90c24e0d0b99b68fad9deefcf4d3e818" id = "r_a90c24e0d0b99b68fad9deefcf4d3e818" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a90c24e0d0b99b68fad9deefcf4d3e818" > mlx::core::get_gemv_masked_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, const std::optional< < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > > & mask_out, const std::optional< < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > > & mask_op, bool transpose_mat, int bm, int bn, int sm, int sn, int tm, int tn, bool < a class = "el" href = "group__ops.html#ga8ab10aa6c41416d739791164a52b25d5" > contiguous< / a > )< / td > < / tr >
2024-10-15 23:12:17 +08:00
< tr class = "separator:a90c24e0d0b99b68fad9deefcf4d3e818" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abce2b67044ee06a7bbe7a91ec7c8c48d" id = "r_abce2b67044ee06a7bbe7a91ec7c8c48d" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#abce2b67044ee06a7bbe7a91ec7c8c48d" > mlx::core::get_steel_conv_general_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const < a class = "el" href = "classmlx_1_1core_1_1array.html" > array< / a > & out, int bm, int bn, int bk, int wm, int wn)< / td > < / tr >
< tr class = "separator:abce2b67044ee06a7bbe7a91ec7c8c48d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1d4cffc3c78067b3d9a62d64f3fb686f" id = "r_a1d4cffc3c78067b3d9a62d64f3fb686f" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#a1d4cffc3c78067b3d9a62d64f3fb686f" > mlx::core::get_fft_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const std::string & hash_name, const < a class = "el" href = "namespacemlx_1_1core_1_1metal.html#a616e09a1ef321d527770721cef264c54" > metal::MTLFCList< / a > & func_consts, const std::string & template_def)< / td > < / tr >
< tr class = "separator:a1d4cffc3c78067b3d9a62d64f3fb686f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa3faeae5378bfaafe3ce3432a051e43e" id = "r_aa3faeae5378bfaafe3ce3432a051e43e" > < td class = "memItemLeft" align = "right" valign = "top" > MTL::ComputePipelineState *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#aa3faeae5378bfaafe3ce3432a051e43e" > mlx::core::get_quantized_kernel< / a > (< a class = "el" href = "classmlx_1_1core_1_1metal_1_1_device.html" > metal::Device< / a > & d, const std::string & kernel_name, const std::string & template_def)< / td > < / tr >
< tr class = "separator:aa3faeae5378bfaafe3ce3432a051e43e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aae0d19f0acdef2accd2428fb84c8a032" id = "r_aae0d19f0acdef2accd2428fb84c8a032" > < td class = "memTemplParams" colspan = "2" > template< typename... Args> < / td > < / tr >
< tr class = "memitem:aae0d19f0acdef2accd2428fb84c8a032" > < td class = "memTemplItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespacemlx_1_1core.html#aae0d19f0acdef2accd2428fb84c8a032" > mlx::core::get_template_definition< / a > (std::string name, std::string func, Args... args)< / td > < / tr >
< tr class = "separator:aae0d19f0acdef2accd2428fb84c8a032" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< / div > <!-- contents -->
< / div > <!-- doc - content -->
2025-01-10 05:56:20 +08:00
<!-- start footer part -->
< div id = "nav-path" class = "navpath" > <!-- id is needed for treeview function! -->
< ul >
< li class = "navelem" > < a class = "el" href = "dir_938ab0ecf10b8b860ff766c820f665fd.html" > mlx< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_1d446c9bd3c99228254c9484e0bc5c06.html" > backend< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_d0c977ea65824390717cdb7efc36c157.html" > metal< / a > < / li > < li class = "navelem" > < a class = "el" href = "kernels_8h.html" > kernels.h< / a > < / li >
2025-02-07 04:16:29 +08:00
< li class = "footer" > Generated by < a href = "https://www.doxygen.org/index.html" > < img class = "footer" src = "doxygen.svg" width = "104" height = "31" alt = "doxygen" / > < / a > 1.13.2 < / li >
2025-01-10 05:56:20 +08:00
< / ul >
< / div >
2024-10-15 23:12:17 +08:00
< / body >
< / html >