Remove warning about OpenMP
authorSébastien Villemot <sebastien@debian.org>
Sun, 1 Nov 2020 09:47:26 +0000 (09:47 +0000)
committerSébastien Villemot <sebastien@debian.org>
Sun, 1 Nov 2020 09:47:26 +0000 (09:47 +0000)
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 30e0cc6c23918487aded319457074f76afa2b7d5..c5639144e670b985f7e078f75a19c37aeda882b6 100644 (file)
@@ -853,16 +853,6 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
   fprintf(STDERR, "Exec_blas is called. Number of executing threads : %ld\n", num);
 #endif
 
-#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