Bug#739331: libopenblas-base: hangs when called from an OpenMP application

Sébastien Villemot sebastien at debian.org
Mon Feb 17 18:37:51 UTC 2014


Package: libopenblas-base
Version: 0.1.1-6
Severity: important
Tags: upstream patch
Control: fixed -1 0.2.8-3
Control: forwarded -1 https://github.com/xianyi/OpenBLAS/issues/294

OpenBLAS, when compiled with pthreads, hangs when it is called from an
application using OpenMP.

See the attached R code which hangs with affected versions of OpenBLAS.

In 0.2.8-3, the solution adopted was to compile OpenBLAS with OpenMP. But this
creates other problems (see #737675).

The right solution seems to revert to a pthreads version of OpenBLAS, and apply
the patch there:

 https://github.com/xianyi/OpenBLAS/issues/294#issuecomment-33536895

--
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://www.dynare.org/sebastien
  `-      GPG Key: 4096R/381A7594
-------------- next part --------------
library(parallel)

num.cores <- 4

f <- function(x)
    {
        n <- 40
        A <- replicate(n, rnorm(n))
        B <- replicate(n, rnorm(n))
        rcond(A %*% B)
    }

z <- 1:8

mclapply(z, f, mc.cores = num.cores)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20140217/c16c4367/attachment.sig>


More information about the debian-science-maintainers mailing list