Remove warning about OpenMP
authorSébastien Villemot <sebastien@debian.org>
Wed, 29 Jul 2020 12:51:22 +0000 (13:51 +0100)
committerSébastien Villemot <sebastien@debian.org>
Wed, 29 Jul 2020 12:51:22 +0000 (13:51 +0100)
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 04b614a6e7a4c59dfd37be692782e60f1c565f40..f30759e4131864e1158a7a433315b4721813f70e 100644 (file)
@@ -803,16 +803,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