<div dir="ltr"><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a href="https://github.com/llvm-mirror/openmp/blob/master/runtime/src/ompt-specific.cpp#L400">https://github.com/llvm-mirror/openmp/blob/master/runtime/src/ompt-specific.cpp#L400</a></span><br></div><div><br></div><div>From the spec: 

        
                
                <span></span>
        
        
                <div class="gmail-page" title="Page 456">
                        <div class="gmail-layoutArea">
                                <div class="gmail-column">
                                        <p><span style="font-size:10pt;font-family:TeXGyreTermes;font-weight:700">444:16-17</span><span style="font-family:TeXGyreTermes;font-size:10pt">Version 5.0 rev 2, November 2017</span></p></div>
                        </div>
                </div>
        
</div><div>

        
                
                <span></span>
        
        
                <div class="gmail-page" title="Page 456">
                        <div class="gmail-layoutArea">
                                <div class="gmail-column">
                                        <ol style="list-style-type:none">
                                                <li>
                                                        <p><span style="font-size:10pt;font-family:TeXGyreTermes">16 If a non-</span><span style="font-size:10pt;font-family:NimbusMonL;font-weight:700">NULL </span><span style="font-size:10pt;font-family:TeXGyreTermes">value was passed for </span><span style="font-size:10pt;font-family:TeXGyreTermes;font-style:italic">thread_num</span><span style="font-size:10pt;font-family:TeXGyreTermes">, the value returned in *</span><span style="font-size:10pt;font-family:TeXGyreTermes;font-style:italic">thread_num </span><span style="font-size:10pt;font-family:TeXGyreTermes">indicates the
</span></p>
                                                </li>
                                                <li>
                                                        <p><span style="font-size:9pt;font-family:NimbusSanL">17  </span><span style="font-size:10pt;font-family:TeXGyreTermes">number of the thread in the parallel region executing the task.</span></p></li></ol></div></div></div></div><div><br></div>It should return thread_num of the thread in the team, not the gtid?<div><br></div><div>Yonghong<br><div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div></div></div></div></div></div>
</div></div></div>