Files
rocm-systems/docs/RuntimeAPI/html/hip__runtime__api_8h_source.html
T

269 baris
45 KiB
HTML
Mentah Pandangan Normal Riwayat

2016-01-26 20:14:33 -06: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.6"/>
<title>HIP: Heterogenous-computing Interface for Portability: /home/fpadmin/ben/HIP6/include/hip_runtime_api.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/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { searchBox.OnSelectItem(0); });
</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 style="padding-left: 0.5em;">
<div id="projectname">HIP: Heterogenous-computing Interface for Portability
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<div id="navrow1" class="tabs">
<ul class="tablist">
<li><a href="index.html"><span>Main&#160;Page</span></a></li>
<li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
<li>
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<img id="MSearchSelect" src="search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
<input type="text" id="MSearchField" value="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.png" alt=""/></a>
</span>
</div>
</li>
</ul>
</div>
<div id="navrow2" class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&#160;List</span></a></li>
<li><a href="globals.html"><span>File&#160;Members</span></a></li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></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_d44c64559bbebec7f509842c48db8b23.html">include</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">hip_runtime_api.h</div> </div>
</div><!--header-->
<div class="contents">
<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) 2015-2016 Advanced Micro Devices, Inc. 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">Permission is hereby granted, free of charge, to any person obtaining a copy</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment">of this software and associated documentation files (the &quot;Software&quot;), to deal</span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>&#160;<span class="comment">in the Software without restriction, including without limitation the rights</span></div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment">to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment">copies of the Software, and to permit persons to whom the Software is</span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment">furnished to do so, subject to the following conditions:</span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment">The above copyright notice and this permission notice shall be included in</span></div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment">all copies or substantial portions of the Software.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment">THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment">IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span>&#160;<span class="comment">FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment">AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment">LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment">OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment">THE SOFTWARE.</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment">*/</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;<span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>&#160;<span class="preprocessor">#include &lt;string.h&gt;</span> <span class="comment">// for getDeviceProp</span></div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#include &lt;hip_common.h&gt;</span></div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html"> 35</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>&#160; <span class="comment">// 32-bit Atomics:</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a8d00c3ab98869b602c714fe7abe68e93"> 37</a></span>&#160; <span class="keywordtype">unsigned</span> hasGlobalInt32Atomics : 1; </div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a8f213ae9a4729dff1c636ac5de0e2fa2"> 38</a></span>&#160; <span class="keywordtype">unsigned</span> hasGlobalFloatAtomicExch : 1; </div>
<div class="line"><a name="l00039"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a1596330b1cb9cc73f142aee11b2ab853"> 39</a></span>&#160; <span class="keywordtype">unsigned</span> hasSharedInt32Atomics : 1; </div>
<div class="line"><a name="l00040"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#aff005558b4edabd27b27f286ac5b2f2b"> 40</a></span>&#160; <span class="keywordtype">unsigned</span> hasSharedFloatAtomicExch : 1; </div>
<div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a2321d6ef74aac91c044f3289d25b2d41"> 41</a></span>&#160; <span class="keywordtype">unsigned</span> hasFloatAtomicAdd : 1; </div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>&#160;</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>&#160; <span class="comment">// 64-bit Atomics:</span></div>
<div class="line"><a name="l00044"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#ad5aa54dbab22dbcd8cf98f57a96c6636"> 44</a></span>&#160; <span class="keywordtype">unsigned</span> hasGlobalInt64Atomics : 1; </div>
<div class="line"><a name="l00045"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a00c2b930fcdcad9ea7b54b449db13966"> 45</a></span>&#160; <span class="keywordtype">unsigned</span> hasSharedInt64Atomics : 1; </div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160; <span class="comment">// Doubles</span></div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a2d624e3d85e615b71d1182f8912893b4"> 48</a></span>&#160; <span class="keywordtype">unsigned</span> hasDoubles : 1; </div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>&#160; <span class="comment">// Warp cross-lane operations:</span></div>
<div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a35bde017352eca1d4e0eceb3bf79f274"> 51</a></span>&#160; <span class="keywordtype">unsigned</span> hasWarpVote : 1; </div>
<div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#af1e934a8a5106995bcc256287585564c"> 52</a></span>&#160; <span class="keywordtype">unsigned</span> hasWarpBallot : 1; </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a3d922e8fc97ca1e8ecc39600b138fa2d"> 53</a></span>&#160; <span class="keywordtype">unsigned</span> hasWarpShuffle : 1; </div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#aaec4f2d983d4602858fae8e9ddeee3ff"> 54</a></span>&#160; <span class="keywordtype">unsigned</span> hasFunnelShift : 1; </div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>&#160; <span class="comment">// Sync</span></div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#ac2818e3b91cba8beb36741e9867bb887"> 57</a></span>&#160; <span class="keywordtype">unsigned</span> hasThreadFenceSystem : 1; </div>
<div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#ade6a3b21ad5f344dcd92c52102c274ba"> 58</a></span>&#160; <span class="keywordtype">unsigned</span> hasSyncThreadsExt : 1; </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;</div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <span class="comment">// Misc</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a9eb2462148686d4c048b69b6e09f835e"> 61</a></span>&#160; <span class="keywordtype">unsigned</span> hasSurfaceFuncs : 1; </div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#aa5e22d295cce0d9a34ee6e7e7e378c26"> 62</a></span>&#160; <span class="keywordtype">unsigned</span> has3dGrid : 1; </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="structhipDeviceArch__t.html#a9114bfc718bf0648b54ff9a319a36b35"> 63</a></span>&#160; <span class="keywordtype">unsigned</span> hasDynamicParallelism : 1; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;} <a class="code" href="structhipDeviceArch__t.html">hipDeviceArch_t</a>;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;</div>
<div class="line"><a name="l00066"></a><span class="lineno"> 66</span>&#160;</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;<span class="comment">//---</span></div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160;<span class="comment">// Common headers for both NVCC and HCC paths:</span></div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160;</div>
<div class="line"><a name="l00074"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html"> 74</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structhipDeviceProp__t.html">hipDeviceProp_t</a> {</div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a5b44bf8fa46faefcde989942b1d11a5e"> 75</a></span>&#160; <span class="keywordtype">char</span> <a class="code" href="structhipDeviceProp__t.html#a5b44bf8fa46faefcde989942b1d11a5e">name</a>[256]; </div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#acedd6a2d23423441e4bf51c4a1b719f9"> 76</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structhipDeviceProp__t.html#acedd6a2d23423441e4bf51c4a1b719f9">totalGlobalMem</a>; </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a3b9138678a0795c2677eddcfb1c67156"> 77</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structhipDeviceProp__t.html#a3b9138678a0795c2677eddcfb1c67156">sharedMemPerBlock</a>; </div>
<div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a73c1c21648a901799ff6bef83c11135b"> 78</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#a73c1c21648a901799ff6bef83c11135b">regsPerBlock</a> ; </div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#af3357d33c004608bf05bc21a352be81b"> 79</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#af3357d33c004608bf05bc21a352be81b">warpSize</a> ; </div>
<div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#af971cf1ca3ec1f68ad09036c0cc672e0"> 80</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#af971cf1ca3ec1f68ad09036c0cc672e0">maxThreadsPerBlock</a>; </div>
<div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a8ebba6fc12f80c9a9cf9b9193f0da465"> 81</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#a8ebba6fc12f80c9a9cf9b9193f0da465">maxThreadsDim</a>[3]; </div>
<div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#ae529c23929f592120081fed31d877a55"> 82</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#ae529c23929f592120081fed31d877a55">maxGridSize</a>[3]; </div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a1dd15bee43692b8649dfbdc1adbaaf96"> 83</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#a1dd15bee43692b8649dfbdc1adbaaf96">clockRate</a> ; </div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a29880232c56120be3455ce00d5379665"> 85</a></span>&#160; <span class="keywordtype">size_t</span> <a class="code" href="structhipDeviceProp__t.html#a29880232c56120be3455ce00d5379665">totalConstMem</a>; </div>
<div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#aec9e4173c2e34cc232300c415dbd5e4f"> 86</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#aec9e4173c2e34cc232300c415dbd5e4f">major</a> ; </div>
<div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#abb51208e2509a7a1d107f0da69108938"> 87</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#abb51208e2509a7a1d107f0da69108938">minor</a>; </div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#add8d9d2ad52aece9fd1dbe25c18d9d57"> 88</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#add8d9d2ad52aece9fd1dbe25c18d9d57">multiProcessorCount</a>; </div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a24404decccc16833973c803ced6f3a51"> 89</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#a24404decccc16833973c803ced6f3a51">l2CacheSize</a>; </div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a23a39f4fd795addb3b125e9c3f6295ea"> 90</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#a23a39f4fd795addb3b125e9c3f6295ea">maxThreadsPerMultiProcessor</a>; </div>
<div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#ae7d9216f8583a703359d0b9373823f5d"> 91</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#ae7d9216f8583a703359d0b9373823f5d">computeMode</a>; </div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>&#160; </div>
<div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#a6fbf3b08a1a08ae700f1a06265f6666b"> 93</a></span>&#160; <span class="keywordtype">int</span> <a class="code" href="structhipDeviceProp__t.html#a6fbf3b08a1a08ae700f1a06265f6666b">clockInstructionRate</a> ; </div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="structhipDeviceProp__t.html#afc58158e44bef6ad26f2be401434b049"> 95</a></span>&#160; <a class="code" href="structhipDeviceArch__t.html">hipDeviceArch_t</a> <a class="code" href="structhipDeviceProp__t.html#afc58158e44bef6ad26f2be401434b049">arch</a>; </div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; } <a class="code" href="structhipDeviceProp__t.html">hipDeviceProp_t</a>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160;<span class="comment">// hack to get these to show up in Doxygen:</span></div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160;<span class="comment"></span><span class="comment">/*</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160;<span class="comment"> * @brief hipError_t</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160;<span class="comment"> * @enum</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160;<span class="comment"> * @ingroup Enumerations</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594"> 112</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> <a class="code" href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594">hipError_t</a> {</div>
<div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"> 113</a></span>&#160; <a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063">hipSuccess</a> = 0 </div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a8293288a10109874749afe2562db09f2"> 114</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a8293288a10109874749afe2562db09f2">hipErrorMemoryAllocation</a> </div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c"> 115</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c">hipErrorMemoryFree</a> </div>
<div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a45b297e6c3b2029dce1348658421481b"> 116</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a45b297e6c3b2029dce1348658421481b">hipErrorUnknownSymbol</a> </div>
<div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a60c1c080b79bdde9ef5e808f974ac9ed"> 117</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a60c1c080b79bdde9ef5e808f974ac9ed">hipErrorOutOfResources</a> </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"> 118</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83">hipErrorInvalidValue</a> </div>
<div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a88e525a7c8f35552dfada58e9f2f6d3a"> 119</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a88e525a7c8f35552dfada58e9f2f6d3a">hipErrorInvalidResourceHandle</a> </div>
<div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d"> 120</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d">hipErrorInvalidDevice</a> </div>
<div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24"> 121</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24">hipErrorNoDevice</a> </div>
<div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1"> 122</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1">hipErrorNotReady</a> </div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;</div>
<div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073"> 124</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073">hipErrorUnknown</a> </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e"> 125</a></span>&#160; ,<a class="code" href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e">hipErrorTbd</a> </div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;} <a class="code" href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594">hipError_t</a>;</div>
<div class="line"><a name="l00127"></a><span class="lineno"> 127</span>&#160;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;<span class="preprocessor">#if defined(__HIP_PLATFORM_HCC__) and not defined (__HIP_PLATFORM_NVCC__)</span></div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;hcc_detail/hip_runtime_api.h&quot;</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="preprocessor">#elif defined(__HIP_PLATFORM_NVCC__) and not defined (__HIP_PLATFORM_HCC__)</span></div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#include &quot;nvcc_detail/hip_runtime_api.h&quot;</span></div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160;<span class="preprocessor">#else </span></div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#error(&quot;Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__&quot;);</span></div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160;</div>
<div class="line"><a name="l00150"></a><span class="lineno"> 150</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div>
<div class="line"><a name="l00151"></a><span class="lineno"> 151</span>&#160;<span class="preprocessor"></span><span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594">hipError_t</a> <a class="code" href="group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2">hipMalloc</a> ( T** devPtr, <span class="keywordtype">size_t</span> size)</div>
<div class="line"><a name="l00153"></a><span class="lineno"> 153</span>&#160;{</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; <span class="keywordflow">return</span> <a class="code" href="group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2">hipMalloc</a>((<span class="keywordtype">void</span>**)devPtr, size);</div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;}</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160;</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160;<span class="keyword">template</span>&lt;<span class="keyword">class</span> T&gt;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="keyword">static</span> <span class="keyword">inline</span> <a class="code" href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594">hipError_t</a> <a class="code" href="group__Memory.html#ga66399e729223ff5b66ffc16297c0710e">hipMallocHost</a> ( T** ptr, <span class="keywordtype">size_t</span> size)</div>
<div class="line"><a name="l00159"></a><span class="lineno"> 159</span>&#160;{</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; <span class="keywordflow">return</span> <a class="code" href="group__Memory.html#ga66399e729223ff5b66ffc16297c0710e">hipMallocHost</a>((<span class="keywordtype">void</span>**)ptr, size);</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160;}</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24">hipErrorNoDevice</a></div><div class="ttdoc">Call to cudaGetDeviceCount returned 0 devices. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:121</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a29880232c56120be3455ce00d5379665"><div class="ttname"><a href="structhipDeviceProp__t.html#a29880232c56120be3455ce00d5379665">hipDeviceProp_t::totalConstMem</a></div><div class="ttdeci">size_t totalConstMem</div><div class="ttdoc">Size of shared memory region (in bytes) </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:85</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a45b297e6c3b2029dce1348658421481b"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a45b297e6c3b2029dce1348658421481b">hipErrorUnknownSymbol</a></div><div class="ttdoc">Unknown symbol. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:116</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063">hipSuccess</a></div><div class="ttdoc">Successful completion. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:113</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_abb51208e2509a7a1d107f0da69108938"><div class="ttname"><a href="structhipDeviceProp__t.html#abb51208e2509a7a1d107f0da69108938">hipDeviceProp_t::minor</a></div><div class="ttdeci">int minor</div><div class="ttdoc">Minor compute capability. On HCC, this is an approximation and features may differ from CUDA CC...</div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:87</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a73c1c21648a901799ff6bef83c11135b"><div class="ttname"><a href="structhipDeviceProp__t.html#a73c1c21648a901799ff6bef83c11135b">hipDeviceProp_t::regsPerBlock</a></div><div class="ttdeci">int regsPerBlock</div><div class="ttdoc">registers per block </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:78</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d">hipErrorInvalidDevice</a></div><div class="ttdoc">DeviceID must be in range 0...#compute-devices. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:120</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a1dd15bee43692b8649dfbdc1adbaaf96"><div class="ttname"><a href="structhipDeviceProp__t.html#a1dd15bee43692b8649dfbdc1adbaaf96">hipDeviceProp_t::clockRate</a></div><div class="ttdeci">int clockRate</div><div class="ttdoc">max clock frequency of the multiProcessors, in khz. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:83</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a60c1c080b79bdde9ef5e808f974ac9ed"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a60c1c080b79bdde9ef5e808f974ac9ed">hipErrorOutOfResources</a></div><div class="ttdoc">Out of resources error. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:117</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa74e64c5b2f5fb0d6a92681f5b234073">hipErrorUnknown</a></div><div class="ttdoc">Unknown error. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:124</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_af971cf1ca3ec1f68ad09036c0cc672e0"><div class="ttname"><a href="structhipDeviceProp__t.html#af971cf1ca3ec1f68ad09036c0cc672e0">hipDeviceProp_t::maxThreadsPerBlock</a></div><div class="ttdeci">int maxThreadsPerBlock</div><div class="ttdoc">max work items per work group or workgroup max size </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:80</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a3b9138678a0795c2677eddcfb1c67156"><div class="ttname"><a href="structhipDeviceProp__t.html#a3b9138678a0795c2677eddcfb1c67156">hipDeviceProp_t::sharedMemPerBlock</a></div><div class="ttdeci">size_t sharedMemPerBlock</div><div class="ttdoc">Size of shared memory region (in bytes) </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:77</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a23a39f4fd795addb3b125e9c3f6295ea"><div class="ttname"><a href="structhipDeviceProp__t.html#a23a39f4fd795addb3b125e9c3f6295ea">hipDeviceProp_t::maxThreadsPerMultiProcessor</a></div><div class="ttdeci">int maxThreadsPerMultiProcessor</div><div class="ttdoc">Maximum resident threads per multi-processor. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:90</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a24404decccc16833973c803ced6f3a51"><div class="ttname"><a href="structhipDeviceProp__t.html#a24404decccc16833973c803ced6f3a51">hipDeviceProp_t::l2CacheSize</a></div><div class="ttdeci">int l2CacheSize</div><div class="ttdoc">L2 cache size. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:89</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a88e525a7c8f35552dfada58e9f2f6d3a"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a88e525a7c8f35552dfada58e9f2f6d3a">hipErrorInvalidResourceHandle</a></div><div class="ttdoc">Resource handle (hipEvent_t or hipStream_t) invalid. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:119</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a8293288a10109874749afe2562db09f2"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a8293288a10109874749afe2562db09f2">hipErrorMemoryAllocation</a></div><div class="ttdoc">Memory allocation error. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:114</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_afc58158e44bef6ad26f2be401434b049"><div class="ttname"><a href="structhipDeviceProp__t.html#afc58158e44bef6ad26f2be401434b049">hipDeviceProp_t::arch</a></div><div class="ttdeci">hipDeviceArch_t arch</div><div class="ttdoc">Architectural feature flags. New for HIP. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:95</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_ae529c23929f592120081fed31d877a55"><div class="ttname"><a href="structhipDeviceProp__t.html#ae529c23929f592120081fed31d877a55">hipDeviceProp_t::maxGridSize</a></div><div class="ttdeci">int maxGridSize[3]</div><div class="ttdoc">max grid dimensions (XYZ) </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:82</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_ae7d9216f8583a703359d0b9373823f5d"><div class="ttname"><a href="structhipDeviceProp__t.html#ae7d9216f8583a703359d0b9373823f5d">hipDeviceProp_t::computeMode</a></div><div class="ttdeci">int computeMode</div><div class="ttdoc">Compute mode. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:91</div></div>
<div class="ttc" id="group__Memory_html_ga66399e729223ff5b66ffc16297c0710e"><div class="ttname"><a href="group__Memory.html#ga66399e729223ff5b66ffc16297c0710e">hipMallocHost</a></div><div class="ttdeci">hipError_t hipMallocHost(void **ptr, size_t size)</div><div class="ttdef"><b>Definition:</b> hip_hcc.cpp:1289</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e">hipErrorTbd</a></div><div class="ttdoc">Marker that more error codes are needed. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:125</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_aec9e4173c2e34cc232300c415dbd5e4f"><div class="ttname"><a href="structhipDeviceProp__t.html#aec9e4173c2e34cc232300c415dbd5e4f">hipDeviceProp_t::major</a></div><div class="ttdeci">int major</div><div class="ttdoc">Major compute capability. On HCC, this is an approximation and features may differ from CUDA CC...</div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:86</div></div>
<div class="ttc" id="group__GlobalDefs_html_gadf5010f6e140a53ecbdf949e73e87594"><div class="ttname"><a href="group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594">hipError_t</a></div><div class="ttdeci">hipError_t</div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:112</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a6fbf3b08a1a08ae700f1a06265f6666b"><div class="ttname"><a href="structhipDeviceProp__t.html#a6fbf3b08a1a08ae700f1a06265f6666b">hipDeviceProp_t::clockInstructionRate</a></div><div class="ttdeci">int clockInstructionRate</div><div class="ttdoc">Frequency in khz of the timer used by the device-side &quot;clock*&quot; instructions. New for HIP...</div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:93</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a813b3f014e2a3932d1f0e3e712cf9d3c">hipErrorMemoryFree</a></div><div class="ttdoc">Memory free error. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:115</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_af3357d33c004608bf05bc21a352be81b"><div class="ttname"><a href="structhipDeviceProp__t.html#af3357d33c004608bf05bc21a352be81b">hipDeviceProp_t::warpSize</a></div><div class="ttdeci">int warpSize</div><div class="ttdoc">warp size </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:79</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_acedd6a2d23423441e4bf51c4a1b719f9"><div class="ttname"><a href="structhipDeviceProp__t.html#acedd6a2d23423441e4bf51c4a1b719f9">hipDeviceProp_t::totalGlobalMem</a></div><div class="ttdeci">size_t totalGlobalMem</div><div class="ttdoc">Size of global memory region (in bytes) </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:76</div></div>
<div class="ttc" id="group__Memory_html_ga4c6fcfe80010069d2792780d00dcead2"><div class="ttname"><a href="group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2">hipMalloc</a></div><div class="ttdeci">hipError_t hipMalloc(void **ptr, size_t size)</div><div class="ttdef"><b>Definition:</b> hip_hcc.cpp:1268</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a8ebba6fc12f80c9a9cf9b9193f0da465"><div class="ttname"><a href="structhipDeviceProp__t.html#a8ebba6fc12f80c9a9cf9b9193f0da465">hipDeviceProp_t::maxThreadsDim</a></div><div class="ttdeci">int maxThreadsDim[3]</div><div class="ttdoc">max number of threads in each dimension (XYZ) of a block </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:81</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83">hipErrorInvalidValue</a></div><div class="ttdoc">One or more of the paramters passed to the API call is NULL or not in an acceptable range...</div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:118</div></div>
<div class="ttc" id="structhipDeviceProp__t_html"><div class="ttname"><a href="structhipDeviceProp__t.html">hipDeviceProp_t</a></div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:74</div></div>
<div class="ttc" id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1"><div class="ttname"><a href="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1">hipErrorNotReady</a></div><div class="ttdoc">indicates that asynchronous operations enqueued earlier are not ready. This is not actually an error...</div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:122</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_a5b44bf8fa46faefcde989942b1d11a5e"><div class="ttname"><a href="structhipDeviceProp__t.html#a5b44bf8fa46faefcde989942b1d11a5e">hipDeviceProp_t::name</a></div><div class="ttdeci">char name[256]</div><div class="ttdoc">Device name. </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:75</div></div>
<div class="ttc" id="structhipDeviceArch__t_html"><div class="ttname"><a href="structhipDeviceArch__t.html">hipDeviceArch_t</a></div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:35</div></div>
<div class="ttc" id="structhipDeviceProp__t_html_add8d9d2ad52aece9fd1dbe25c18d9d57"><div class="ttname"><a href="structhipDeviceProp__t.html#add8d9d2ad52aece9fd1dbe25c18d9d57">hipDeviceProp_t::multiProcessorCount</a></div><div class="ttdeci">int multiProcessorCount</div><div class="ttdoc">number of multi-processors (compute units) </div><div class="ttdef"><b>Definition:</b> hip_runtime_api.h:88</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Jan 25 2016 16:05:53 for HIP: Heterogenous-computing Interface for Portability by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>