Dag Sverre Seljebotn <da...@...> writes:
>
> Max Mayzel wrote:
> > Dag Sverre Seljebotn <da...@...> writes:
> >
> >
> >>> Here it is
> >>> In [2]: scipy.show_config()
> >>> amd_info:
> >>> libraries = ['amd']
> >>> library_dirs = ['/sw64/lib']
> >>>
> >>> umfpack_info:
> >>> libraries = ['umfpack', 'amd']
> >>> library_dirs = ['/sw64/lib']
> >>>
> >>> lapack_opt_info:
> >>> extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
> >>> extra_compile_args = ['-msse3']
> >>> define_macros = [('NO_ATLAS_INFO', 3)]
> >>>
> >>> blas_opt_info:
> >>> extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
> >>> extra_compile_args = ['-msse3',
> >>> '-I/System/Library/Frameworks/vecLib.framework/Headers']
> >>> define_macros = [('NO_ATLAS_INFO', 3)]
> >>>
> >>>
> >> Have you tried dropping libraries=.... from setup.py? You should really
> >> build your extension the way SciPy has been built, meaning modifying
> >> setup.py so that gcc is invoked in the way described by blas_opt_info
> >> above.
> >>
> >> Dag Sverre
> >>
> >>
> > Finally I used following setup.py
> >
> > from distutils.core import setup
> > from distutils.extension import Extension
> > from Cython.Distutils import build_ext
> > import os
> > import numpy as np
> >
> > ext_modules=[
> > Extension("lapack",
> > ["lapack.pyx"],
> > libraries=['lapack', 'cblas'],
> > extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'],
> > extra_compile_args =
> > ['-faltivec','-I/System/Library/Frameworks/vecLib.framework/Headers'],
> > define_macros = [('NO_ATLAS_INFO', 3)],
> > include_dirs=[np.get_include()]),
> > Extension("testlapack",
> > ["testlapack.pyx"],
> > include_dirs=[np.get_include()]),
> > ]
> >
> > setup(
> > name = 'LAPACK wrapping demo',
> > cmdclass = {'build_ext': build_ext},
> > ext_modules = ext_modules,
> > )
> >
> You mentioned Sage earlier...Sage comes with its own LAPACK, so by using
> "sage -python" BOTH to get scipy.show_info() and put the information in
> setup.py AND do the compilation you might get different results...
>
> Dag Sverre
>
It seems, that sage is also build against mac accelerated framework,
sage -python
Python 2.6.2 (r262:71600, Nov 14 2009, 10:42:01)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> numpy.show_config()
lapack_opt_info:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
extra_compile_args = ['-msse3']
define_macros = [('NO_ATLAS_INFO', 3)]
blas_opt_info:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
extra_compile_args = ['-msse3',
'-I/System/Library/Frameworks/vecLib.framework/Headers']
define_macros = [('NO_ATLAS_INFO', 3)]
>>> import scipy
>>> scipy.show_config()
umfpack_info:
NOT AVAILABLE
lapack_opt_info:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
extra_compile_args = ['-msse3']
define_macros = [('NO_ATLAS_INFO', 3)]
blas_opt_info:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
extra_compile_args = ['-msse3',
'-I/System/Library/Frameworks/vecLib.framework/Headers']
define_macros = [('NO_ATLAS_INFO', 3)]
>>> exit
and it still doesn't work (
Max
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev