[R-sig-Debian] Debian packaging and openblas related crash when profiling in R
Paul Johnson
pauljohn32 at gmail.com
Fri Dec 14 08:17:16 CET 2012
Dirk!
Correct as usual!
On Tue, Dec 11, 2012 at 12:33 PM, Dirk Eddelbuettel <edd at debian.org> wrote:
> | On Debian wheezy, I have the R packaging that CRAN (you) provide. I
>
> Not so -- I provide the distro package. Johannes provides the Debian
> "backport" build via CRAN, Michael does likewise for Ubuntu.
>
> | run into a little trouble while trying to fiddle with alternative
> | BLAS.
> |
> | I know you and I went around on this last year and I think perhaps
> | I've found something wrong in the framework, or I've just done
> | something wrong.
> |
> | I installed the packages openblas-base and openblas-dev, and they do
> | the "update alternatives" thing so that their shared library is at the
> | right spot. I can't tell if R runs any faster, but it does run, which
> | is encouraging.
> |
> | Now here's the problem I see. Using Rprof causes R to crash, but only
> | when openblas stuff is in the picture. I wondered what you think?
> |
Here's the evidence you are right.
Before starting R, restrict openblas's use of threads in the environment
$ export GOTO_NUM_THREADS=1
After that, HAPPY profiling in R!
pj
--
Paul E. Johnson
Professor, Political Science Assoc. Director
1541 Lilac Lane, Room 504 Center for Research Methods
University of Kansas University of Kansas
http://pj.freefaculty.org http://quant.ku.edu
More information about the R-SIG-Debian
mailing list