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: HCC-Specific Accessors</ 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  Page</ span ></ a ></ li >
< li >< a href = "pages.html" >< span > Related  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 >< 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 > <!-- top -->
<!-- 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" >   </ span > All</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" >< span class = "SelectionMark" >   </ span > Classes</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" >< span class = "SelectionMark" >   </ span > Files</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" >< span class = "SelectionMark" >   </ span > Functions</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" >< span class = "SelectionMark" >   </ span > Variables</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" >< span class = "SelectionMark" >   </ span > Typedefs</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" >< span class = "SelectionMark" >   </ span > Enumerations</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" >< span class = "SelectionMark" >   </ span > Enumerator</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(8)" >< span class = "SelectionMark" >   </ span > Macros</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(9)" >< span class = "SelectionMark" >   </ span > Groups</ a >< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(10)" >< span class = "SelectionMark" >   </ 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 class = "header" >
< div class = "summary" >
< a href = "#func-members" > Functions</ a > </ div >
< div class = "headertitle" >
< div class = "title" > HCC-Specific Accessors< div class = "ingroups" >< a class = "el" href = "group__API.html" > HIP API</ a ></ div ></ div > </ div >
</ div > <!--header-->
< div class = "contents" >
< table class = "memberdecls" >
< tr class = "heading" >< td colspan = "2" >< h2 class = "groupheader" >< a name = "func-members" ></ a >
Functions</ h2 ></ td ></ tr >
< tr class = "memitem:ga0d24b3157fd1b16d38672bb157ec4cd4" >< td class = "memItemLeft" align = "right" valign = "top" >< a class = "el" href = "group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594" > hipError_t</ a >   </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "group__HCC__Specific.html#ga0d24b3157fd1b16d38672bb157ec4cd4" > hipHccGetAccelerator</ a > (int deviceId, hc::accelerator *acc)</ td ></ tr >
2016-02-18 20:43:03 -06:00
< tr class = "memdesc:ga0d24b3157fd1b16d38672bb157ec4cd4" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Return hc::accelerator associated with the specified deviceId. < a href = "#ga0d24b3157fd1b16d38672bb157ec4cd4" > More...</ a >< br /></ td ></ tr >
2016-01-26 20:14:33 -06:00
< tr class = "separator:ga0d24b3157fd1b16d38672bb157ec4cd4" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
< tr class = "memitem:ga1a7087ea9c3c3323270d7cce73650b44" >< td class = "memItemLeft" align = "right" valign = "top" >< a class = "el" href = "group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594" > hipError_t</ a >   </ td >< td class = "memItemRight" valign = "bottom" >< a class = "el" href = "group__HCC__Specific.html#ga1a7087ea9c3c3323270d7cce73650b44" > hipHccGetAcceleratorView</ a > (< a class = "el" href = "structihipStream__t.html" > hipStream_t</ a > stream, hc::accelerator_view **av)</ td ></ tr >
2016-02-18 20:43:03 -06:00
< tr class = "memdesc:ga1a7087ea9c3c3323270d7cce73650b44" >< td class = "mdescLeft" >   </ td >< td class = "mdescRight" > Return hc::accelerator_view associated with the specified stream. < a href = "#ga1a7087ea9c3c3323270d7cce73650b44" > More...</ a >< br /></ td ></ tr >
2016-01-26 20:14:33 -06:00
< tr class = "separator:ga1a7087ea9c3c3323270d7cce73650b44" >< td class = "memSeparator" colspan = "2" >   </ td ></ tr >
</ table >
< a name = "details" id = "details" ></ a >< h2 class = "groupheader" > Detailed Description</ h2 >
< h2 > ----------------------------------------------------------------------------------------------— </ h2 >
< p > The following calls are only supported when compiler HIP with HCC. To produce portable code, use of these calls must be guarded #ifdef checks: </ p >
< div class = "fragment" >< div class = "line" >< span class = "preprocessor" > #ifdef __HCC__</ span ></ div >
< div class = "line" >< span class = "preprocessor" ></ span > hc::accelerator acc;</ div >
< div class = "line" > < a class = "code" href = "group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594" > hipError_t</ a > err = < a class = "code" href = "group__HCC__Specific.html#ga0d24b3157fd1b16d38672bb157ec4cd4" > hipHccGetAccelerator</ a > (deviceId, & acc)</ div >
< div class = "line" >< span class = "preprocessor" > #endif</ span ></ div >
</ div > <!-- fragment --> < h2 class = "groupheader" > Function Documentation</ h2 >
< a class = "anchor" id = "ga0d24b3157fd1b16d38672bb157ec4cd4" ></ a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" >< a class = "el" href = "group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594" > hipError_t</ a > hipHccGetAccelerator </ td >
< td > (</ td >
< td class = "paramtype" > int  </ td >
< td class = "paramname" >< em > deviceId</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > hc::accelerator *  </ td >
< td class = "paramname" >< em > acc</ em >   </ td >
</ tr >
< tr >
< td ></ td >
< td > )</ td >
< td ></ td >< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-02-18 20:43:03 -06:00
< p > Return hc::accelerator associated with the specified deviceId. </ p >
2016-01-26 20:14:33 -06:00
< dl class = "section return" >< dt > Returns</ dt >< dd >< a class = "el" href = "group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063" title = "Successful completion. " > hipSuccess</ a > , < a class = "el" href = "group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594a07ab9b704ea693c1781a52741c60cd0d" title = "DeviceID must be in range 0...#compute-devices. " > hipErrorInvalidDevice</ a > </ dd ></ dl >
</ div >
</ div >
< a class = "anchor" id = "ga1a7087ea9c3c3323270d7cce73650b44" ></ a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" >< a class = "el" href = "group__GlobalDefs.html#gadf5010f6e140a53ecbdf949e73e87594" > hipError_t</ a > hipHccGetAcceleratorView </ td >
< td > (</ td >
< td class = "paramtype" >< a class = "el" href = "structihipStream__t.html" > hipStream_t</ a >   </ td >
< td class = "paramname" >< em > stream</ em > , </ td >
</ tr >
< tr >
< td class = "paramkey" ></ td >
< td ></ td >
< td class = "paramtype" > hc::accelerator_view **  </ td >
< td class = "paramname" >< em > av</ em >   </ td >
</ tr >
< tr >
< td ></ td >
< td > )</ td >
< td ></ td >< td ></ td >
</ tr >
</ table >
</ div >< div class = "memdoc" >
2016-02-18 20:43:03 -06:00
< p > Return hc::accelerator_view associated with the specified stream. </ p >
2016-01-26 20:14:33 -06:00
< dl class = "section return" >< dt > Returns</ dt >< dd >< a class = "el" href = "group__GlobalDefs.html#ggadf5010f6e140a53ecbdf949e73e87594aadfbdb847b149723c684ebd764556063" title = "Successful completion. " > hipSuccess</ a > </ dd ></ dl >
</ div >
</ div >
</ div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" />< address class = "footer" >< small >
2016-02-18 20:43:03 -06:00
Generated on Thu Feb 18 2016 20:42:16 for HIP: Heterogenous-computing Interface for Portability by   < a href = "http://www.doxygen.org/index.html" >
2016-01-26 20:14:33 -06:00
< img class = "footer" src = "doxygen.png" alt = "doxygen" />
</ a > 1.8.6
</ small ></ address >
</ body >
</ html >