cutlass/docs/shape_8h_source.html

124 lines
50 KiB
HTML
Raw Normal View History

2018-05-17 02:44:56 +08:00
<!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: shape.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&amp;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&amp;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> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">shape.h</div> </div>
</div><!--header-->
<div class="contents">
2018-09-20 05:02:08 +08:00
<a href="shape_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>&#160;<span class="comment">/***************************************************************************************************</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span>&#160;<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>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span>&#160;<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>&#160;<span class="comment"> * provided that the following conditions are met:</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<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>&#160;<span class="comment"> * conditions and the following disclaimer.</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * provided with the distribution.</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<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>&#160;<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>&#160;<span class="comment"> * permission.</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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>&#160;<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><s
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeCount_html_aac5c49469aa80d119c2006291b431276"><div class="ttname"><a href="structcutlass_1_1ShapeCount.html#aac5c49469aa80d119c2006291b431276">cutlass::ShapeCount::kWc</a></div><div class="ttdeci">static int const kWc</div><div class="ttdoc">The number of elements per row. </div><div class="ttdef"><b>Definition:</b> shape.h:81</div></div>
<div class="ttc" id="namespacecutlass_html"><div class="ttname"><a href="namespacecutlass.html">cutlass</a></div><div class="ttdef"><b>Definition:</b> convert.h:33</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ShapeStrides_html_a76cde4c3ebd1d191e0191826b2663be4"><div class="ttname"><a href="structcutlass_1_1ShapeStrides.html#a76cde4c3ebd1d191e0191826b2663be4">cutlass::ShapeStrides::Shape</a></div><div class="ttdeci">Shape&lt; Shape_::kH *Shape_::kW *Shape_::kC, Shape_::kW *Shape_::kC, Shape_::kC, elementsPerAccess &gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:170</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeAdd_html_ad4712a1339445038949445de1dd74e71"><div class="ttname"><a href="structcutlass_1_1ShapeAdd.html#ad4712a1339445038949445de1dd74e71">cutlass::ShapeAdd::Shape</a></div><div class="ttdeci">Shape&lt; A_::kD+B_::kD, A_::kH+B_::kH, A_::kW+B_::kW, A_::kC+B_::kC &gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:105</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ShapeDivCeiling_html_a0e3b032e241a8ead89e1d9ffb472d799"><div class="ttname"><a href="structcutlass_1_1ShapeDivCeiling.html#a0e3b032e241a8ead89e1d9ffb472d799">cutlass::ShapeDivCeiling::Shape</a></div><div class="ttdeci">Shape&lt;(A_::kD+B_::kD - 1)/B_::kD,(A_::kH+B_::kH - 1)/B_::kH,(A_::kW+B_::kW - 1)/B_::kW,(A_::kC+B_::kC - 1)/B_::kC &gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:137</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeScale_html_aae9cfc35c517cd89018e4f914acbac29"><div class="ttname"><a href="structcutlass_1_1ShapeScale.html#aae9cfc35c517cd89018e4f914acbac29">cutlass::ShapeScale::Shape</a></div><div class="ttdeci">Shape&lt; A_::kD *kScale_, A_::kH *kScale_, A_::kW *kScale_, A_::kC *kScale_ &gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:98</div></div>
<div class="ttc" id="structcutlass_1_1ShapeMul_html_a8875fc5e861339f981360ed774e8cc94"><div class="ttname"><a href="structcutlass_1_1ShapeMul.html#a8875fc5e861339f981360ed774e8cc94">cutlass::ShapeMul::Shape</a></div><div class="ttdeci">Shape&lt; A_::kD *B_::kD, A_::kH *B_::kH, A_::kW *B_::kW, A_::kC *B_::kC &gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:119</div></div>
<div class="ttc" id="structcutlass_1_1ShapeSub_html_a24b6dd8cb6171b85c4e2f37407f9a5c9"><div class="ttname"><a href="structcutlass_1_1ShapeSub.html#a24b6dd8cb6171b85c4e2f37407f9a5c9">cutlass::ShapeSub::Shape</a></div><div class="ttdeci">Shape&lt; A_::kD - B_::kD, A_::kH - B_::kH, A_::kW - B_::kW, A_::kC - B_::kC &gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:112</div></div>
<div class="ttc" id="structcutlass_1_1ShapeSub_html"><div class="ttname"><a href="structcutlass_1_1ShapeSub.html">cutlass::ShapeSub</a></div><div class="ttdef"><b>Definition:</b> shape.h:111</div></div>
<div class="ttc" id="structcutlass_1_1Shape_html_a3a20d9062bba613c160bb2cd14f80a5e"><div class="ttname"><a href="structcutlass_1_1Shape.html#a3a20d9062bba613c160bb2cd14f80a5e">cutlass::Shape::kH</a></div><div class="ttdeci">static int const kH</div><div class="ttdoc">The height of the cube. </div><div class="ttdef"><b>Definition:</b> shape.h:68</div></div>
<div class="ttc" id="structcutlass_1_1Shape_html_a3f2433fd6401dd28f1130499f9fd340c"><div class="ttname"><a href="structcutlass_1_1Shape.html#a3f2433fd6401dd28f1130499f9fd340c">cutlass::Shape::kC</a></div><div class="ttdeci">static int const kC</div><div class="ttdoc">The number of scalars per element. </div><div class="ttdef"><b>Definition:</b> shape.h:72</div></div>
<div class="ttc" id="structcutlass_1_1ShapeScale_html"><div class="ttname"><a href="structcutlass_1_1ShapeScale.html">cutlass::ShapeScale</a></div><div class="ttdef"><b>Definition:</b> shape.h:97</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ComputeOffsetFromShape_html"><div class="ttname"><a href="structcutlass_1_1ComputeOffsetFromShape.html">cutlass::ComputeOffsetFromShape</a></div><div class="ttdoc">Compute the offset for the given coordinates in a cube. </div><div class="ttdef"><b>Definition:</b> shape.h:180</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeDiv_html_a108ded386ef6708afc6fe769a77a234b"><div class="ttname"><a href="structcutlass_1_1ShapeDiv.html#a108ded386ef6708afc6fe769a77a234b">cutlass::ShapeDiv::Shape</a></div><div class="ttdeci">Shape&lt; A_::kD/B_::kD, A_::kH/B_::kH, A_::kW/B_::kW, A_::kC/B_::kC &gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:126</div></div>
<div class="ttc" id="structcutlass_1_1ShapeCount_html_af7d7ccd42de2c49fe57f03cf0e657fe8"><div class="ttname"><a href="structcutlass_1_1ShapeCount.html#af7d7ccd42de2c49fe57f03cf0e657fe8">cutlass::ShapeCount::kDhw</a></div><div class="ttdeci">static int const kDhw</div><div class="ttdoc">The number of pixels per cube. </div><div class="ttdef"><b>Definition:</b> shape.h:87</div></div>
<div class="ttc" id="structcutlass_1_1ShapeMul_html"><div class="ttname"><a href="structcutlass_1_1ShapeMul.html">cutlass::ShapeMul</a></div><div class="ttdef"><b>Definition:</b> shape.h:118</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="cutlass_8h_html_a28c2443a142676d3d71effdae1a986b1"><div class="ttname"><a href="cutlass_8h.html#a28c2443a142676d3d71effdae1a986b1">CUTLASS_HOST_DEVICE</a></div><div class="ttdeci">#define CUTLASS_HOST_DEVICE</div><div class="ttdef"><b>Definition:</b> cutlass.h:46</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeDiv_html"><div class="ttname"><a href="structcutlass_1_1ShapeDiv.html">cutlass::ShapeDiv</a></div><div class="ttdef"><b>Definition:</b> shape.h:125</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ComputeOffsetFromStrides_html"><div class="ttname"><a href="structcutlass_1_1ComputeOffsetFromStrides.html">cutlass::ComputeOffsetFromStrides</a></div><div class="ttdoc">Compute the offset for the given coordinates in a cube. </div><div class="ttdef"><b>Definition:</b> shape.h:198</div></div>
<div class="ttc" id="structcutlass_1_1ShapeDivCeiling_html"><div class="ttname"><a href="structcutlass_1_1ShapeDivCeiling.html">cutlass::ShapeDivCeiling</a></div><div class="ttdef"><b>Definition:</b> shape.h:132</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1Shape_html"><div class="ttname"><a href="structcutlass_1_1Shape.html">cutlass::Shape</a></div><div class="ttdoc">A Shape implementing Layout Concept describing the dimensions of a cube. </div><div class="ttdef"><b>Definition:</b> shape.h:64</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ShapeMax_html"><div class="ttname"><a href="structcutlass_1_1ShapeMax.html">cutlass::ShapeMax</a></div><div class="ttdef"><b>Definition:</b> shape.h:143</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeAdd_html"><div class="ttname"><a href="structcutlass_1_1ShapeAdd.html">cutlass::ShapeAdd</a></div><div class="ttdef"><b>Definition:</b> shape.h:104</div></div>
<div class="ttc" id="structcutlass_1_1ShapeCount_html_a8d25b48b3294b5563f89c62a6e6d00e5"><div class="ttname"><a href="structcutlass_1_1ShapeCount.html#a8d25b48b3294b5563f89c62a6e6d00e5">cutlass::ShapeCount::kCount</a></div><div class="ttdeci">static int const kCount</div><div class="ttdoc">The number of elements in the 4D space. </div><div class="ttdef"><b>Definition:</b> shape.h:91</div></div>
<div class="ttc" id="structcutlass_1_1ShapeCount_html_a5a274564d6b8607a0be621b2664fba18"><div class="ttname"><a href="structcutlass_1_1ShapeCount.html#a5a274564d6b8607a0be621b2664fba18">cutlass::ShapeCount::kDhwc</a></div><div class="ttdeci">static int const kDhwc</div><div class="ttdoc">The number of elements in the 4D space. </div><div class="ttdef"><b>Definition:</b> shape.h:89</div></div>
<div class="ttc" id="structcutlass_1_1Shape_html_a78836a20250ff24c25a6622ad818b421"><div class="ttname"><a href="structcutlass_1_1Shape.html#a78836a20250ff24c25a6622ad818b421">cutlass::Shape::kW</a></div><div class="ttdeci">static int const kW</div><div class="ttdoc">The width of the cube. </div><div class="ttdef"><b>Definition:</b> shape.h:70</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ShapeMin_html"><div class="ttname"><a href="structcutlass_1_1ShapeMin.html">cutlass::ShapeMin</a></div><div class="ttdef"><b>Definition:</b> shape.h:154</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeCount_html_afc957be69eb78e4849ba8ab3cc66583f"><div class="ttname"><a href="structcutlass_1_1ShapeCount.html#afc957be69eb78e4849ba8ab3cc66583f">cutlass::ShapeCount::kHw</a></div><div class="ttdeci">static int const kHw</div><div class="ttdoc">The number of pixels per image. </div><div class="ttdef"><b>Definition:</b> shape.h:83</div></div>
<div class="ttc" id="structcutlass_1_1Shape_html_a19086a5567d6c710ec853e35a7f29c25"><div class="ttname"><a href="structcutlass_1_1Shape.html#a19086a5567d6c710ec853e35a7f29c25">cutlass::Shape::kD</a></div><div class="ttdeci">static int const kD</div><div class="ttdoc">The depth of the cube. </div><div class="ttdef"><b>Definition:</b> shape.h:66</div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ShapeStrides_html"><div class="ttname"><a href="structcutlass_1_1ShapeStrides.html">cutlass::ShapeStrides</a></div><div class="ttdef"><b>Definition:</b> shape.h:165</div></div>
<div class="ttc" id="structcutlass_1_1ShapeMax_html_ad566aceac2563024982eeabb78c6c961"><div class="ttname"><a href="structcutlass_1_1ShapeMax.html#ad566aceac2563024982eeabb78c6c961">cutlass::ShapeMax::Shape</a></div><div class="ttdeci">Shape&lt;(A_::kD &gt; B_::kD ? A_::kD :B_::kD),(A_::kH &gt; B_::kH ? A_::kH :B_::kH),(A_::kW &gt; B_::kW ? A_::kW :B_::kW),(A_::kC &gt; B_::kC ? A_::kC :B_::kC)&gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:148</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="cutlass_8h_html"><div class="ttname"><a href="cutlass_8h.html">cutlass.h</a></div><div class="ttdoc">Basic include for CUTLASS macros. </div></div>
2018-09-20 05:02:08 +08:00
<div class="ttc" id="structcutlass_1_1ShapeMin_html_a5c813e4c34ea612431d31b36120f8549"><div class="ttname"><a href="structcutlass_1_1ShapeMin.html#a5c813e4c34ea612431d31b36120f8549">cutlass::ShapeMin::Shape</a></div><div class="ttdeci">Shape&lt;(A_::kD&lt; B_::kD ? A_::kD :B_::kD),(A_::kH&lt; B_::kH ? A_::kH :B_::kH),(A_::kW&lt; B_::kW ? A_::kW :B_::kW),(A_::kC&lt; B_::kC ? A_::kC :B_::kC)&gt; Shape</div><div class="ttdef"><b>Definition:</b> shape.h:159</div></div>
2018-05-17 02:44:56 +08:00
<div class="ttc" id="structcutlass_1_1ShapeCount_html"><div class="ttname"><a href="structcutlass_1_1ShapeCount.html">cutlass::ShapeCount</a></div><div class="ttdoc">Compute derived counted of a Layout Concept based class. </div><div class="ttdef"><b>Definition:</b> shape.h:79</div></div>
<div class="ttc" id="structcutlass_1_1ShapeCount_html_a75324e2c9d31a0787343fc994586b742"><div class="ttname"><a href="structcutlass_1_1ShapeCount.html#a75324e2c9d31a0787343fc994586b742">cutlass::ShapeCount::kHwc</a></div><div class="ttdeci">static int const kHwc</div><div class="ttdoc">The number of elements per image. </div><div class="ttdef"><b>Definition:</b> shape.h:85</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
2018-10-27 05:54:58 +08:00
Generated on Fri Oct 26 2018 14:53:33 for Cutlass by &#160;<a href="http://www.doxygen.org/index.html">
2018-05-17 02:44:56 +08:00
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>