r45296 - in /packages/openblas/trunk/debian: changelog patches/kill_threads_at_unload.diff patches/series

sebastien-guest at users.alioth.debian.org sebastien-guest at users.alioth.debian.org
Sat Aug 11 16:22:07 UTC 2012


Author: sebastien-guest
Date: Sat Aug 11 16:22:06 2012
New Revision: 45296

URL: http://svn.debian.org/wsvn/debian-science/?sc=1&rev=45296
Log:
kill_threads_at_unload.diff: new patch, taken upstream (Closes: #673061)

Added:
    packages/openblas/trunk/debian/patches/kill_threads_at_unload.diff
Modified:
    packages/openblas/trunk/debian/changelog
    packages/openblas/trunk/debian/patches/series

Modified: packages/openblas/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/changelog?rev=45296&op=diff
==============================================================================
--- packages/openblas/trunk/debian/changelog (original)
+++ packages/openblas/trunk/debian/changelog Sat Aug 11 16:22:06 2012
@@ -1,3 +1,9 @@
+openblas (0.1.1-6) unstable; urgency=low
+
+  * kill_threads_at_unload.diff: new patch, taken upstream (Closes: #673061)
+
+ -- Sébastien Villemot <sebastien.villemot at ens.fr>  Sat, 11 Aug 2012 15:47:58 +0000
+
 openblas (0.1.1-5) unstable; urgency=low
 
   * libopenblas-base.prerm: avoid crash if libblas.so.3gf already deleted

Added: packages/openblas/trunk/debian/patches/kill_threads_at_unload.diff
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/patches/kill_threads_at_unload.diff?rev=45296&op=file
==============================================================================
--- packages/openblas/trunk/debian/patches/kill_threads_at_unload.diff (added)
+++ packages/openblas/trunk/debian/patches/kill_threads_at_unload.diff Sat Aug 11 16:22:06 2012
@@ -1,0 +1,43 @@
+Description: Kill the threads when unloading the library
+Origin: https://github.com/xianyi/OpenBLAS/commit/a55821a2ec514ca0a20a07e436bcc82d2f9c962e
+Bug: https://github.com/xianyi/OpenBLAS/issues/132
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673061
+
+diff --git a/driver/others/blas_server.c b/driver/others/blas_server.c
+index 66067a0..f16b827 100644
+--- a/driver/others/blas_server.c
++++ b/driver/others/blas_server.c
+@@ -435,7 +435,7 @@ static int blas_thread_server(void *arg){
+ 
+   blas_memory_free(buffer);
+ 
+-  pthread_exit(NULL);
++  //pthread_exit(NULL);
+ 
+   return 0;
+ }
+diff --git a/driver/others/blas_server_win32.c b/driver/others/blas_server_win32.c
+index c71e7c2..16eed4c 100644
+--- a/driver/others/blas_server_win32.c
++++ b/driver/others/blas_server_win32.c
+@@ -433,7 +433,7 @@ int exec_blas(BLASLONG num, blas_queue_t *queue){
+ /* Shutdown procedure, but user don't have to call this routine. The */
+ /* kernel automatically kill threads.                                */
+ 
+-int blas_thread_shutdown_(void){
++int BLASFUNC(blas_thread_shutdown)(void){
+ 
+   int i;
+ 
+diff --git a/driver/others/memory.c b/driver/others/memory.c
+index af9b54e..ff8cc24 100644
+--- a/driver/others/memory.c
++++ b/driver/others/memory.c
+@@ -1289,6 +1289,7 @@ void DESTRUCTOR gotoblas_quit(void) {
+    moncontrol (1);
+ #endif
+ 
++   blas_shutdown();
+ }
+ 
+ #if (defined(C_PGI) || (!defined(C_SUN) && defined(F_INTERFACE_SUN))) && (defined(ARCH_X86) || defined(ARCH_X86_64))

Modified: packages/openblas/trunk/debian/patches/series
URL: http://svn.debian.org/wsvn/debian-science/packages/openblas/trunk/debian/patches/series?rev=45296&op=diff
==============================================================================
--- packages/openblas/trunk/debian/patches/series (original)
+++ packages/openblas/trunk/debian/patches/series Sat Aug 11 16:22:06 2012
@@ -2,3 +2,4 @@
 kfreebsd.diff
 hurd.diff
 generic_profile.diff
+kill_threads_at_unload.diff




More information about the debian-science-commits mailing list