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

« back to all changes in this revision

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