[OpenMP][NFC] Remove unused __kmp_dispatch_lock global (#127686)

This commit is contained in:
Jonathan Peyton
2025-02-19 13:32:00 -06:00
committed by GitHub
parent b1f882f86a
commit 851177c2e3
3 changed files with 0 additions and 6 deletions

View File

@@ -3408,7 +3408,6 @@ extern kmp_bootstrap_lock_t
__kmp_threads expansion to co-exist */
extern kmp_lock_t __kmp_global_lock; /* control OS/global access */
extern kmp_queuing_lock_t __kmp_dispatch_lock; /* control dispatch access */
extern kmp_lock_t __kmp_debug_lock; /* control I/O access for KMP_DEBUG */
extern enum library_type __kmp_library;

View File

@@ -488,8 +488,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
KMP_ALIGN_CACHE_INTERNODE
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
KMP_ALIGN_CACHE_INTERNODE
kmp_queuing_lock_t __kmp_dispatch_lock; /* Control dispatch access */
KMP_ALIGN_CACHE_INTERNODE
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
#else
KMP_ALIGN_CACHE
@@ -508,8 +506,6 @@ KMP_BOOTSTRAP_LOCK_INIT(__kmp_tp_cached_lock);
KMP_ALIGN(128)
KMP_LOCK_INIT(__kmp_global_lock); /* Control OS/global access */
KMP_ALIGN(128)
kmp_queuing_lock_t __kmp_dispatch_lock; /* Control dispatch access */
KMP_ALIGN(128)
KMP_LOCK_INIT(__kmp_debug_lock); /* Control I/O access for KMP_DEBUG */
#endif

View File

@@ -7143,7 +7143,6 @@ static void __kmp_do_serial_initialize(void) {
__kmp_stats_init();
#endif
__kmp_init_lock(&__kmp_global_lock);
__kmp_init_queuing_lock(&__kmp_dispatch_lock);
__kmp_init_lock(&__kmp_debug_lock);
__kmp_init_atomic_lock(&__kmp_atomic_lock);
__kmp_init_atomic_lock(&__kmp_atomic_lock_1i);