We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2aa0a58 + 28c28ed commit cc66743Copy full SHA for cc66743
driver/others/memory.c
@@ -543,9 +543,9 @@ static __inline struct alloc_t ** get_memory_table() {
543
if (!local_memory_table_pos) {
544
LOCK_COMMAND(&alloc_lock);
545
local_memory_table_pos = next_memory_table_pos++;
546
- UNLOCK_COMMAND(&alloc_lock);
547
if (next_memory_table_pos > MAX_ALLOCATING_THREADS)
548
printf("OpenBLAS : Program will terminate because you tried to start too many threads.\n");
+ UNLOCK_COMMAND(&alloc_lock);
549
# if !defined(HAS_COMPILER_TLS)
550
# if defined(OS_WINDOWS)
551
::TlsSetValue(local_storage_key, (void*)local_memory_table_pos);
0 commit comments