Changes

Jump to navigation Jump to search
1,694 bytes added ,  07:46, 1 November 2016
→‎arpack-ng: add qrupdate, before
sudo ln -s libopenblas_haswell-r0.2.19.so libopenblas.so.0
sudo ln -s libopenblas.so.0 libopenblas.so
 
== qrupdate ==
download the lastes version (1.1.2 as of this writing) to $downloads
 
https://sourceforge.net/projects/qrupdate/files/latest/download?source=typ_redirect
 
Start from a clean state
 
exit
bash
export PATH=/usr/local/gcc-6.2.0_binutils-2.27_isl/bin:$PATH
which gfortran
# should be /usr/local/gcc-6.2.0_binutils-2.27_isl/bin/gfortran
 
cd $buildroot
tar --no-same-owner -xvf $downloads/qrupdate-1.1.2.tar.gz
cd qrupdate-1.1.2/
 
Save the following to $downloads/qrupdate-1.1.2_Makeconf.patch
 
{{Code|qrupdate-1.1.2_Makeconf.patch|<pre>
--- Makeconf.orig 2016-09-20 16:33:23.061756020 +0200
+++ Makeconf 2016-09-20 16:39:47.385547117 +0200
@@ -1,26 +1,26 @@
# set this to your compiler's executable name (e.g. gfortran, g77)
FC=gfortran
# requested flags
-FFLAGS=-fimplicit-none -O3 -funroll-loops
+FFLAGS=-fimplicit-none -march=native -O3 -funroll-loops -lgfortran
# set if you need shared library
FPICFLAGS=-fPIC
# BLAS library (only required for tests)
-BLAS=-lblas
+BLAS=-lopenblas
# LAPACK library (only required for tests)
-LAPACK=-llapack
+LAPACK=
# Library version
VERSION=1.1
MAJOR=1
# The default library dir
-LIBDIR=lib
+LIBDIR=lib64
# Destination installation offset
DESTDIR=
# set default prefix to /usr/local
ifeq ($(strip $(PREFIX)),)
- PREFIX=/usr/local
+ PREFIX=/usr/local/gcc-6.2.0_binutils-2.27_isl
endif
</pre>
}}
 
patch -p0 < $downloads/qrupdate-1.1.2.tar.gz
make solib
 
as root ({{codeline|su}}, not {{codeline|sudo}}, because we want PATH to contain {{Path|/usr/local/gcc-6.2.0_binutils-2.27_isl/bin}})
make install-shlib
 
{{codeline|exit}} root session, then {{codeline|exit}} current bash, to return to a clean state
== arpack-ng ==
32

edits

Navigation menu