blob: 3c076a57f3b78b4e38792f8820bf06cfde0cf835 [file] [log] [blame]
<!-- HTML header for doxygen 1.8.9.1-->
<!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.11"/>
<meta name="robots" content="NOINDEX, NOFOLLOW" /> <!-- Prevent indexing by search engines -->
<title>Compute Library: arm_compute/core/CL/OpenCL.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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</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/javascript">
$(document).ready(function() { init_search(); });
</script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
</script><script type="text/javascript" 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 style="padding-left: 0.5em;">
<div id="projectname">Compute Library
&#160;<span id="projectnumber">18.08</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<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.xhtml"><span>Main&#160;Page</span></a></li>
<li><a href="pages.xhtml"><span>Related&#160;Pages</span></a></li>
<li><a href="namespaces.xhtml"><span>Namespaces</span></a></li>
<li><a href="annotated.xhtml"><span>Data&#160;Structures</span></a></li>
<li class="current"><a href="files.xhtml"><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.xhtml"><span>File&#160;List</span></a></li>
<li><a href="globals.xhtml"><span>Globals</span></a></li>
</ul>
</div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('_open_c_l_8h_source.xhtml','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
<div class="headertitle">
<div class="title">OpenCL.h</div> </div>
</div><!--header-->
<div class="contents">
<a href="_open_c_l_8h.xhtml">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) 2016-2018 ARM Limited.</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"> * SPDX-License-Identifier: MIT</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</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="l00007"></a><span class="lineno"> 7</span>&#160;<span class="comment"> * of this software and associated documentation files (the &quot;Software&quot;), to</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span>&#160;<span class="comment"> * deal in the Software without restriction, including without limitation the</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span>&#160;<span class="comment"> * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span>&#160;<span class="comment"> * sell copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span>&#160;<span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in all</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span>&#160;<span class="comment"> * copies or substantial portions of the Software.</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</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="l00017"></a><span class="lineno"> 17</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span>&#160;<span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span>&#160;<span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span>&#160;<span class="comment"> * SOFTWARE.</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span>&#160;<span class="preprocessor">#ifndef __ARM_COMPUTE_OPENCL_H__</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span>&#160;<span class="preprocessor">#define __ARM_COMPUTE_OPENCL_H__</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span>&#160;</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span>&#160;<span class="comment">/* Configure the Khronos C++ wrapper to target OpenCL 1.2: */</span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>&#160;<span class="preprocessor">#ifndef ARM_COMPUTE_NO_EXCEPTIONS</span></div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="_open_c_l_8h.xhtml#ae7c96c1469662004d842704e2ff076fb"> 32</a></span>&#160;<span class="preprocessor">#define CL_HPP_ENABLE_EXCEPTIONS</span></div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>&#160;<span class="preprocessor">#endif // ARM_COMPUTE_NO_EXCEPTIONS</span></div><div class="line"><a name="l00034"></a><span class="lineno"><a class="line" href="_open_c_l_8h.xhtml#a5990dea19d4ccb046a3d81b311457add"> 34</a></span>&#160;<span class="preprocessor">#define CL_TARGET_OPENCL_VERSION 200</span></div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="_open_c_l_8h.xhtml#a37ea07405ca286c1570612b42d43b345"> 35</a></span>&#160;<span class="preprocessor">#define CL_HPP_TARGET_OPENCL_VERSION 110</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="_open_c_l_8h.xhtml#a2053025c576bcf48e249dd20e884a560"> 36</a></span>&#160;<span class="preprocessor">#define CL_HPP_MINIMUM_OPENCL_VERSION 110</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>&#160;<span class="preprocessor">#pragma GCC diagnostic push</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span>&#160;<span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Weffc++&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>&#160;<span class="preprocessor">#pragma GCC diagnostic ignored &quot;-Wignored-qualifiers&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>&#160;<span class="preprocessor">#include &lt;CL/cl2.hpp&gt;</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>&#160;<span class="preprocessor">#pragma GCC diagnostic pop</span></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="keyword">namespace </span><a class="code" href="namespacecl.xhtml">cl</a></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>&#160;<span class="keyword">static</span> <span class="keyword">const</span> NDRange Range_128_1 = NDRange(128, 1);</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span>&#160;} <span class="comment">// namespace cl</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>&#160;</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacearm__compute.xhtml">arm_compute</a></div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>&#160;{</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="namespacearm__compute.xhtml#aa4f4d7a58287017588fc338965873f14">opencl_is_available</a>();</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160;</div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml"> 57</a></span>&#160;<span class="keyword">class </span><a class="code" href="classarm__compute_1_1_c_l_symbols.xhtml">CLSymbols</a> final</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span>&#160;{</div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>&#160; <a class="code" href="classarm__compute_1_1_c_l_symbols.xhtml">CLSymbols</a>() = <span class="keywordflow">default</span>;</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>&#160; <span class="keywordtype">void</span> load_symbols(<span class="keywordtype">void</span> *handle);</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span>&#160;</div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <span class="keyword">static</span> <a class="code" href="classarm__compute_1_1_c_l_symbols.xhtml">CLSymbols</a> &amp;<span class="keyword">get</span>();</div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span>&#160; <span class="keywordtype">bool</span> load(<span class="keyword">const</span> std::string &amp;<a class="code" href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">library</a>);</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>&#160; <span class="keywordtype">bool</span> load_default();</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c"> 82</a></span>&#160;<span class="preprocessor">#define DECLARE_FUNCTION_PTR(func_name) \</span></div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span>&#160;<span class="preprocessor"> std::function&lt;decltype(func_name)&gt; func_name##_ptr = nullptr</span></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="classarm__compute_1_1_c_l_symbols.xhtml#a14a1465f79e3703561c9ee0723276603"> 85</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clCreateContext);</div><div class="line"><a name="l00086"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#af60dbcf4d37ee4dd2c34cfbf08e64671"> 86</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clCreateContextFromType);</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a9edd71637c165f39e1913b22bdafcd67"> 87</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clCreateCommandQueue);</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ac3b351139d8ac903bfa75463903ef002"> 88</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetContextInfo);</div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ad35af0d314615874e570540e9853668c"> 89</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clBuildProgram);</div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ab5c1d962dbe252b8d6a9a3414557d194"> 90</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueNDRangeKernel);</div><div class="line"><a name="l00091"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a021f5850b98ba79d84067e762b84aa52"> 91</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clSetKernelArg);</div><div class="line"><a name="l00092"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a49d82b362ebf160e65d162d6c9de31b1"> 92</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clReleaseKernel);</div><div class="line"><a name="l00093"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a62fb6450bf1c30cca66d6547348eee3c"> 93</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clCreateProgramWithSource);</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a301b84af701238b357de87434d0327a9"> 94</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clCreateBuffer);</div><div class="line"><a name="l00095"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a70f0c6b172261cc89e5d90239a8b70d0"> 95</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clRetainKernel);</div><div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a02aff28f848c48e02fababe120a0df36"> 96</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clCreateKernel);</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a38787d16b9a4ccb79f11c9e807b31f39"> 97</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetProgramInfo);</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ac88fa83ac520504fa6792d8c1e5296b6"> 98</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clFlush);</div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a31fd3504c695582b52ee2426dc71c1d7"> 99</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clFinish);</div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a0462afdc2906b59dd0a860c84c8f3d8a"> 100</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clReleaseProgram);</div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a7d3ddaa28e01b8d4aeef8a5a3ae05f16"> 101</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clRetainContext);</div><div class="line"><a name="l00102"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a2263b6ca759bdfed0a0727d2b68db916"> 102</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clCreateProgramWithBinary);</div><div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a2cc4ea7d2743d398a26055f062052762"> 103</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clReleaseCommandQueue);</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#abd0ba6c593ff83cb0c3d0e1b746f068a"> 104</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueMapBuffer);</div><div class="line"><a name="l00105"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#aa9752599bfd3a28d9c34cfb59c8feaf3"> 105</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clRetainProgram);</div><div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a34391377f3991f0a88631cf1b05e3c8b"> 106</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetProgramBuildInfo);</div><div class="line"><a name="l00107"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a114ecc5c7e99f380a84d33f32038dc27"> 107</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueReadBuffer);</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a3085f45d872eda6b1adf8557fd4915b9"> 108</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueWriteBuffer);</div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a8f72204edecff30764f23d06c4e4ae20"> 109</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clReleaseEvent);</div><div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#aff1103110d2ad3e5fc2a8e0a746059b3"> 110</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clReleaseContext);</div><div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a3777a685e4430d6dcdddd73531cc3cc3"> 111</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clRetainCommandQueue);</div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#aab857577e126a171222277703b724639"> 112</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueUnmapMemObject);</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ab7b31e7922544d4a6325320f08ad2474"> 113</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clRetainMemObject);</div><div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a9385d6637f840d613d72f35a389d1c64"> 114</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clReleaseMemObject);</div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ab6c28e45955ab8420512342ed6fa6934"> 115</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetDeviceInfo);</div><div class="line"><a name="l00116"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a73ac5a70dfe6076f17a0b16d3a021daa"> 116</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetDeviceIDs);</div><div class="line"><a name="l00117"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a96cfa134e391cec1fa131849b9dc6648"> 117</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clRetainEvent);</div><div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#aa794227c46c954c6e6684d21af618b00"> 118</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetPlatformIDs);</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#aa5bc2c92a538b212960c02f9cb480afe"> 119</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetKernelWorkGroupInfo);</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a8709746b1a7fc8ac57ce61349332e866"> 120</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetCommandQueueInfo);</div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a7b9fe21a9872e746fa811b916e4dd9bf"> 121</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetKernelInfo);</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#aad5f68729eb6cc674fce0fd950c5b765"> 122</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clGetEventProfilingInfo);</div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#abf58c6d99585520b40a396a890caa9ee"> 123</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clSVMAlloc);</div><div class="line"><a name="l00124"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#adbd557acca5bc0f92a1a7f8ebc26e9ed"> 124</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clSVMFree);</div><div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ae4a0c63c4f06c8d80788da461812bf4c"> 125</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueSVMMap);</div><div class="line"><a name="l00126"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#ab30bda3641f8d1a73126884a9fd66a89"> 126</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueSVMUnmap);</div><div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a527fd99779c605a2203158219f18e95f"> 127</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clEnqueueMarker);</div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classarm__compute_1_1_c_l_symbols.xhtml#a8fd1b20db02f6fb96562ddff20134a53"> 128</a></span>&#160; <a class="code" href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a>(clWaitForEvents);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>&#160;<span class="preprocessor">#undef DECLARE_FUNCTION_PTR</span></div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="keyword">private</span>:</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; std::pair&lt;bool, bool&gt; _loaded{ <span class="keyword">false</span>, <span class="keyword">false</span> };</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160;};</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160;} <span class="comment">// namespace arm_compute</span></div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* __ARM_COMPUTE_OPENCL_H__ */</span><span class="preprocessor"></span></div><div class="ttc" id="classarm__compute_1_1_c_l_symbols_xhtml"><div class="ttname"><a href="classarm__compute_1_1_c_l_symbols.xhtml">arm_compute::CLSymbols</a></div><div class="ttdoc">Class for loading OpenCL symbols. </div><div class="ttdef"><b>Definition:</b> <a href="_open_c_l_8h_source.xhtml#l00057">OpenCL.h:57</a></div></div>
<div class="ttc" id="namespacecl_xhtml"><div class="ttname"><a href="namespacecl.xhtml">cl</a></div><div class="ttdef"><b>Definition:</b> <a href="_i_c_l_distribution1_d_8h_source.xhtml#l00032">ICLDistribution1D.h:32</a></div></div>
<div class="ttc" id="namespacearm__compute_xhtml_aa4f4d7a58287017588fc338965873f14"><div class="ttname"><a href="namespacearm__compute.xhtml#aa4f4d7a58287017588fc338965873f14">arm_compute::opencl_is_available</a></div><div class="ttdeci">bool opencl_is_available()</div><div class="ttdoc">Check if OpenCL is available. </div></div>
<div class="ttc" id="namespacearm__compute_xhtml"><div class="ttname"><a href="namespacearm__compute.xhtml">arm_compute</a></div><div class="ttdoc">This file contains all available output stages for GEMMLowp on OpenCL. </div><div class="ttdef"><b>Definition:</b> <a href="00__introduction_8dox_source.xhtml#l00001">00_introduction.dox:1</a></div></div>
<div class="ttc" id="namespacearm__compute_1_1test_xhtml_a71326f0909d77386e29b511e1990a11f"><div class="ttname"><a href="namespacearm__compute_1_1test.xhtml#a71326f0909d77386e29b511e1990a11f">arm_compute::test::library</a></div><div class="ttdeci">std::unique_ptr&lt; AssetsLibrary &gt; library</div><div class="ttdef"><b>Definition:</b> <a href="main_8cpp_source.xhtml#l00072">main.cpp:72</a></div></div>
<div class="ttc" id="_open_c_l_8h_xhtml_af6e65f36e2be6bd9a1cac10ba6e82f7c"><div class="ttname"><a href="_open_c_l_8h.xhtml#af6e65f36e2be6bd9a1cac10ba6e82f7c">DECLARE_FUNCTION_PTR</a></div><div class="ttdeci">#define DECLARE_FUNCTION_PTR(func_name)</div><div class="ttdef"><b>Definition:</b> <a href="_open_c_l_8h_source.xhtml#l00082">OpenCL.h:82</a></div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><a class="el" href="dir_214608ef36d61442cb2b0c1c4e9a7def.xhtml">arm_compute</a></li><li class="navelem"><a class="el" href="dir_1fb090f0c6070330bfaccc4236d3ca0d.xhtml">core</a></li><li class="navelem"><a class="el" href="dir_1633709b037eda5b8477677909f78129.xhtml">CL</a></li><li class="navelem"><a class="el" href="_open_c_l_8h.xhtml">OpenCL.h</a></li>
<li class="footer">Generated on Wed Aug 29 2018 15:31:23 for Compute Library by
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
</ul>
</div>
</body>
</html>