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 f67a062 + 7a7fbb1 commit 126ad48Copy full SHA for 126ad48
driver/others/blas_server_win32.c
@@ -40,7 +40,7 @@
40
#include <stdlib.h>
41
#include "common.h"
42
43
-#if defined(OS_CYGWIN_NT) && !defined(unlikely)
+#if !defined(unlikely)
44
#ifdef __GNUC__
45
#define unlikely(x) __builtin_expect(!!(x), 0)
46
#else
@@ -391,8 +391,9 @@ int blas_thread_init(void){
391
392
int exec_blas_async(BLASLONG pos, blas_queue_t *queue){
393
394
-#if defined(SMP_SERVER) && defined(OS_CYGWIN_NT)
+#if defined(SMP_SERVER)
395
// Handle lazy re-init of the thread-pool after a POSIX fork
396
+ // on Cygwin or as delayed init when a static library is used
397
if (unlikely(blas_server_avail == 0)) blas_thread_init();
398
#endif
399
0 commit comments