]> dgit.raspbian.org Git - openblas.git/commitdiff
Remove warning about OpenMP
authorSébastien Villemot <sebastien@debian.org>
Sat, 19 Sep 2026 13:06:32 +0000 (15:06 +0200)
committerSébastien Villemot <sebastien@debian.org>
Sat, 19 Sep 2026 13:06:32 +0000 (15:06 +0200)
Forwarded: no
Last-Update: 2014-02-17

This warning is annoying when the library is built with pthreads.
See #684344
Last-Update: 2014-02-17
Gbp-Pq: Name remove-openmp-warning.patch

driver/others/blas_server.c

index a740191ebe9e5bac01e8a6fd7834bbb475e2b9d1..77947089eef940f10e04aded9e0f2b07ea3eabf8 100644 (file)
@@ -817,16 +817,6 @@ if (openblas_threads_callback_) {
   }
 
 
-#ifdef __ELF__
-  if (omp_in_parallel && (num > 1)) {
-    if (omp_in_parallel() > 0) {
-      fprintf(stderr,
-             "OpenBLAS Warning : Detect OpenMP Loop and this application may hang. "
-             "Please rebuild the library with USE_OPENMP=1 option.\n");
-    }
-  }
-#endif
-
   if ((num > 1) && queue -> next) exec_blas_async(1, queue -> next);
 
 #ifdef TIMING_DEBUG