From 49bd98f410369c9604031296f8ff47c5c20052bb Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Wed, 19 Feb 2014 19:25:48 +0100 Subject: [PATCH] Do not reference pthread_atfork under windows --- driver/others/memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driver/others/memory.c b/driver/others/memory.c index 27a30a836..2b87ebe9c 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -264,10 +264,12 @@ void openblas_fork_handler() // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035 // In the mean time build with USE_OPENMP=0 or link against another // implementation of OpenMP. +#ifndef OS_WINDOWS int err; err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL); if(err != 0) openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n"); +#endif } int blas_get_cpu_number(void){