|
Lines 33-52
Link Here
|
| 33 |
|
33 |
|
| 34 |
# delete all but the first one in this list if using your own LAPACK/BLAS |
34 |
# delete all but the first one in this list if using your own LAPACK/BLAS |
| 35 |
sourcelist = [os.path.join('Src', 'lapack_litemodule.c'), |
35 |
sourcelist = [os.path.join('Src', 'lapack_litemodule.c'), |
| 36 |
# os.path.join('Src', 'blas_lite.c'), |
36 |
os.path.join('Src', 'blas_lite.c'), |
| 37 |
# os.path.join('Src', 'f2c_lite.c'), |
37 |
os.path.join('Src', 'f2c_lite.c'), |
| 38 |
# os.path.join('Src', 'zlapack_lite.c'), |
38 |
os.path.join('Src', 'zlapack_lite.c'), |
| 39 |
# os.path.join('Src', 'dlapack_lite.c') |
39 |
os.path.join('Src', 'dlapack_lite.c') |
| 40 |
] |
40 |
] |
| 41 |
# set these to use your own BLAS; |
41 |
# set these to use your own BLAS; |
| 42 |
|
42 |
|
| 43 |
library_dirs_list = ['/usr/lib/atlas'] |
43 |
#library_dirs_list = ['/usr/lib/atlas'] |
| 44 |
libraries_list = ['lapack', 'cblas', 'f77blas', 'atlas', 'g2c'] |
44 |
#libraries_list = ['lapack_lite', 'cblas', 'f77blas', 'atlas', 'g2c'] |
| 45 |
# if you also set `use_dotblas` (see below), you'll need: |
45 |
# if you also set `use_dotblas` (see below), you'll need: |
| 46 |
# ['lapack', 'cblas', 'f77blas', 'atlas', 'g2c'] |
46 |
# ['lapack', 'cblas', 'f77blas', 'atlas', 'g2c'] |
| 47 |
|
47 |
|
| 48 |
# set to true (1), if you also want BLAS optimized matrixmultiply/dot/innerproduct |
48 |
# set to true (1), if you also want BLAS optimized matrixmultiply/dot/innerproduct |
| 49 |
use_dotblas = 1 |
49 |
use_dotblas = 0 |
| 50 |
include_dirs = ['/usr/include/atlas'] # You may need to set this to find cblas.h |
50 |
include_dirs = ['/usr/include/atlas'] # You may need to set this to find cblas.h |
| 51 |
# e.g. on UNIX using ATLAS this should be ['/usr/include/atlas'] |
51 |
# e.g. on UNIX using ATLAS this should be ['/usr/include/atlas'] |
| 52 |
|
52 |
|
|
Lines 80-87
Link Here
|
| 80 |
os.path.join('Src', 'linpack.c')], |
80 |
os.path.join('Src', 'linpack.c')], |
| 81 |
extra_compile_args = extra_compile_args), |
81 |
extra_compile_args = extra_compile_args), |
| 82 |
Extension('lapack_lite', sourcelist, |
82 |
Extension('lapack_lite', sourcelist, |
| 83 |
library_dirs = library_dirs_list, |
83 |
# library_dirs = library_dirs_list, |
| 84 |
libraries = libraries_list, |
84 |
# libraries = libraries_list, |
| 85 |
extra_compile_args = extra_compile_args) |
85 |
extra_compile_args = extra_compile_args) |
| 86 |
] |
86 |
] |
| 87 |
|
87 |
|
|
Lines 113-120
Link Here
|
| 113 |
package_dir['dotblas'] = os.path.join('Packages', 'dotblas', 'dotblas') |
113 |
package_dir['dotblas'] = os.path.join('Packages', 'dotblas', 'dotblas') |
| 114 |
ext_modules.append(Extension('_dotblas', |
114 |
ext_modules.append(Extension('_dotblas', |
| 115 |
[os.path.join('Packages', 'dotblas', 'dotblas', '_dotblas.c')], |
115 |
[os.path.join('Packages', 'dotblas', 'dotblas', '_dotblas.c')], |
| 116 |
library_dirs = library_dirs_list, |
116 |
# library_dirs = library_dirs_list, |
| 117 |
libraries = libraries_list, |
117 |
# libraries = libraries_list, |
| 118 |
extra_compile_args=extra_compile_args)) |
118 |
extra_compile_args=extra_compile_args)) |
| 119 |
|
119 |
|
| 120 |
|
120 |
|