<divclass="line"><aname="l00002"></a><spanclass="lineno"> 2</span> <spanclass="comment">Copyright (c) 2015-2016 Advanced Micro Devices, Inc. All rights reserved.</span></div>
<divclass="line"><aname="l00004"></a><spanclass="lineno"> 4</span> <spanclass="comment">Permission is hereby granted, free of charge, to any person obtaining a copy</span></div>
<divclass="line"><aname="l00005"></a><spanclass="lineno"> 5</span> <spanclass="comment">of this software and associated documentation files (the "Software"), to deal</span></div>
<divclass="line"><aname="l00006"></a><spanclass="lineno"> 6</span> <spanclass="comment">in the Software without restriction, including without limitation the rights</span></div>
<divclass="line"><aname="l00008"></a><spanclass="lineno"> 8</span> <spanclass="comment">copies of the Software, and to permit persons to whom the Software is</span></div>
<divclass="line"><aname="l00009"></a><spanclass="lineno"> 9</span> <spanclass="comment">furnished to do so, subject to the following conditions:</span></div>
<divclass="line"><aname="l00011"></a><spanclass="lineno"> 11</span> <spanclass="comment">The above copyright notice and this permission notice shall be included in</span></div>
<divclass="line"><aname="l00012"></a><spanclass="lineno"> 12</span> <spanclass="comment">all copies or substantial portions of the Software.</span></div>
<divclass="line"><aname="l00014"></a><spanclass="lineno"> 14</span> <spanclass="comment">THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div>
<divclass="line"><aname="l00015"></a><spanclass="lineno"> 15</span> <spanclass="comment">IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div>
<divclass="line"><aname="l00016"></a><spanclass="lineno"> 16</span> <spanclass="comment">FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div>
<divclass="line"><aname="l00017"></a><spanclass="lineno"> 17</span> <spanclass="comment">AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div>
<divclass="line"><aname="l00018"></a><spanclass="lineno"> 18</span> <spanclass="comment">LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div>
<divclass="line"><aname="l00019"></a><spanclass="lineno"> 19</span> <spanclass="comment">OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span></div>
<divclass="line"><aname="l00032"></a><spanclass="lineno"> 32</span> <spanclass="preprocessor">#include <string.h></span><spanclass="comment">// for getDeviceProp</span></div>
<divclass="line"><aname="l00068"></a><spanclass="lineno"> 68</span> <spanclass="comment">// Common headers for both NVCC and HCC paths:</span></div>
<divclass="line"><aname="l00123"></a><spanclass="lineno"> 123</span> <spanclass="keywordtype">unsigned</span> allocationFlags; <spanclass="comment">/* flags specified when memory was allocated*/</span></div>
<divclass="line"><aname="l00128"></a><spanclass="lineno"> 128</span> <spanclass="comment">// hack to get these to show up in Doxygen:</span></div>
<divclass="line"><aname="l00141"></a><spanclass="lineno"> 141</span> <spanclass="comment">// Developer note - when updating these, update the hipErrorName and hipErrorString functions in NVCC and HCC paths</span></div>
<divclass="line"><aname="l00207"></a><spanclass="lineno"> 207</span> <spanclass="preprocessor"></span><spanclass="preprocessor">#error("Must define exactly one of __HIP_PLATFORM_HCC__ or __HIP_PLATFORM_NVCC__");</span></div>
<divclass="line"><aname="l00225"></a><spanclass="lineno"> 225</span> <spanclass="comment">// Provide an override to automatically typecast the pointer type from void**, and also provide a default for the flags.</span></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ad4406972c318df36d231310a15131c24">hipErrorNoDevice</a></div><divclass="ttdoc">Call to hipGetDeviceCount returned 0 devices. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:155</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a29880232c56120be3455ce00d5379665"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a29880232c56120be3455ce00d5379665">hipDeviceProp_t::totalConstMem</a></div><divclass="ttdeci">size_t totalConstMem</div><divclass="ttdoc">Size of shared memory region (in bytes). </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:86</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7cad3e7f3d01533b32e12211172fcf410ba"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cad3e7f3d01533b32e12211172fcf410ba">hipDeviceAttributeMaxSharedMemoryPerMultiprocessor</a></div><divclass="ttdoc">Maximum Shared Memory Per Multiprocessor. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:194</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7cac1e4ac589db0d8adbbc241e3d0fcd594"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7cac1e4ac589db0d8adbbc241e3d0fcd594">hipDeviceAttributeMaxBlockDimX</a></div><divclass="ttdoc">Maximum x-dimension of a block. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:172</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca03db8df0e7a9fbdaae683d97e8ac9c87"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca03db8df0e7a9fbdaae683d97e8ac9c87">hipDeviceAttributeMaxGridDimX</a></div><divclass="ttdoc">Maximum x-dimension of a grid. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:175</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a5399c146f91246f8b77abcd4ea30e7ac"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a5399c146f91246f8b77abcd4ea30e7ac">hipErrorPeerAccessAlreadyEnabled</a></div><divclass="ttdoc">Peer access was already enabled from the current device. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:159</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a1159eb9a6be66bea740a8bfb61378723"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1159eb9a6be66bea740a8bfb61378723">hipErrorRuntimeMemory</a></div><divclass="ttdoc">HSA runtime memory call returned error. Typically not seen in production systems. ...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:160</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca848c1396fab6f20463c6aefb828b0870"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca848c1396fab6f20463c6aefb828b0870">hipDeviceAttributeMemoryBusWidth</a></div><divclass="ttdoc">Global memory bus width in bits. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:184</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_abb51208e2509a7a1d107f0da69108938"><divclass="ttname"><ahref="structhipDeviceProp__t.html#abb51208e2509a7a1d107f0da69108938">hipDeviceProp_t::minor</a></div><divclass="ttdeci">int minor</div><divclass="ttdoc">Minor compute capability. On HCC, this is an approximation and features may differ from CUDA CC...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:88</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_ac2143f5448607d1a02a9e8783fcf06a1"><divclass="ttname"><ahref="structhipDeviceProp__t.html#ac2143f5448607d1a02a9e8783fcf06a1">hipDeviceProp_t::canMapHostMemory</a></div><divclass="ttdeci">int canMapHostMemory</div><divclass="ttdoc">Check whether HIP can map host memory. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:100</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca82289b170192b6ea742be0efc6f95107"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca82289b170192b6ea742be0efc6f95107">hipDeviceAttributeMaxRegistersPerBlock</a></div><divclass="ttdoc">Maximum number of 32-bit registers available to a thread block. This number is shared by all thread b...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:181</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca582ae5a26a7148504878890028e4b64c"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca582ae5a26a7148504878890028e4b64c">hipDeviceAttributeL2CacheSize</a></div><divclass="ttdoc">Size of L2 cache in bytes. 0 if the device doesn't have L2 cache. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:187</div></div>
<divclass="ttc"id="group__GlobalDefs_html_gad594ec51cb5b5e946c1e354bf80bddc7"><divclass="ttname"><ahref="group__GlobalDefs.html#gad594ec51cb5b5e946c1e354bf80bddc7">hipHostMallocDefault</a></div><divclass="ttdeci">#define hipHostMallocDefault</div><divclass="ttdoc">Flags that can be used with hipHostMalloc. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:69</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a44f847c5914be2177feac107dcb096d1"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a44f847c5914be2177feac107dcb096d1">hipErrorRuntimeOther</a></div><divclass="ttdoc">HSA runtime call other than memory returned error. Typically not seen in production systems...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:161</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a9bb19b2b0cdee8977ed63964532d639d"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a9bb19b2b0cdee8977ed63964532d639d">hipDeviceProp_t::isMultiGpuBoard</a></div><divclass="ttdeci">int isMultiGpuBoard</div><divclass="ttdoc">1 if device is on a multi-GPU board, 0 if not. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:99</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d">hipErrorInvalidDevice</a></div><divclass="ttdoc">DeviceID must be in range 0...#compute-devices. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:150</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2300e077e020e7967592065561373b00"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2300e077e020e7967592065561373b00">hipDeviceAttributeClockRate</a></div><divclass="ttdoc">Peak clock frequency in kilohertz. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:182</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a1dd15bee43692b8649dfbdc1adbaaf96"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a1dd15bee43692b8649dfbdc1adbaaf96">hipDeviceProp_t::clockRate</a></div><divclass="ttdeci">int clockRate</div><divclass="ttdoc">Max clock frequency of the multiProcessors in khz. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:83</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6c206ac083999caf4640e5d91dae24f7"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6c206ac083999caf4640e5d91dae24f7">hipDeviceAttributeMaxGridDimZ</a></div><divclass="ttdoc">Maximum z-dimension of a grid. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:177</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca38edc4fcae456e47160d349da3249b85"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca38edc4fcae456e47160d349da3249b85">hipDeviceAttributeComputeCapabilityMinor</a></div><divclass="ttdoc">Minor compute capability version number. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:190</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca7bca3aa18b26d40eba043ae93e15c7e5"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca7bca3aa18b26d40eba043ae93e15c7e5">hipDeviceAttributeMaxSharedMemoryPerBlock</a></div><divclass="ttdoc">Maximum shared memory available per block in bytes. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:178</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5b5cc49972679c5ccf62b79425ee99df"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5b5cc49972679c5ccf62b79425ee99df">hipDeviceAttributeMaxGridDimY</a></div><divclass="ttdoc">Maximum y-dimension of a grid. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:176</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_af971cf1ca3ec1f68ad09036c0cc672e0"><divclass="ttname"><ahref="structhipDeviceProp__t.html#af971cf1ca3ec1f68ad09036c0cc672e0">hipDeviceProp_t::maxThreadsPerBlock</a></div><divclass="ttdeci">int maxThreadsPerBlock</div><divclass="ttdoc">Max work items per work group or workgroup max size. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:80</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca187dbffe12db09a56c0f75c340d879c9"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca187dbffe12db09a56c0f75c340d879c9">hipDeviceAttributeMaxBlockDimY</a></div><divclass="ttdoc">Maximum y-dimension of a block. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:173</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a3b9138678a0795c2677eddcfb1c67156"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a3b9138678a0795c2677eddcfb1c67156">hipDeviceProp_t::sharedMemPerBlock</a></div><divclass="ttdeci">size_t sharedMemPerBlock</div><divclass="ttdoc">Size of shared memory region (in bytes). </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:77</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2735739cf977b7d303266f6781131e8d"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca2735739cf977b7d303266f6781131e8d">hipDeviceAttributeComputeCapabilityMajor</a></div><divclass="ttdoc">Major compute capability version number. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:189</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a2ee0bf2e64840f253e4a1b12bbaf2d09"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a2ee0bf2e64840f253e4a1b12bbaf2d09">hipErrorPeerAccessNotEnabled</a></div><divclass="ttdoc">Peer access was never enabled from the current device. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:158</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca8327aa23782d9c994bdef33a6d62e02e"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca8327aa23782d9c994bdef33a6d62e02e">hipDeviceAttributeMaxThreadsPerBlock</a></div><divclass="ttdoc">Maximum number of threads per block. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:171</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_afc58158e44bef6ad26f2be401434b049"><divclass="ttname"><ahref="structhipDeviceProp__t.html#afc58158e44bef6ad26f2be401434b049">hipDeviceProp_t::arch</a></div><divclass="ttdeci">hipDeviceArch_t arch</div><divclass="ttdoc">Architectural feature flags. New for HIP. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:94</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7caf811f51e03d1ffb025d80ac1da088675"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caf811f51e03d1ffb025d80ac1da088675">hipDeviceAttributeMaxBlockDimZ</a></div><divclass="ttdoc">Maximum z-dimension of a block. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:174</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca572b29c44f1322aa7657fdd784832f88"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca572b29c44f1322aa7657fdd784832f88">hipDeviceAttributePciBusId</a></div><divclass="ttdoc">PCI Bus ID. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:192</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594ab556409e11ddb0c4cf77a2f4fc91ea9e">hipErrorTbd</a></div><divclass="ttdoc">Marker that more error codes are needed. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:162</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7caffd94133e823247a6f1215343232f6ec"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caffd94133e823247a6f1215343232f6ec">hipDeviceAttributeWarpSize</a></div><divclass="ttdoc">Warp size in threads. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:180</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_aec9e4173c2e34cc232300c415dbd5e4f"><divclass="ttname"><ahref="structhipDeviceProp__t.html#aec9e4173c2e34cc232300c415dbd5e4f">hipDeviceProp_t::major</a></div><divclass="ttdeci">int major</div><divclass="ttdoc">Major compute capability. On HCC, this is an approximation and features may differ from CUDA CC...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:87</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6b68deafd65f036b30dc8051573eb000"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca6b68deafd65f036b30dc8051573eb000">hipDeviceAttributeMemoryClockRate</a></div><divclass="ttdoc">Peak memory clock frequency in kilohertz. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:183</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7caddc08922b491eb1f6a583833cbf4e2f0"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7caddc08922b491eb1f6a583833cbf4e2f0">hipDeviceAttributeMaxThreadsPerMultiProcessor</a></div><divclass="ttdoc">Maximum resident threads per multiprocessor. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:188</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a6fbf3b08a1a08ae700f1a06265f6666b"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a6fbf3b08a1a08ae700f1a06265f6666b">hipDeviceProp_t::clockInstructionRate</a></div><divclass="ttdeci">int clockInstructionRate</div><divclass="ttdoc">Frequency in khz of the timer used by the device-side "clock*" instructions. New for HIP...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:93</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_acedd6a2d23423441e4bf51c4a1b719f9"><divclass="ttname"><ahref="structhipDeviceProp__t.html#acedd6a2d23423441e4bf51c4a1b719f9">hipDeviceProp_t::totalGlobalMem</a></div><divclass="ttdeci">size_t totalGlobalMem</div><divclass="ttdoc">Size of global memory region (in bytes). </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:76</div></div>
<divclass="ttc"id="group__Memory_html_ga4c6fcfe80010069d2792780d00dcead2"><divclass="ttname"><ahref="group__Memory.html#ga4c6fcfe80010069d2792780d00dcead2">hipMalloc</a></div><divclass="ttdeci">hipError_t hipMalloc(void **ptr, size_t size)</div><divclass="ttdoc">Allocate memory on the default accelerator. </div><divclass="ttdef"><b>Definition:</b> hip_memory.cpp:117</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca4d0369a6ef7bd7890fdcabc16ed3385d"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca4d0369a6ef7bd7890fdcabc16ed3385d">hipDeviceAttributeComputeMode</a></div><divclass="ttdoc">Compute mode that device is currently in. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:186</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a8ebba6fc12f80c9a9cf9b9193f0da465"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a8ebba6fc12f80c9a9cf9b9193f0da465">hipDeviceProp_t::maxThreadsDim</a></div><divclass="ttdeci">int maxThreadsDim[3]</div><divclass="ttdoc">Max number of threads in each dimension (XYZ) of a block. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:81</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5c1519870733ccf0b83f722678240e5f"><divclass="ttname"><ahref="group__GlobalDefs.html#ggacc0acd7b9bda126c6bb3dfd6e2796d7ca5c1519870733ccf0b83f722678240e5f">hipDeviceAttributeMultiprocessorCount</a></div><divclass="ttdoc">Number of multiprocessors on the device. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:185</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a1d710ce8bd34daf66f892a66a2273132"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a1d710ce8bd34daf66f892a66a2273132">hipDeviceProp_t::memoryBusWidth</a></div><divclass="ttdeci">int memoryBusWidth</div><divclass="ttdoc">Global memory bus width in bits. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:85</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a1e8215fe1108a508bad3944bce7b4d83">hipErrorInvalidValue</a></div><divclass="ttdoc">One or more of the parameters passed to the API call is NULL or not in an acceptable range...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:148</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aa9638063c8746a9d1fda2b2069a0a9f1">hipErrorNotReady</a></div><divclass="ttdoc">Indicates that asynchronous operations enqueued earlier are not ready. This is not actually an error...</div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:156</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_aa1a32a7f387f6da845db7b228711fce8"><divclass="ttname"><ahref="structhipDeviceProp__t.html#aa1a32a7f387f6da845db7b228711fce8">hipDeviceProp_t::maxSharedMemoryPerMultiProcessor</a></div><divclass="ttdeci">size_t maxSharedMemoryPerMultiProcessor</div><divclass="ttdoc">Maximum Shared Memory Per Multiprocessor. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:98</div></div>
<divclass="ttc"id="hcc__detail_2hip__runtime__api_8h_html"><divclass="ttname"><ahref="hcc__detail_2hip__runtime__api_8h.html">hip_runtime_api.h</a></div><divclass="ttdoc">Contains C function APIs for HIP runtime. This file does not use any HCC builtin or special language ...</div></div>
<divclass="ttc"id="structhipDeviceProp__t_html_a6db0ab8e7e8cc13c84d7bb7f70226d5e"><divclass="ttname"><ahref="structhipDeviceProp__t.html#a6db0ab8e7e8cc13c84d7bb7f70226d5e">hipDeviceProp_t::memoryClockRate</a></div><divclass="ttdeci">int memoryClockRate</div><divclass="ttdoc">Max global memory clock frequency in khz. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:84</div></div>
<divclass="ttc"id="group__GlobalDefs_html_ggadf5010f6e140a53ecbdf949e73e87594a7e935ae88ee1f9ff3920156ac6864520"><divclass="ttname"><ahref="group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a7e935ae88ee1f9ff3920156ac6864520">hipErrorInitializationError</a></div><divclass="ttdoc">TODO comment from hipErrorInitializationError. </div><divclass="ttdef"><b>Definition:</b> hip_runtime_api.h:153</div></div>