We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 57526ca + 2c556f0 commit 322a178Copy full SHA for 322a178
1 file changed
driver/others/memory.c
@@ -264,9 +264,9 @@ void openblas_fork_handler()
264
// http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60035
265
// In the mean time build with USE_OPENMP=0 or link against another
266
// implementation of OpenMP.
267
-#ifndef OS_WINDOWS
+#if !defined(OS_WINDOWS) && defined(SMP_SERVER)
268
int err;
269
- err = pthread_atfork (BLASFUNC(blas_thread_shutdown), NULL, NULL);
+ err = pthread_atfork ((void (*)(void)) BLASFUNC(blas_thread_shutdown), NULL, NULL);
270
if(err != 0)
271
openblas_warning(0, "OpenBLAS Warning ... cannot install fork handler. You may meet hang after fork.\n");
272
#endif
0 commit comments