forked from OSchip/llvm-project
Fix for the __kmpc_global_num_threads function to return the value of the __kmp_all_nth global var.
Patch by Yonghong Yan. Differential Revision: https://reviews.llvm.org/D27975 llvm-svn: 290272
This commit is contained in:
parent
c11760d4ed
commit
76d4285460
|
@ -121,9 +121,9 @@ waiting for work.
|
|||
kmp_int32
|
||||
__kmpc_global_num_threads(ident_t *loc)
|
||||
{
|
||||
KC_TRACE( 10, ("__kmpc_global_num_threads: num_threads = %d\n", __kmp_nth ) );
|
||||
KC_TRACE(10,("__kmpc_global_num_threads: num_threads = %d\n", __kmp_all_nth));
|
||||
|
||||
return TCR_4(__kmp_nth);
|
||||
return TCR_4(__kmp_all_nth);
|
||||
}
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in New Issue