Remove warning about OpenMP
authorSébastien Villemot <sebastien@debian.org>
Thu, 6 Feb 2025 02:51:01 +0000 (21:51 -0500)
committerMo Zhou <lumin@debian.org>
Thu, 6 Feb 2025 02:51:01 +0000 (21:51 -0500)
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 7306a3ecd884941f5d306a653d27d38478f72fc7..8591ab32bc13c7549dddd4de14b61f906bc11ca4 100644 (file)
@@ -811,16 +811,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