Browse Source

Do not reference pthread_atfork under windows

tags/v0.2.9.rc2^2
Olivier Grisel 11 years ago
parent
commit
49bd98f410
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      driver/others/memory.c

+ 2
- 0
driver/others/memory.c View File

@@ -264,10 +264,12 @@ void openblas_fork_handler()
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035 // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035
// In the mean time build with USE_OPENMP=0 or link against another // In the mean time build with USE_OPENMP=0 or link against another
// implementation of OpenMP. // implementation of OpenMP.
#ifndef OS_WINDOWS
int err; int err;
err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL); err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL);
if(err != 0) if(err != 0)
openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n"); openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n");
#endif
} }


int blas_get_cpu_number(void){ int blas_get_cpu_number(void){


Loading…
Cancel
Save