Remove warning about OpenMP
authorSébastien Villemot <sebastien@debian.org>
Sat, 21 May 2022 20:25:13 +0000 (21:25 +0100)
committerMo Zhou <lumin@debian.org>
Sat, 21 May 2022 20:25:13 +0000 (21:25 +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 ec79075fe01509c46f3dba447165ec358a1259a0..0fd8618263152a5ef6b0ecc1969a5ca988895bf7 100644 (file)
@@ -869,16 +869,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