Browse Source

Revert "Lazyly reinit threads after a fork in OMP mode"

This reverts commit 3094fc6c83.
pull/2982/head
Jonathan Ringer 5 years ago
parent
commit
7c71f9448f
1 changed files with 0 additions and 18 deletions
  1. +0
    -18
      driver/others/blas_server_omp.c

+ 0
- 18
driver/others/blas_server_omp.c View File

@@ -48,21 +48,6 @@

#else

#ifndef likely
#ifdef __GNUC__
#define likely(x) __builtin_expect(!!(x), 1)
#else
#define likely(x) (x)
#endif
#endif
#ifndef unlikely
#ifdef __GNUC__
#define unlikely(x) __builtin_expect(!!(x), 0)
#else
#define unlikely(x) (x)
#endif
#endif

#ifndef OMP_SCHED
#define OMP_SCHED static
#endif
@@ -376,9 +361,6 @@ fprintf(stderr,"UNHANDLED COMPLEX\n");

int exec_blas(BLASLONG num, blas_queue_t *queue){

// Handle lazy re-init of the thread-pool after a POSIX fork
if (unlikely(blas_server_avail == 0)) blas_thread_init();

BLASLONG i, buf_index;

if ((num <= 0) || (queue == NULL)) return 0;


Loading…
Cancel
Save