|
From: | Clinton Winant |
Subject: | Re: making octave with lapack pt |
Date: | Fri, 3 Mar 2017 14:17:33 -0800 |
________________________________
From: Clinton Winant <address@hidden>
To: Octave Help <address@hidden>
Sent: Friday, March 3, 2017 8:55 PM
Subject: making octave with lapack pt
______________________________
I would like octave to link with parallel thread lapack/atlas/blas.
Currently my library (~/Software/Atlas/lib) has
libatlas.a libf77blas.a liblapack.a libptf77blas.a libsatlas.so libtstatlas.a
libcblas.a libf77refblas.a libptcblas.a libptlapack.a libtatlas.so
I configure octave with:
./configure --prefix=/opt/octave-4.2.1 --with-blas=/home/abr_ca/Software/Atlas/lib --with-lapack=/home/abr_ca/ Software/Atlas/lib CPPFLAGS=-I/usr/include/hdf5/ serial LDFLAGS=-L/usr/lib/$(dpkg- architecture -qDEB_HOST_MULTIARCH)/hdf5/ serial
make
is there any way I can modify this so that octave links with the pt library files?
Thanks
_________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave
This is how I resolved the problem years ago:
./configure LDFLAGS="$LDFLAGS -lmetis -l:liblapack.a" CFLAGS='-march=native -mtune=native -ftree-vectorize -O2' CXXFLAGS='-march=native -mtune=native -ftree-vectorize -O2' --enable-shared --enable-dl --enable-static --with-blas=/mnt/sdb8/sergei/AFSWD_debug/20140113/atlas-3. 10.1/lib/libptf77blas.so --with-lapack=/mnt/sdb8/ sergei/AFSWD_debug/20140113/ atlas-3.10.1/lib/liblapack.so --prefix=/mnt/sdb8/sergei/ AFSWD_debug/20140113/octave-3. 6.4
.
Pay attention that both --with-blas and --with-lapack point to ATLAS libraries and that
multi-threaded
libptf77blas.so is used.
Before the 'configure' call the autogenerated '$LDFLAGS' has the following contents:
"
LDFLAGS='-L/mnt/sdb8/sergei/AFSWD_debug/20140113/GConf-2. 32.4/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/GConf-2.32.4/ lib/GConf/2 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/GConf-2.32.4/ lib/gio/modules -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/GraphicsMagick- 1.3.19/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/MesaLib-10.0.3/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/ORBit2-2.14.19/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/ORBit2-2.14.19/ lib/orbit-2.0 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/Python-2.7.6/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/Python-2.7.6/ lib/python2.7/config -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/Python-2.7.6/ lib/python2.7/lib-dynload -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/Python-2.7.6/ lib/python2.7/site-packages -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/SDL-1.2.15/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/SuiteSparse-3. 7.1/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/XML-Parser-2. 41/lib/site_perl/5.18.2/i686- linux-thread-multi/auto/XML/ Parser/Expat -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/arpack-ng-3.1. 3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/atk-2.10.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/atlas-3.10.1/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/autogen-5.18.2/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/avahi-0.6.31/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/binutils-2.24/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/bison-2.6.5/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/blas_generic/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/bzip2-1.0.6/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/c-ares-1.10.0/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cairo-1.12.16/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cairo-1.12.16/ lib/cairo -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cdparanoia-III- 10.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cdrtools-3.00/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cdrtools-3.00/ lib/profiled -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cfitsio/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cln-1.3.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cloog-0.16.1/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/cups-1.7.1- source/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/curl-7.34.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/dbus-1.6.18/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/dbus-glib-0. 100.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/expat-2.1.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/fftw3_sse-3.3. 3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/fftw3_sse2-3.3. 3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/flac-1.2.1/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/flex-2.5.37/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/fltk-1.3.2- source/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/fontconfig-2. 11.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/freetype-2.5.2/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gc-7.4.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gcc-4.7.3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gcc-4.7.3/lib/ gcc/i686-pc-linux-gnu/4.7.3 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gd-2.0.35/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gdb-7.6.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gdk-pixbuf-2. 30.4/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gdk-pixbuf-2. 30.4/lib/gdk-pixbuf-2.0/2.10. 0/loaders -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gettext-0.18.3. 2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/ghostscript-9. 10/lib/ghostscript/9.10 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/ginac-1.6.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/glib-2.38.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/glib-2.38.2/ lib/gio/modules -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/glpk-4.48/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gmp-5.0.5/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gnome-vfs-2.24. 4/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gnome-vfs-2.24. 4/lib/gnome-vfs-2.0/modules -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gnutls-3.2.8/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gnutls-3.2.8/ lib/guile/2.0 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gobject- introspection-1.38.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gobject- introspection-1.38.0/lib/ gobject-introspection/ giscanner -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/graphviz-2.34. 0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gsl-1.16/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gstreamer-0.10. 36/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gstreamer-0.10. 36/lib/gstreamer-0.10 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gtk+-2.24.22/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gtk+-2.24.22/ lib/gtk-2.0/2.10.0/engines -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gtk+-2.24.22/ lib/gtk-2.0/2.10.0/immodules -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gtk+-2.24.22/ lib/gtk-2.0/2.10.0/ printbackends -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/gtk+-2.24.22/ lib/gtk-2.0/modules -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/guile-2.0.9/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/harfbuzz-0.9. 26/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/hdf5-1.8.12/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/icu4-52.1/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/ilmbase-2.1.0/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/jack-audio- connection-kit-0.109.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/jack-audio- connection-kit-0.109.2/lib/ jack -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/jasper-1.900.1/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/jbig2dec-0.11/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/jbigkit-2.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/json-c-0.11/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/lapack-3.4.2/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/lcms-1.19/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/lcms2-2.5/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libIDL-0.8.14/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libao-1.1.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libao-1.1.0/ lib/ao/plugins-4 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libart_lgpl-2. 3.21/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libatomic_ops- 7.4.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libavc1394-0.5. 3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libbonobo-2.32. 1/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libbonobo-2.32. 1/lib/bonobo/monikers -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libbonobo-2.32. 1/lib/orbit-2.0 -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libcroco-0.6.8/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libdaemon-0.14/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libelf-0.8.13/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libffi-3.0.13/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libfpx-1.3.1-3/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libfreebob-1.0. 11/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libgcrypt-1.6. 0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libglade-2.6.4/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libgpg-error-1. 12/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libgsf-1.14.29/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libiconv-1.14/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libiconv_pre-1. 14/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libidn-1.28/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libiec61883-1. 2.0/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libjpeg-9a/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libmng-1.0.10/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libogg-1.3.0/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/liboil-0.3.17/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libpng-1.6.8/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libraw1394-2.0. 5/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/librsvg-2.40.1/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libsamplerate- 0.1.8/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libsndfile-1.0. 25/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libtasn1-3.4/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libtool-2.4.2/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libunistring-0. 9.3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libusb-1.0.9/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libvorbis-1.3. 3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libwmf-0.2.8.4/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libwmf-0.2.8.4/ lib/gtk-2.0/2.10.0/loaders -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libxml2-2.9.1/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libxslt-1.1.28/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/libxslt-1.1.28/ lib/python2.7/site-packages -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/lua-5.2.3/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/lzo-2.06/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/metis-5.0.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/mpc-1.0.1/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/mpeg2dec-0.4.1/ lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/mpfr-3.1.2/lib -L/mnt/sdb8/sergei/AFSWD_ debug/20140113/mysql-5.6.15/ lib -L/mnt/sdb8/sergei/AFSWD_