<div dir="ltr">I can't find the spec text on the behavior of true but <a href="https://docs.nersc.gov/jobs/affinity/">https://docs.nersc.gov/jobs/affinity/</a> says "Thread affinity is enabled with an implementation-defined default place list."<div><br></div><div>In any case, you can interpret the return value of omp_get_proc_bind using the following (<a href="https://www.openmp.org/spec-html/5.0/openmpsu132.html">https://www.openmp.org/spec-html/5.0/openmpsu132.html</a>):<br> <br>typedef enum omp_proc_bind_t { <br>  omp_proc_bind_false = 0, <br>  omp_proc_bind_true = 1, <br>  omp_proc_bind_master = 2, <br>  omp_proc_bind_close = 3, <br>  omp_proc_bind_spread = 4 <br>} omp_proc_bind_t;<br>  </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jul 6, 2020 at 2:13 PM Lewis, Cannada via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org">openmp-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div style="overflow-wrap: break-word;">
I am writing to figure out what is the expected result from get_omp_proc_bind when the environmental variable OMP_PROC_BIND is true.  Based on <a href="https://www.openmp.org/spec-html/5.0/openmpse52.html" target="_blank">https://www.openmp.org/spec-html/5.0/openmpse52.html</a> I
 was expecting the result to be 1, which is what I get when using g++ version 9.2, but for clang++ I get 4, which is the same as spread.  Any help would be appreciated since I am trying to match up results from an app compiled with clang and a performance model
 that currently returns 1 for get_omp_proc_bind when OMP_PROC_BIND=true. 
<div><br>
</div>
<div>-Drew</div>
</div>

_______________________________________________<br>
Openmp-dev mailing list<br>
<a href="mailto:Openmp-dev@lists.llvm.org" target="_blank">Openmp-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div>