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

« back to all changes in this revision

Viewing changes to clEnqueueBarrierWithWaitList.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>clEnqueueBarrierWithWaitList</keyword>
 
9
        </keywordset>
 
10
    </refentryinfo>
 
11
 
 
12
    <refmeta>
 
13
        <refentrytitle>
 
14
            clEnqueueBarrierWithWaitList
 
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="clEnqueueBarrierWithWaitList">
 
37
        <refname>
 
38
            clEnqueueBarrierWithWaitList
 
39
        </refname>
 
40
 
 
41
        <refpurpose>
 
42
            A synchronization point that enqueues a barrier operation.
 
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>clEnqueueBarrierWithWaitList</function>
 
52
                </funcdef>
 
53
                <paramdef>
 
54
                    <link xlink:href="abstractDataTypes.html">cl_command_queue</link>
 
55
                    <parameter>command_queue</parameter>
 
56
                </paramdef>
 
57
                <paramdef>
 
58
                    <link xlink:href="abstractDataTypes.html">cl_uint</link>
 
59
                    <parameter>num_events_in_wait_list</parameter>
 
60
                </paramdef>
 
61
                <paramdef>const
 
62
                    <link xlink:href="abstractDataTypes.html">cl_event</link>
 
63
                    <parameter>*event_wait_list</parameter>
 
64
                </paramdef>
 
65
                <paramdef>
 
66
                    <link xlink:href="abstractDataTypes.html">cl_event</link>
 
67
                    <parameter>*event</parameter>
 
68
                </paramdef>
 
69
            </funcprototype>
 
70
        </funcsynopsis>
 
71
    </refsynopsisdiv>
 
72
 
 
73
<!-- ================================ PARAMETERS -->
 
74
<!-- -->
 
75
 
 
76
    <refsect1 id="parameters">
 
77
        <title>Parameters</title>
 
78
        <variablelist>
 
79
 
 
80
            <varlistentry>
 
81
                <term> <varname> command_queue </varname> </term>
 
82
                <listitem>
 
83
                    <para>
 
84
                        A valid command queue.
 
85
                    </para>
 
86
               </listitem>
 
87
            </varlistentry>
 
88
 
 
89
            <varlistentry>
 
90
                <term>
 
91
                    <varname>
 
92
                        event_wait_list
 
93
                    </varname>,
 
94
                    <varname>
 
95
                        num_events_in_wait_list
 
96
                    </varname>
 
97
                </term>
 
98
                <listitem>
 
99
                    <para>
 
100
                        Specify events that need to complete before this particular command can be executed.
 
101
                    </para>
 
102
 
 
103
                    <para>
 
104
                      If <varname>event_wait_list</varname> is NULL,
 
105
                      <varname>num_events_in_wait_list</varname> must be 0. If
 
106
                      <varname>event_wait_list</varname> is not NULL, the list of events
 
107
                      pointed to by <varname>event_wait_list</varname> must be valid
 
108
                      and <varname>num_events_in_wait_list</varname> must be greater
 
109
                      than 0. The events specified in <varname>event_wait_list</varname>
 
110
                      act as synchronization points. The context associated with events in
 
111
                      <varname>event_wait_list</varname> and <varname>command_queue</varname> must
 
112
                      be the same. The memory associated with <varname>event_wait_list</varname>
 
113
                      can be reused or freed after the function returns.
 
114
                    </para>
 
115
 
 
116
                    <para>
 
117
                      If <varname>event_wait_list</varname> is NULL, then this particular command
 
118
                      waits until all previous enqueued commands to command_queue have completed.
 
119
                    </para>
 
120
               </listitem>
 
121
            </varlistentry>
 
122
 
 
123
            <varlistentry>
 
124
                <term> <varname> event </varname> </term>
 
125
                <listitem>
 
126
                    <para>
 
127
                      Returns an event object that identifies this particular command. Event
 
128
                      objects are unique and can be used to identify this barrier command
 
129
                      later on. <varname>event</varname> can be NULL in which case it
 
130
                      will not be possible for the application to query the status of
 
131
                      this command or queue a wait for this command to complete.  If the
 
132
                      <varname>event_wait_list</varname> and the <varname>event</varname>
 
133
                      arguments are not NULL, the <varname>event</varname> argument should not
 
134
                      refer to an element of the <varname>event_wait_list</varname> array.
 
135
                    </para>
 
136
               </listitem>
 
137
            </varlistentry>
 
138
        </variablelist>
 
139
    </refsect1>
 
140
 
 
141
<!-- ================================ NOTES  -->
 
142
 
 
143
    <refsect1 id="notes"><title>Notes</title>
 
144
        <para>
 
145
          Enqueues a barrier command which waits for either a list of events to complete,
 
146
          or if the list is empty it waits for all commands previously enqueued in
 
147
          <varname>command_queue</varname> to complete before it completes. This command blocks
 
148
          command execution, that is, any following commands enqueued after it do not execute
 
149
          until it completes. This command returns an <varname>event</varname> which can be
 
150
          waited on, i.e. this event can be waited on to insure that all events either in the
 
151
          <varname>event_wait_list</varname> or all previously enqueued commands, queued before
 
152
          this command to <varname>command_queue</varname>, have completed.
 
153
        </para>
 
154
    </refsect1>
 
155
 
 
156
<!-- ================================ ERRORS  -->
 
157
 
 
158
     <refsect1 id="errors"><title>Errors</title>
 
159
        <para>
 
160
          Returns <errorname>CL_SUCCESS</errorname> if the function was successfully executed.
 
161
          Otherwise, it returns one of the following errors:
 
162
        </para>
 
163
 
 
164
        <itemizedlist mark="disc">
 
165
            <listitem>
 
166
                <errorname>CL_INVALID_COMMAND_QUEUE</errorname> if <varname>command_queue</varname>
 
167
                is not a valid command-queue.
 
168
            </listitem>
 
169
 
 
170
            <listitem>
 
171
                <errorname>CL_INVALID_EVENT_WAIT_LIST</errorname>
 
172
                if <varname>event_wait_list</varname> is NULL and
 
173
                <varname>num_events_in_wait_list</varname> &gt; 0,
 
174
                or <varname>event_wait_list</varname> is not NULL and
 
175
                <varname>num_events_in_wait_list</varname> is 0, or if event objects in
 
176
                <varname>event_wait_list</varname> are not valid events.
 
177
            </listitem>
 
178
 
 
179
            <listitem>
 
180
                <errorname>CL_OUT_OF_RESOURCES</errorname> if there is a failure to allocate
 
181
                resources required by the OpenCL implementation on the device.
 
182
            </listitem>
 
183
 
 
184
            <listitem>
 
185
                <errorname>CL_OUT_OF_HOST_MEMORY</errorname> if there is a failure to allocate
 
186
                resources required by the OpenCL implementation on the host.
 
187
            </listitem>
 
188
 
 
189
        </itemizedlist>
 
190
    </refsect1>
 
191
 
 
192
<!-- ================================ EXAMPLE  -->
 
193
<!-- DO NOT DELETE IN CASE AN EXAMPLE IS ADDED IN THE FUTURE -->
 
194
<!--
 
195
    <refsect2 id="example1">
 
196
        <title>
 
197
            Example
 
198
        </title>
 
199
 
 
200
        <informaltable frame="none">
 
201
            <tgroup cols="1" align="left" colsep="0" rowsep="0">
 
202
                <colspec colname="col1" colnum="1" />
 
203
                <tbody>
 
204
                    <row>
 
205
                        <entry>
 
206
                            Example goes here - it will be set in "code" type with white space preserved.
 
207
                        </entry>
 
208
                    </row>
 
209
                </tbody>
 
210
            </tgroup>
 
211
        </informaltable>
 
212
    </refsect2>
 
213
-->
 
214
 
 
215
<!-- ================================ SPECIFICATION  -->
 
216
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page
 
217
-->
 
218
    <refsect1 id="specification"><title>Specification</title>
 
219
        <para>
 
220
            <imageobject>
 
221
                <imagedata fileref="pdficon_small1.gif" format="gif" />
 
222
            </imageobject>
 
223
            <olink uri="clEnqueueBarrierWithWaitList">OpenCL Specification</olink>
 
224
        </para>
 
225
    </refsect1>
 
226
 
 
227
<!-- ================================ ALSO SEE  -->
 
228
 
 
229
    <refsect1 id="seealso"><title>Also see</title>
 
230
        <para>
 
231
            <citerefentry><refentrytitle>clEnqueueFillBuffer</refentrytitle></citerefentry>,
 
232
            <citerefentry><refentrytitle>clEnqueueCopyBuffer</refentrytitle></citerefentry>,
 
233
            <citerefentry><refentrytitle>clEnqueueCopyBufferRect</refentrytitle></citerefentry>,
 
234
            <citerefentry><refentrytitle>clEnqueueFillImage</refentrytitle></citerefentry>,
 
235
            <citerefentry><refentrytitle>clEnqueueCopyImage</refentrytitle></citerefentry>,
 
236
            <citerefentry><refentrytitle>clEnqueueCopyImageToBuffer</refentrytitle></citerefentry>,
 
237
            <citerefentry><refentrytitle>clEnqueueCopyBufferToImage</refentrytitle></citerefentry>,
 
238
            <citerefentry><refentrytitle>clEnqueueUnmapMemObject</refentrytitle></citerefentry>
 
239
        </para>
 
240
    </refsect1>
 
241
 
 
242
<!-- ================================ COPYRIGHT  -->
 
243
<!-- Content included from copyright.inc.xsl -->
 
244
 
 
245
    <refsect3 id="Copyright"><title></title>
 
246
        <imageobject>
 
247
                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
 
248
        </imageobject>
 
249
        <para />
 
250
    </refsect3>
 
251
 
 
252
<!-- 21-Oct-2011 -->
 
253
</refentry>
 
254