~ubuntu-branches/ubuntu/trusty/khronos-opencl-man/trusty

« back to all changes in this revision

Viewing changes to clRetainKernel.xml

  • Committer: Package Import Robot
  • Author(s): Mathieu Malaterre
  • Date: 2013-05-21 18:06:15 UTC
  • Revision ID: package-import@ubuntu.com-20130521180615-6e0s2n3pai95ip2f
Tags: upstream-1.0~svn21772
ImportĀ upstreamĀ versionĀ 1.0~svn21772

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
 
3
              "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
 
4
 
 
5
<refentry>
 
6
    <refentryinfo>
 
7
        <keywordset>
 
8
            <keyword>clRetainKernel</keyword>
 
9
        </keywordset>
 
10
    </refentryinfo>
 
11
 
 
12
    <refmeta>
 
13
        <refentrytitle>       
 
14
            clRetainKernel
 
15
        </refentrytitle>
 
16
 
 
17
        <refmiscinfo>
 
18
            <copyright>
 
19
                <year>2007-2011</year>
 
20
                <holder>The Khronos Group Inc. 
 
21
 Permission is hereby granted, free of charge, to any person obtaining a
 
22
copy of this software and/or associated documentation files (the
 
23
"Materials"), to deal in the Materials without restriction, including
 
24
without limitation the rights to use, copy, modify, merge, publish,
 
25
distribute, sublicense, and/or sell copies of the Materials, and to
 
26
permit persons to whom the Materials are furnished to do so, subject to
 
27
the condition that this copyright notice and permission notice shall be included
 
28
in all copies or substantial portions of the Materials.</holder>
 
29
            </copyright>
 
30
        </refmiscinfo>
 
31
        <manvolnum>3</manvolnum>
 
32
    </refmeta>
 
33
 
 
34
<!-- ================================ SYNOPSIS -->  
 
35
 
 
36
    <refnamediv id="clReleaseKernel">
 
37
        <refname>     
 
38
            clRetainKernel
 
39
        </refname> 
 
40
 
 
41
        <refpurpose>          
 
42
            Increments the kernel object reference count. 
 
43
        </refpurpose> 
 
44
    </refnamediv> 
 
45
 
 
46
    <refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink"><title></title>
 
47
        <funcsynopsis>
 
48
            <funcprototype>
 
49
                <funcdef>
 
50
                    <link xlink:href="scalarDataTypes.html">cl_int</link>
 
51
 <function>clRetainKernel</function>
 
52
                </funcdef>
 
53
 
 
54
                <paramdef><link xlink:href="abstractDataTypes.html">cl_kernel</link><parameter>kernel</parameter></paramdef>                                
 
55
            </funcprototype>
 
56
        </funcsynopsis>     
 
57
    </refsynopsisdiv>
 
58
 
 
59
<!-- ================================ PARAMETERS -->    
 
60
<!--  <refsect1 id="parameters">
 
61
        <title>Parameters</title>
 
62
        <variablelist>
 
63
 
 
64
            <varlistentry>
 
65
                <term>
 
66
                    <varname> 
 
67
                    </varname>
 
68
                </term>
 
69
        </variablelist>
 
70
    </refsect1>
 
71
-->
 
72
 
 
73
<!-- ================================ NOTES  -->        
 
74
    <refsect1 id="notes"><title>Notes</title>
 
75
        <para>
 
76
            <citerefentry><refentrytitle>clCreateKernel</refentrytitle></citerefentry> or
 
77
            <citerefentry><refentrytitle>clCreateKernelsInProgram</refentrytitle></citerefentry> do an implicit retain.
 
78
        </para>
 
79
    </refsect1>
 
80
 
 
81
<!-- ================================ ERRORS  -->       
 
82
 
 
83
    <refsect1 id="errors"><title>Errors</title>
 
84
        <para>
 
85
          Returns <errorname>CL_SUCCESS</errorname> if the function is executed
 
86
          successfully. Otherwise, it returns one of the following errors:
 
87
        </para>
 
88
 
 
89
        <itemizedlist mark="disc">
 
90
            <listitem>
 
91
                <errorname>CL_INVALID_KERNEL</errorname> if <varname>kernel</varname> is not a valid kernel object.
 
92
            </listitem>
 
93
 
 
94
            <listitem>
 
95
                <errorname>CL_OUT_OF_RESOURCES</errorname> if there is a failure to allocate resources required by the 
 
96
                OpenCL implementation on the device.
 
97
            </listitem>
 
98
 
 
99
            <listitem>
 
100
                <errorname>CL_OUT_OF_HOST_MEMORY</errorname> if there is a failure to allocate resources required by the
 
101
                OpenCL implementation on the host.  
 
102
            </listitem>     
 
103
        </itemizedlist>
 
104
    </refsect1> 
 
105
 
 
106
<!-- ================================ EXAMPLE  -->  
 
107
<!-- DO NOT DELETE IN CASE AN EXAMPLE IS ADDED IN THE FUTURE -->
 
108
<!--    
 
109
    <refsect2 id="example1">
 
110
        <title>
 
111
            Example
 
112
        </title>
 
113
 
 
114
        <informaltable frame="none">
 
115
            <tgroup cols="1" align="left" colsep="0" rowsep="0">
 
116
                <colspec colname="col1" colnum="1" />
 
117
                <tbody>
 
118
                    <row>
 
119
                        <entry>
 
120
                            Example goes here - it will be set in "code" type with white space preserved.
 
121
                        </entry>
 
122
                    </row>
 
123
                </tbody>
 
124
            </tgroup>
 
125
        </informaltable>   
 
126
    </refsect2>  
 
127
--> 
 
128
 
 
129
<!-- ================================ SPECIFICATION  -->        
 
130
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page-->
 
131
 
 
132
    <refsect1 id="specification"><title>Specification</title>
 
133
        <para>
 
134
            <imageobject>
 
135
                <imagedata fileref="pdficon_small1.gif" format="gif" />
 
136
            </imageobject>
 
137
            <olink uri="clRetainKernel">OpenCL Specification</olink>
 
138
        </para>
 
139
    </refsect1>     
 
140
 
 
141
<!-- ================================ ALSO SEE  -->     
 
142
    <refsect1 id="seealso"><title>Also see</title>
 
143
        <para>
 
144
            <citerefentry><refentrytitle>clCreateKernel</refentrytitle></citerefentry>, 
 
145
            <citerefentry><refentrytitle>clCreateKernelsInProgram</refentrytitle></citerefentry>, 
 
146
            <citerefentry><refentrytitle>clReleaseKernel</refentrytitle></citerefentry>, 
 
147
            <citerefentry><refentrytitle>clSetKernelArg</refentrytitle></citerefentry>, 
 
148
            <citerefentry><refentrytitle>clGetKernelInfo</refentrytitle></citerefentry>, 
 
149
            <citerefentry><refentrytitle>clGetKernelWorkGroupInfo</refentrytitle></citerefentry>
 
150
        </para>
 
151
    </refsect1>
 
152
 
 
153
<!-- ============================== COPYRIGHT -->
 
154
<!-- Content included from copyright.inc.xsl -->
 
155
 
 
156
    <refsect3 id="Copyright"><title></title>
 
157
        <imageobject>
 
158
                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
 
159
        </imageobject>
 
160
        <para />
 
161
    </refsect3>
 
162
 
 
163
<!-- 18-Oct-2011 -->
 
164
</refentry>
 
165