Dear all, the following code hangs on my Ubuntu machine. I use self compiled numpy 1.7.1 and Python 2.7.3 ----- import numpy import numpy.linalg import multiprocessing def classify(): X = numpy.random.random((10,3)) print "before svd" numpy.linalg.svd(X) print "this message is not printed" if __name__ == "__main__": p = multiprocessing.Process(target=classify, args=()) p.start() p.join() ----- Regards, Uwe. -- Dr. rer. nat. Uwe Schmitt Leitung F/E Mathematik mineway GmbH Gebäude 4 Im Helmerswald 2 66121 Saarbrücken Telefon: +49 (0)681 8390 5334 Telefax: +49 (0)681 830 4376 uschmitt@mineway.de www.mineway.de Geschäftsführung: Dr.-Ing. Mathias Bauer Amtsgericht Saarbrücken HRB 12339
Dear Uwe: I can't reproduce this using the system default versions of Python and NumPy on Ubuntu 13.04: $ python uwe.py before svd this message is not printed
sys.version_info sys.version_info(major=2, minor=7, micro=4, releaselevel='final', serial=0) numpy.__version__ '1.7.1'
Any idea how your hand-compiled versions might differ from the system provided versions? -Brad On Wed, Jun 12, 2013 at 9:07 AM, Uwe Schmitt <uschmitt@mineway.de> wrote:
Dear all,
the following code hangs on my Ubuntu machine. I use self compiled numpy 1.7.1 and Python 2.7.3
-----
import numpy import numpy.linalg import multiprocessing
def classify(): X = numpy.random.random((10,3)) print "before svd" numpy.linalg.svd(X) print "this message is not printed"
if __name__ == "__main__": p = multiprocessing.Process(target=classify, args=()) p.start() p.join()
-----
Regards, Uwe.
-- Dr. rer. nat. Uwe Schmitt Leitung F/E Mathematik
mineway GmbH Gebäude 4 Im Helmerswald 2 66121 Saarbrücken
Telefon: +49 (0)681 8390 5334 Telefax: +49 (0)681 830 4376
uschmitt@mineway.de www.mineway.de
Geschäftsführung: Dr.-Ing. Mathias Bauer Amtsgericht Saarbrücken HRB 12339
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion
On 12.06.2013 18:07, Uwe Schmitt wrote:
Dear all,
the following code hangs on my Ubuntu machine. I use self compiled numpy 1.7.1 and Python 2.7.3
-----
import numpy import numpy.linalg import multiprocessing
def classify(): X = numpy.random.random((10,3)) print "before svd" numpy.linalg.svd(X) print "this message is not printed"
if __name__ == "__main__": p = multiprocessing.Process(target=classify, args=()) p.start() p.join()
I'm guessing you are using openblas? check with: ls -l /etc/alternatives/libblas.so.3 there are known hanging problems with openblas and multiprocessing. you can work around them by disabling threading in openblas (OPENBLAS_NUM_THREADS=1).
On 06/12/2013 07:27 PM, Julian Taylor wrote:
I'm guessing you are using openblas?
I can confirm hanging with OpenBLAS using OpenMP.
there are known hanging problems with openblas and multiprocessing. you can work around them by disabling threading in openblas (OPENBLAS_NUM_THREADS=1).
This works. Regards Alex
Am 12.06.2013 19:27, schrieb Julian Taylor:
I'm guessing you are using openblas? check with: ls -l /etc/alternatives/libblas.so.3
there are known hanging problems with openblas and multiprocessing. you can work around them by disabling threading in openblas (OPENBLAS_NUM_THREADS=1).
Thanks, that works ! Cheers, Uwe. -- Dr. rer. nat. Uwe Schmitt Leitung F/E Mathematik mineway GmbH Gebäude 4 Im Helmerswald 2 66121 Saarbrücken Telefon: +49 (0)681 8390 5334 Telefax: +49 (0)681 830 4376 uschmitt@mineway.de www.mineway.de Geschäftsführung: Dr.-Ing. Mathias Bauer Amtsgericht Saarbrücken HRB 12339
participants (4)
-
Alexander Eberspächer
-
Bradley M. Froehle
-
Julian Taylor
-
Uwe Schmitt