[Numpy-discussion] Building numpy on Solaris x86 with sun CC and libsunperf
David M. Cooke
Thu Apr 19 15:20:39 CDT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Peter C. Norton wrote:
> Hello all,
> I'm trying to build numpy for some of my users, and I can't seem to
> get the [blas_opt] or the [lapack_opt] settings to be honored in my
> $ CFLAGS="-L$STUDIODIR/lib/ -l=sunperf" CPPFLAGS='-DNO_APPEND_FORTRAN' \
> /scratch/nortonp/python-2.5.1c1/bin/python setup.py config
> Running from numpy source directory.
> F2PY Version 2_3649
> libraries mkl,vml,guide not found in /usr/local/lib
> libraries mkl,vml,guide not found in /lang/SunOS.5.i386/studio-11.0/SUNWspro/lib
> NOT AVAILABLE
> [etc, with nothing found]
> And after all this, I get
> Atlas (http://math-atlas.sourceforge.net/) libraries not found.
> Directories to search for the libraries can be specified in the
> numpy/distutils/site.cfg file (section [atlas]) or by setting
> the ATLAS environment variable.
> and a similar thing happens with lapack. My site.cfg boils down to
> library_dirs = /usr/local/lib:/lang/SunOS.5.i386/studio-11.0/SUNWspro/lib
> include_dirs = /usr/local/include:/lang/SunOS.5.i386/studio-11.0/SUNWspro/include
> libraries = sunperf
> libraries = sunperf
> If I mess around with system_info.py I can get setup to acknowledge
> the addition to the list, but it seems from the output that the
> optimized libraries section in the site.cfg is ignored (eg. never
> added to the classes _lib_names array).
Try this instead of blas_opt and lapack_opt:
blas_libs = sunperf
lapack_libs = sunperf
> Also, since the lapack and blas libraries are already essentially part
> of libsunperf, built, do I still need a fortran compiler to link build
> numpy or can I just bypass that (somehow) and link the .so and go on
> my merry way?
I think you should be fine with a C compiler. You'd probably have to
fiddle with the definitions of the blas_info and lapack_info classes in
numpy.distutils.system_info -- they hardcode using Fortran.
At some point, system_info will get some more lovin' -- it should be
refactored to be more consistent.
|David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the Numpy-discussion