summaryrefslogtreecommitdiffstats
path: root/openmp/runtime/src/kmp_runtime.c
diff options
context:
space:
mode:
authorJonathan Peyton <jonathan.l.peyton@intel.com>2015-09-10 19:22:07 +0000
committerJonathan Peyton <jonathan.l.peyton@intel.com>2015-09-10 19:22:07 +0000
commit1707836b68c6462d2050a8d2cc29e0950eab87ca (patch)
tree7fae7025796cf41f2d7f42c37f29d6ad8fab2a07 /openmp/runtime/src/kmp_runtime.c
parent6f940873296855895be748e1ffa9f67cac8948a4 (diff)
downloadbcm5719-llvm-1707836b68c6462d2050a8d2cc29e0950eab87ca.tar.gz
bcm5719-llvm-1707836b68c6462d2050a8d2cc29e0950eab87ca.zip
Cleanup of affinity hierarchy code.
Some of this is improvement to code suggested by Hal Finkel. Four changes here: 1.Cleanup of hierarchy code to handle all hierarchy cases whether affinity is available or not 2.Separated this and other classes and common functions out to a header file 3.Added a destructor-like fini function for the hierarchy (and call in __kmp_cleanup) 4.Remove some redundant code that is hopefully no longer needed Differential Revision: http://reviews.llvm.org/D12449 llvm-svn: 247326
Diffstat (limited to 'openmp/runtime/src/kmp_runtime.c')
-rw-r--r--openmp/runtime/src/kmp_runtime.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_runtime.c b/openmp/runtime/src/kmp_runtime.c
index e5ef76ae674..bc65aa57924 100644
--- a/openmp/runtime/src/kmp_runtime.c
+++ b/openmp/runtime/src/kmp_runtime.c
@@ -7286,6 +7286,7 @@ __kmp_cleanup( void )
#if KMP_AFFINITY_SUPPORTED
__kmp_affinity_uninitialize();
#endif /* KMP_AFFINITY_SUPPORTED */
+ __kmp_cleanup_hierarchy();
TCW_4(__kmp_init_middle, FALSE);
}
OpenPOWER on IntegriCloud