#20157: make numpy and scipy use pkg-config to find blas/lapack
---------------------------------+------------------------
       Reporter:  fbissey        |        Owner:
           Type:  enhancement    |       Status:  new
       Priority:  major          |    Milestone:  sage-7.1
      Component:  PLEASE CHANGE  |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:                 |     Stopgaps:
---------------------------------+------------------------

Old description:

> Since we want the choice of blas/lapack to be configurable by `.pc` files
> we need to have `numpy` and `scipy` obey to `pkg-config`.
>
> This is complicated by the fact that `numpy/scipy`'s build system will
> look for
>  1) mkl
>  2) openblas
>  3) threaded atlas 3.10.x (tatlas.so)
>  4) single thread atlas 3.10.x (satlas.so)
>  5) threaded atlas (any versions)
>  6) single thread atlas (any versions)
>  7) accelerate on OS X
>  8) blas/lapack configuration provided by the user
>  9) blas/lapack source provided by the user
>
> In that order from (1) to (9). Note that the user's wishes are ignored
> unless everything else fails. Getting `numpy/scipy` to obey `pkg-config`
> may therefore require patching.

New description:

 Since we want the choice of blas/lapack to be configurable by `.pc` files
 we need to have `numpy` and `scipy` obey to `pkg-config`.

 This is complicated by the fact that `numpy/scipy`'s build system will
 look for
  1) mkl
  2) openblas
  3) threaded atlas 3.10.x (tatlas.so)
  4) single thread atlas 3.10.x (satlas.so)
  5) threaded atlas (any versions)
  6) single thread atlas (any versions)
  7) accelerate on OS X
  8) blas/lapack configuration provided by the user
  9) blas/lapack source provided by the user

 In that order from (1) to (9). Note that the user's wishes are ignored
 unless everything else fails. Getting `numpy/scipy` to obey the user wish
 means whatever they are means using not well documented variables to
 disable the auto-detections steps 1 to 6.

--

Comment (by fbissey):

 Setting everything to None except for `BLAS` and `LAPACK` and then giving
 those some values is not enough. I have got something quite ugly.

--
Ticket URL: <http://trac.sagemath.org/ticket/20157#comment:2>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to