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

« back to all changes in this revision

Viewing changes to get_local_id.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>get_local_id</keyword>
 
9
        </keywordset>
 
10
    </refentryinfo>
 
11
 
 
12
    <refmeta>
 
13
        <refentrytitle>get_local_id</refentrytitle>
 
14
 
 
15
        <refmiscinfo>
 
16
            <copyright>
 
17
                <year>2007-2011</year>
 
18
                <holder>The Khronos Group Inc.
 
19
 Permission is hereby granted, free of charge, to any person obtaining a
 
20
copy of this software and/or associated documentation files (the
 
21
"Materials"), to deal in the Materials without restriction, including
 
22
without limitation the rights to use, copy, modify, merge, publish,
 
23
distribute, sublicense, and/or sell copies of the Materials, and to
 
24
permit persons to whom the Materials are furnished to do so, subject to
 
25
the condition that this copyright notice and permission notice shall be included
 
26
in all copies or substantial portions of the Materials.</holder>
 
27
            </copyright>
 
28
        </refmiscinfo>
 
29
        <manvolnum>3</manvolnum>
 
30
    </refmeta>
 
31
 
 
32
<!-- ================================ SYNOPSIS -->
 
33
 
 
34
    <refnamediv id="get_local_id">
 
35
        <refname>get_local_id</refname>
 
36
 
 
37
        <refpurpose>
 
38
            Returns the unique local work-item ID.
 
39
        </refpurpose>
 
40
    </refnamediv>
 
41
 
 
42
    <refsynopsisdiv xmlns:xlink="http://www.w3.org/1999/xlink"><title></title>
 
43
        <funcsynopsis>
 
44
            <funcprototype>
 
45
                <funcdef>
 
46
                    <link xlink:href="scalarDataTypes.html">size_t</link>
 
47
                    <function>
 
48
                        get_local_id
 
49
                    </function>
 
50
                </funcdef>
 
51
                <paramdef><link xlink:href="scalarDataTypes.html">uint</link><parameter>dimindx</parameter></paramdef>
 
52
            </funcprototype>
 
53
        </funcsynopsis>
 
54
    </refsynopsisdiv>
 
55
 
 
56
<!-- ================================ DESCRIPTION  -->
 
57
 
 
58
    <refsect1 id="description"><title>Description</title>
 
59
        <para>
 
60
          Returns the unique local work-item ID, i.e. a work-item
 
61
          within a specific work-group for dimension identified by
 
62
          <varname>dimindx</varname>.  Valid values of <varname>dimindx</varname> are 0 to
 
63
          <citerefentry><refentrytitle>get_work_dim</refentrytitle></citerefentry>() - 1. For other
 
64
          values of <varname>dimindx</varname>, <function>get_local_id</function>() returns 0.
 
65
        </para>
 
66
 
 
67
        <para>
 
68
          For <citerefentry><refentrytitle>clEnqueueTask</refentrytitle></citerefentry>, this
 
69
          returns 0.
 
70
        </para>
 
71
    </refsect1>
 
72
 
 
73
<!-- ================================ EXAMPLE  -->
 
74
<!-- DO NOT DELETE IN CASE AN EXAMPLE IS ADDED IN THE FUTURE -->
 
75
<!--
 
76
    <refsect2 id="example1">
 
77
        <title>
 
78
            Example
 
79
        </title>
 
80
 
 
81
        <informaltable frame="none">
 
82
            <tgroup cols="1" align="left" colsep="0" rowsep="0">
 
83
                <colspec colname="col1" colnum="1" />
 
84
                <tbody>
 
85
                    <row>
 
86
                        <entry>
 
87
                            Example goes here - it will be set in "code" type with white space preserved.
 
88
                        </entry>
 
89
                    </row>
 
90
                </tbody>
 
91
            </tgroup>
 
92
        </informaltable>
 
93
    </refsect2>
 
94
-->
 
95
 
 
96
<!-- ================================ SPECIFICATION  -->
 
97
<!-- Set the "uri" attribute in the <olink /> element to the "named destination" for the PDF page
 
98
-->
 
99
    <refsect1 id="specification"><title>Specification</title>
 
100
        <para>
 
101
            <imageobject>
 
102
                <imagedata fileref="pdficon_small1.gif" format="gif" />
 
103
            </imageobject>
 
104
 
 
105
            <olink uri="workItemFunctions">OpenCL Specification</olink>
 
106
        </para>
 
107
    </refsect1>
 
108
 
 
109
<!-- ================================ ALSO SEE  -->
 
110
 
 
111
    <refsect1 id="seealso"><title>Also see</title>
 
112
        <para>
 
113
            <citerefentry href="workItemFunctions"><refentrytitle>Work-Item Functions</refentrytitle></citerefentry>,
 
114
            <citerefentry><refentrytitle>clEnqueueNDRangeKernel</refentrytitle></citerefentry>,
 
115
            <citerefentry><refentrytitle>clEnqueueTask</refentrytitle></citerefentry>
 
116
        </para>
 
117
    </refsect1>
 
118
 
 
119
<!-- ============================== COPYRIGHT -->
 
120
<!-- Content included from copyright.inc.xsl -->
 
121
 
 
122
    <refsect3 id="Copyright"><title></title>
 
123
        <imageobject>
 
124
                <imagedata fileref="KhronosLogo.jpg" format="jpg" />
 
125
        </imageobject>
 
126
        <para />
 
127
    </refsect3>
 
128
 
 
129
<!-- 16-Oct-2011 -->
 
130
</refentry>
 
131