File: remove-openmp-warning.patch

package info (click to toggle)
openblas 0.3.30%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 63,164 kB
  • sloc: asm: 1,261,430; ansic: 416,437; fortran: 74,453; makefile: 13,677; sh: 4,917; perl: 4,575; python: 1,555; cpp: 244
file content (27 lines) | stat: -rw-r--r-- 786 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Remove warning about OpenMP
 This warning is annoying when the library is built with pthreads.
 See #684344
Author: Sébastien Villemot <sebastien@debian.org>
Forwarded: no
Last-Update: 2014-02-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/driver/others/blas_server.c
+++ b/driver/others/blas_server.c
@@ -813,16 +813,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