105 lines
38 KiB
HTML
105 lines
38 KiB
HTML
![]() |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
||
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
||
|
<meta name="generator" content="Doxygen 1.8.14"/>
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
||
|
<title>Cutlass: batched_reduction.h Source File</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>
|
||
|
<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>
|
||
|
<script type="text/x-mathjax-config">
|
||
|
MathJax.Hub.Config({
|
||
|
extensions: ["tex2jax.js"],
|
||
|
jax: ["input/TeX","output/HTML-CSS"],
|
||
|
});
|
||
|
</script><script type="text/javascript" async src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
|
||
|
<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 style="height: 56px;">
|
||
|
<td id="projectalign" style="padding-left: 0.5em;">
|
||
|
<div id="projectname">Cutlass
|
||
|
</div>
|
||
|
<div id="projectbrief">CUDA Templates for Linear Algebra Subroutines and Solvers</div>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
<!-- end header part -->
|
||
|
<!-- Generated by Doxygen 1.8.14 -->
|
||
|
<script type="text/javascript">
|
||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
||
|
/* @license-end */
|
||
|
</script>
|
||
|
<script type="text/javascript" src="menudata.js"></script>
|
||
|
<script type="text/javascript" src="menu.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
||
|
$(function() {
|
||
|
initMenu('',true,false,'search.php','Search');
|
||
|
$(document).ready(function() { init_search(); });
|
||
|
});
|
||
|
/* @license-end */</script>
|
||
|
<div id="main-nav"></div>
|
||
|
<!-- 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">
|
||
|
<iframe src="javascript:void(0)" frameborder="0"
|
||
|
name="MSearchResults" id="MSearchResults">
|
||
|
</iframe>
|
||
|
</div>
|
||
|
|
||
|
<div id="nav-path" class="navpath">
|
||
|
<ul>
|
||
|
<li class="navelem"><a class="el" href="dir_1417ee5ebebc309c36b7962f26a92c39.html">cutlass</a></li><li class="navelem"><a class="el" href="dir_f34d74b5ae2b711d395109410c5aafb1.html">reduction</a></li> </ul>
|
||
|
</div>
|
||
|
</div><!-- top -->
|
||
|
<div class="header">
|
||
|
<div class="headertitle">
|
||
|
<div class="title">batched_reduction.h</div> </div>
|
||
|
</div><!--header-->
|
||
|
<div class="contents">
|
||
|
<a href="batched__reduction_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">/***************************************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">* Copyright (c) 2017-2018, NVIDIA CORPORATION. All rights reserved.</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment">*</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">* Redistribution and use in source and binary forms, with or without modification, are permitted</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment">* provided that the following conditions are met:</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment">* * Redistributions of source code must retain the above copyright notice, this list of</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">* conditions and the following disclaimer.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment">* * Redistributions in binary form must reproduce the above copyright notice, this list of</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment">* conditions and the following disclaimer in the documentation and/or other materials</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment">* provided with the distribution.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">* * Neither the name of the NVIDIA CORPORATION nor the names of its contributors may be used</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment">* to endorse or promote products derived from this software without specific prior written</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment">* permission.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment">*</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment">* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment">* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment">* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment">* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment">* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment">* STRICT LIABILITY, OR TOR (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00022"></a><span cla
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_a9c9d8378c735597f39927c6ab32519ef"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#a9c9d8378c735597f39927c6ab32519ef">cutlass::reduction::BatchedReduction::params</a></div><div class="ttdeci">Params const & params</div><div class="ttdoc">The params. </div><div class="ttdef"><b>Definition:</b> batched_reduction.h:169</div></div>
|
||
|
<div class="ttc" id="namespacecutlass_1_1reduction_html_a9665e8f438a7b290d6e2eb640d93045f"><div class="ttname"><a href="namespacecutlass_1_1reduction.html#a9665e8f438a7b290d6e2eb640d93045f">cutlass::reduction::__launch_bounds__</a></div><div class="ttdeci">__global__ __launch_bounds__(batched_reduction_::Traits::kThreads, 1) void batched_reduction_kernel(typename batched_reduction_</div><div class="ttdef"><b>Definition:</b> batched_reduction.h:45</div></div>
|
||
|
<div class="ttc" id="coord_8h_html"><div class="ttname"><a href="coord_8h.html">coord.h</a></div><div class="ttdoc">A Coord is a coordinate of arbitrary rank into a tensor or matrix. </div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_a4bfcdfd8f2edeb4fc7081443584d599b"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#a4bfcdfd8f2edeb4fc7081443584d599b">cutlass::reduction::BatchedReduction::run</a></div><div class="ttdeci">CUTLASS_DEVICE void run()</div><div class="ttdef"><b>Definition:</b> batched_reduction.h:68</div></div>
|
||
|
<div class="ttc" id="platform_8h_html"><div class="ttname"><a href="platform_8h.html">platform.h</a></div><div class="ttdoc">C++ features that may be otherwise unimplemented for CUDA device functions. </div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_ae0c48344c7457f17429e6ae7a76dba37"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#ae0c48344c7457f17429e6ae7a76dba37">cutlass::reduction::BatchedReduction::This_</a></div><div class="ttdeci">BatchedReduction< BatchedReductionTraits_ > This_</div><div class="ttdoc">This class. </div><div class="ttdef"><b>Definition:</b> batched_reduction.h:54</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_a0f6b38c1b3a5800e6f29d9a2c6c1928d"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#a0f6b38c1b3a5800e6f29d9a2c6c1928d">cutlass::reduction::BatchedReduction::functor</a></div><div class="ttdeci">Functor functor</div><div class="ttdef"><b>Definition:</b> batched_reduction.h:171</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html">cutlass::reduction::BatchedReduction</a></div><div class="ttdef"><b>Definition:</b> batched_reduction.h:52</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1Coord_html"><div class="ttname"><a href="structcutlass_1_1Coord.html">cutlass::Coord< 3 ></a></div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_a9d76da3dcf4d8ec0cfeb2134f73ea22b"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#a9d76da3dcf4d8ec0cfeb2134f73ea22b">cutlass::reduction::BatchedReduction::BatchedReduction</a></div><div class="ttdeci">CUTLASS_DEVICE BatchedReduction(Params const &params_)</div><div class="ttdoc">ctor </div><div class="ttdef"><b>Definition:</b> batched_reduction.h:63</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_a213c6812458c008435ed3ea710fe2454"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#a213c6812458c008435ed3ea710fe2454">cutlass::reduction::BatchedReduction::Params</a></div><div class="ttdeci">Traits::Params Params</div><div class="ttdoc">Params. </div><div class="ttdef"><b>Definition:</b> batched_reduction.h:58</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_a7c1d173cbe3abd93bd7bd4c4bf0e0d26"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#a7c1d173cbe3abd93bd7bd4c4bf0e0d26">cutlass::reduction::BatchedReduction::functor_caller</a></div><div class="ttdeci">CUTLASS_DEVICE void functor_caller(typename Traits::ScalarAccum const *accum, typename Traits::ScalarAccum const *old, typename Traits::ScalarAccum *output)</div><div class="ttdef"><b>Definition:</b> batched_reduction.h:132</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_a30605f35d51e4364fe80edb80eac5e80"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#a30605f35d51e4364fe80edb80eac5e80">cutlass::reduction::BatchedReduction::Functor</a></div><div class="ttdeci">Traits::Functor Functor</div><div class="ttdoc">functor </div><div class="ttdef"><b>Definition:</b> batched_reduction.h:60</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_aa50195fcf53f6d69ccfa37f44a524a99"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#aa50195fcf53f6d69ccfa37f44a524a99">cutlass::reduction::BatchedReduction::Traits</a></div><div class="ttdeci">BatchedReductionTraits_ Traits</div><div class="ttdoc">The traits. </div><div class="ttdef"><b>Definition:</b> batched_reduction.h:56</div></div>
|
||
|
<div class="ttc" id="fragment_8h_html"><div class="ttname"><a href="fragment_8h.html">fragment.h</a></div><div class="ttdoc">Defines Fragment, a statically-sized array for storing parts of matrices within a thread&#39;s registers...</div></div>
|
||
|
<div class="ttc" id="structcutlass_1_1reduction_1_1BatchedReduction_html_ab059393ac467ac365bd0b45c200befdf"><div class="ttname"><a href="structcutlass_1_1reduction_1_1BatchedReduction.html#ab059393ac467ac365bd0b45c200befdf">cutlass::reduction::BatchedReduction::launch</a></div><div class="ttdeci">static __host__ cudaError_t launch(Params const &params, cudaStream_t stream=cudaStreamDefault)</div><div class="ttdoc">Launch the kernel. </div><div class="ttdef"><b>Definition:</b> batched_reduction.h:150</div></div>
|
||
|
</div><!-- fragment --></div><!-- contents -->
|
||
|
<!-- start footer part -->
|
||
|
<hr class="footer"/><address class="footer"><small>
|
||
|
Generated on Fri Oct 26 2018 14:53:33 for Cutlass by  <a href="http://www.doxygen.org/index.html">
|
||
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
||
|
</a> 1.8.14
|
||
|
</small></address>
|
||
|
</body>
|
||
|
</html>
|