On Tue, Sep 3, 2013 at 6:31 PM, Olivier Grisel <olivier.gri...@ensta.org> wrote: > 2013/9/3 Gael Varoquaux <gael.varoqu...@normalesup.org>: >> On Tue, Sep 03, 2013 at 02:39:04PM -0400, Skipper Seabold wrote: >>> from numpy.distutils.system_info import get_info >>> blas_info = get_info('blas_opt', 0) >>> blas_info.get('define_macros') >> >> I don't know. >> >>> My numpy is linked against openblas, and I don't have a >>> 'define_macros' key, so I don't know. >> >> Currently, scikit-learn doesn't build with openblas. > > Well it works well if you get numpy to build correctly against > openblas by using this patch: > > https://github.com/akesandgren/numpy/commit/363339dd3a9826f3e3e7dc4248c258d3c4dfcd7c > > More details in the discussion on this issue: > > https://github.com/scikit-learn/scikit-learn/pull/2388
I'm using the patch. 'define_macros' is still empty. https://github.com/numpy/numpy/pull/3642 > >> However, it is >> important to keep in mind that openblas has some quirks (like the fact >> that can cannot use it after forking). > > Which is also sometimes the case on the system blas under OSX BTW. > >>> Is it always the case then that scikit-learn links against the >>> included reference BLAS if the above fails. Is there some other way to >>> specify the source of local optimized BLAS headers and libraries? >> >> I believe that editing the standard site.cfg file, as in the scipy build >> system should do it. Thanks, I never noticed the scikit-learn site.cfg. Is it documented anywhere? > > AFAIK this is in the site.cfg of numpy but without the. ? > > Also under OSX the system blas takes precedence unless the ATLAS env > variable is defined and points to the openblas lib (the .so or .a > file), which is probably another bug in the numpy distutils stuff. I > did not have time to have a deeper look though. I think this will be fixed as part of the above PR. Commenting there would be the right place to make sure it gets done at least. Skipper ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general