|
View:
New views
9 Messages
—
Rating Filter:
Alert me
|
|
|
py26-numpy with veclibHi,
Is it possible to build py26-numpy against veclib with macports? I had assumed that specifying +no_atlas variant would fall back to using veclib (from reading tickets it looks like thats what it did before) but instead it seems to use no accelerated library. This is the result of numpy.show_config() when built with +no_atlas: Python 2.6.3 (r263:75183, Oct 21 2009, 13:12:29) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import numpy >>> numpy.show_config() blas_info: libraries = ['blas'] library_dirs = ['/usr/lib'] language = f77 lapack_info: libraries = ['lapack'] library_dirs = ['/usr/lib'] language = f77 atlas_threads_info: NOT AVAILABLE blas_opt_info: libraries = ['blas'] library_dirs = ['/usr/lib'] language = f77 define_macros = [('NO_ATLAS_INFO', 1)] atlas_blas_threads_info: NOT AVAILABLE lapack_opt_info: libraries = ['lapack', 'blas'] library_dirs = ['/usr/lib'] language = f77 define_macros = [('NO_ATLAS_INFO', 1)] atlas_info: NOT AVAILABLE lapack_mkl_info: NOT AVAILABLE blas_mkl_info: NOT AVAILABLE atlas_blas_info: NOT AVAILABLE mkl_info: NOT AVAILABLE If linked against veclib the output should look like this: >>> 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)] Cheers Robin _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibHi,
> Is it possible to build py26-numpy against veclib with macports? > > If linked against veclib the output should look like this: > >>>> 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)] My config shows this: Python 2.6.3 (r263:75183, Oct 13 2009, 08:46:50) [GCC 4.2.1 (Based on Apple Inc. build 5646) (LLVM build 2118)] 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 = ['-faltivec'] define_macros = [('NO_ATLAS_INFO', 3)] blas_opt_info: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/ vecLib.framework/Headers'] define_macros = [('NO_ATLAS_INFO', 3)] >>> Note that I am on x86_64, so that looks a bit strange. Vincent _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibOn 21.10.2009, at 23:39, Robin wrote:
> Hi, > > Is it possible to build py26-numpy against veclib with macports? It does for me: > /opt/local/bin/python2.6 Python 2.6.3 (r263:75183, Oct 17 2009, 11:35:55) [GCC 4.2.1 (Apple Inc. build 5646)] 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 = ['-faltivec'] define_macros = [('NO_ATLAS_INFO', 3)] blas_opt_info: extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] extra_compile_args = ['-faltivec', '-I/System/Library/Frameworks/ vecLib.framework/Headers'] define_macros = [('NO_ATLAS_INFO', 3)] >>> This is actually for the default variants… Then, however, the question is why it used -faltivec instead of -msse3 or such on my Mac Pro (x86_64)... Greetings, Jochen -- Einigkeit und Recht und Freiheit http://www.Jochen-Kuepper.de Liberté, Égalité, Fraternité GnuPG key: CC1B0B4D Sex, drugs and rock-n-roll _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibOn Thu, Oct 22, 2009 at 8:55 AM, Jochen Küpper
<kuepper.jochen@...> wrote: > On 21.10.2009, at 23:39, Robin wrote: > >> Hi, >> >> Is it possible to build py26-numpy against veclib with macports? > > It does for me: > > This is actually for the default variants… > Ah, thanks. I wonder why it doesn't for me. I am using up to date macports with snow leopard. For me the default variants leads to being built with atlas. If I specify no_atlas variant then I get the no external blas shown earlier. I wonder if something has changed recently to stop building against veclib. Shall I open a ticket? In [4]: numpy.show_config() atlas_threads_info: libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/opt/local/lib'] language = f77 include_dirs = ['/opt/local/include'] blas_opt_info: libraries = ['ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/opt/local/lib'] define_macros = [('ATLAS_INFO', '"\\"3.8.3\\""')] language = c include_dirs = ['/opt/local/include'] atlas_blas_threads_info: libraries = ['ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/opt/local/lib'] language = c include_dirs = ['/opt/local/include'] lapack_opt_info: libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] library_dirs = ['/opt/local/lib'] define_macros = [('ATLAS_INFO', '"\\"3.8.3\\""')] language = f77 include_dirs = ['/opt/local/include'] lapack_mkl_info: NOT AVAILABLE blas_mkl_info: NOT AVAILABLE mkl_info: NOT AVAILABLE _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibOn 22.10.2009, at 12:38, Robin wrote:
> On Thu, Oct 22, 2009 at 8:55 AM, Jochen Küpper > <kuepper.jochen@...> wrote: >> On 21.10.2009, at 23:39, Robin wrote: >> >>> Hi, >>> >>> Is it possible to build py26-numpy against veclib with macports? >> >> It does for me: >> >> This is actually for the default variants… >> > > Ah, thanks. I wonder why it doesn't for me. I am using up to date > macports with snow leopard. Me too > For me the default variants leads to being > built with atlas. If I specify no_atlas variant then I get the no > external blas shown earlier. Actually, I don't have ATLAS installed, so that's the difference... > I wonder if something has changed > recently to stop building against veclib. > > Shall I open a ticket? yes > > In [4]: numpy.show_config() > atlas_threads_info: > libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] > library_dirs = ['/opt/local/lib'] > language = f77 > include_dirs = ['/opt/local/include'] > > blas_opt_info: > libraries = ['ptf77blas', 'ptcblas', 'atlas'] > library_dirs = ['/opt/local/lib'] > define_macros = [('ATLAS_INFO', '"\\"3.8.3\\""')] > language = c > include_dirs = ['/opt/local/include'] > > atlas_blas_threads_info: > libraries = ['ptf77blas', 'ptcblas', 'atlas'] > library_dirs = ['/opt/local/lib'] > language = c > include_dirs = ['/opt/local/include'] > > lapack_opt_info: > libraries = ['lapack', 'ptf77blas', 'ptcblas', 'atlas'] > library_dirs = ['/opt/local/lib'] > define_macros = [('ATLAS_INFO', '"\\"3.8.3\\""')] > language = f77 > include_dirs = ['/opt/local/include'] > > lapack_mkl_info: > NOT AVAILABLE > > blas_mkl_info: > NOT AVAILABLE > > mkl_info: > NOT AVAILABLE _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibOn Thu, Oct 22, 2009 at 12:09 PM, Jochen Küpper
<kuepper.jochen@...> wrote: > On 22.10.2009, at 12:38, Robin wrote: > >> On Thu, Oct 22, 2009 at 8:55 AM, Jochen Küpper >> <kuepper.jochen@...> wrote: > > Actually, I don't have ATLAS installed, so that's the difference... I don't think so - I can't build +no_atlas with atlas installed - if its there it gets used regardless of the variant : http://trac.macports.org/ticket/22201 So when I build +no_atlas without atlas installed I get no external blas (not veclib) http://trac.macports.org/ticket/22200 I don't know what to do to get veclib... Cheers Robin _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibOn 22.10.2009, at 13:51, Robin wrote:
> On Thu, Oct 22, 2009 at 12:09 PM, Jochen Küpper > <kuepper.jochen@...> wrote: >> On 22.10.2009, at 12:38, Robin wrote: >> >>> On Thu, Oct 22, 2009 at 8:55 AM, Jochen Küpper >>> <kuepper.jochen@...> wrote: >> >> Actually, I don't have ATLAS installed, so that's the difference... > > I don't think so - I can't build +no_atlas with atlas installed - if > its there it gets used regardless of the variant : > http://trac.macports.org/ticket/22201 > > So when I build +no_atlas without atlas installed I get no external > blas (not veclib) http://trac.macports.org/ticket/22200 > > I don't know what to do to get veclib… What do you get if you have no ATLAS around and do not specify any variant? Do you have the latest XCode updates? /Jochen _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibOn Thu, Oct 22, 2009 at 1:03 PM, Jochen Küpper
<kuepper.jochen@...> wrote: > > What do you get if you have no ATLAS around and do not specify any variant? Atlas gets installed as a dependency if I don't specify any variant. > Do you have the latest XCode updates? I have xcode 3.2, core: 1608 Cheers Robin _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
|
|
Re: py26-numpy with veclibHi Robin,
a) please file a ticket. b) we are apparently talking about different versions of the Portfile, although nobody told MacPorts about it! The following changes (and probably a few more) were made without changing the revision in the Portfile… I picked these latest two because they are the suspects for the problems you are seeing ------------------------------------------------------------------------ r59616 | jameskyle@... | 2009-10-18 00:56:16 +0200 (So, 18 Okt 2009) | 2 lines Changed paths: M /trunk/dports/python/py26-numpy/Portfile Added proper deletion of default opts for no_gcc43 and no_atlas variants. ------------------------------------------------------------------------ r59608 | jameskyle@... | 2009-10-18 00:55:57 +0200 (So, 18 Okt 2009) | 2 lines Changed paths: M /trunk/dports/python/py26-numpy/Portfile Added ATLAS, LAPACK, and BLAS build environment to point to macports libs. c) Please file a ticket, unless already done. /Jochen _______________________________________________ macports-users mailing list macports-users@... http://lists.macosforge.org/mailman/listinfo.cgi/macports-users |
| Free embeddable forum powered by Nabble | Forum Help |