Package: release.debian.org Severity: normal Tags: wheezy User: release.debian....@packages.debian.org Usertags: pu
Dear Release Team, Please find attached a proposed update for openblas, fixing bug #739331. Cheers, -- .''`. Sébastien Villemot : :' : Debian Developer `. `' http://www.dynare.org/sebastien `- GPG Key: 4096R/381A7594
diff -Nru openblas-0.1.1/debian/changelog openblas-0.1.1/debian/changelog --- openblas-0.1.1/debian/changelog 2013-06-04 10:10:31.000000000 +0200 +++ openblas-0.1.1/debian/changelog 2014-02-19 18:43:18.000000000 +0100 @@ -1,3 +1,10 @@ +openblas (0.1.1-6+deb7u3) wheezy; urgency=low + + * fork-handler.patch: fixes hangs of OpenBLAS when called from a program + using OpenMP (Closes: #739331) + + -- Sébastien Villemot <sebast...@debian.org> Wed, 19 Feb 2014 18:41:55 +0100 + openblas (0.1.1-6+deb7u2) stable; urgency=low * power7.patch: new patch, fixes FTBFS on powerpc machines with Power7 arch diff -Nru openblas-0.1.1/debian/patches/fork-handler.patch openblas-0.1.1/debian/patches/fork-handler.patch --- openblas-0.1.1/debian/patches/fork-handler.patch 1970-01-01 01:00:00.000000000 +0100 +++ openblas-0.1.1/debian/patches/fork-handler.patch 2014-02-19 18:41:24.000000000 +0100 @@ -0,0 +1,36 @@ +Description: Add fork handler + This patches fixes hangs of OpenBLAS when called from a program using OpenMP. + Note that this will only work if OpenBLAS is compiled with pthreads + (i.e. no OpenMP). +Origin: upstream, https://github.com/xianyi/OpenBLAS/issues/294#issuecomment-33536895 +Bug: https://github.com/xianyi/OpenBLAS/issues/294 +Bug-Debian: http://bugs.debian.org/739331 +Last-Update: 2014-02-17 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/driver/others/memory.c ++++ b/driver/others/memory.c +@@ -1220,6 +1220,14 @@ static void gotoblas_memory_init(void) { + } + #endif + ++static void openblas_fork_handler() ++{ ++ int err; ++ err = pthread_atfork (BLASFUNC(blas_thread_shutdown), blas_thread_init, blas_thread_init); ++ if(err != 0) ++ fprintf(stderr, "OpenBLAS cannot install fork handler. You may meet hang after fork.\n"); ++} ++ + /* Initialization for all function; this function should be called before main */ + + static int gotoblas_initialized = 0; +@@ -1228,6 +1236,8 @@ void CONSTRUCTOR gotoblas_init(void) { + + if (gotoblas_initialized) return; + ++ openblas_fork_handler(); ++ + #ifdef PROFILE + moncontrol (0); + #endif diff -Nru openblas-0.1.1/debian/patches/series openblas-0.1.1/debian/patches/series --- openblas-0.1.1/debian/patches/series 2013-06-04 10:09:31.000000000 +0200 +++ openblas-0.1.1/debian/patches/series 2014-02-19 18:40:21.000000000 +0100 @@ -8,3 +8,4 @@ gemv_crash_big_data.diff dot_uninitialized_buffer.diff power7.patch +fork-handler.patch
signature.asc
Description: Digital signature