<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
I found where my confusion was coming from, but I would like clarification that omp_get_proc_bind is doing the right thing:
<div class=""><br class="">
</div>
<div class="">At line 5473 in kmp_settings.cpp</div>
<div class=""><br class="">
</div>
<div class="">
<div class="">    } else if (__kmp_nested_proc_bind.bind_types[0] == proc_bind_true) {</div>
<div class="">      // OMP_PROC_BIND=true maps to OMP_PROC_BIND=spread.</div>
<div class="">      __kmp_nested_proc_bind.bind_types[0] = proc_bind_spread;</div>
<div class="">    }</div>
<div class=""><br class="">
</div>
<div class="">Even if libomp uses spread internally for the case of OMP_PROC_BIND=true shouldn’t omp_get_proc_bind still report that the value true was provided instead of the value for spread? </div>
<div class=""><br class="">
</div>
<div class="">-Drew</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">On Jul 6, 2020, at 2:13 PM, Lewis, Cannada via Openmp-dev <<a href="mailto:openmp-dev@lists.llvm.org" class="">openmp-dev@lists.llvm.org</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">
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" class="">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 class=""><br class="">
</div>
<div class="">-Drew</div>
</div>
_______________________________________________<br class="">
Openmp-dev mailing list<br class="">
<a href="mailto:Openmp-dev@lists.llvm.org" class="">Openmp-dev@lists.llvm.org</a><br class="">
https://lists.llvm.org/cgi-bin/mailman/listinfo/openmp-dev<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>