<div dir="ltr"><div>Though not used, the __kmpc_global_num_threads, based on the comments for it, returns the value of the wrong variable. Below is a patch for a fix, which I think I did it right. </div><div><br></div><div>Where is the official link for submitting bugs and patches?</div><div><br></div><div>Thanks</div><div>Yonghong</div><div><br></div><div><br></div><div>diff --git a/runtime/src/kmp_csupport.c b/runtime/src/kmp_csupport.c</div><div>index f774ac1..257d5a8 100644</div><div>--- a/runtime/src/kmp_csupport.c</div><div>+++ b/runtime/src/kmp_csupport.c</div><div>@@ -121,9 +121,9 @@ waiting for work.</div><div> kmp_int32</div><div> __kmpc_global_num_threads(ident_t *loc)</div><div> {</div><div>-    KC_TRACE( 10, ("__kmpc_global_num_threads: num_threads = %d\n", __kmp_nth ) );</div><div>+    KC_TRACE( 10, ("__kmpc_global_num_threads: num_threads = %d\n", __kmp_all_nth ) );</div><div> </div><div>-    return TCR_4(__kmp_nth);</div><div>+    return TCR_4(__kmp_all_nth);</div><div> }</div><div> </div><div> /*!</div><div><br></div></div>