Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions driver/others/blas_server_omp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down