2014-07-16 22:00:07 +00:00
|
|
|
diff -up OpenBLAS-0.2.10/Makefile.system.system_lapack OpenBLAS-0.2.10/Makefile.system
|
|
|
|
--- OpenBLAS-0.2.10/Makefile.system.system_lapack 2014-07-16 12:04:30.000000000 +0200
|
|
|
|
+++ OpenBLAS-0.2.10/Makefile.system 2014-07-16 19:24:55.233859424 +0200
|
|
|
|
@@ -9,7 +9,7 @@ ifndef TOPDIR
|
|
|
|
TOPDIR = .
|
|
|
|
endif
|
|
|
|
|
|
|
|
-NETLIB_LAPACK_DIR = $(TOPDIR)/lapack-netlib
|
|
|
|
+NETLIB_LAPACK_DIR = $(TOPDIR)/netliblapack
|
|
|
|
|
|
|
|
# Default C compiler
|
|
|
|
# - Only set if not specified on the command line or inherited from the environment.
|
|
|
|
diff -up OpenBLAS-0.2.10/Makefile.system_lapack OpenBLAS-0.2.10/Makefile
|
|
|
|
--- OpenBLAS-0.2.10/Makefile.system_lapack 2014-07-16 19:24:55.231859424 +0200
|
|
|
|
+++ OpenBLAS-0.2.10/Makefile 2014-07-16 19:29:58.370855854 +0200
|
|
|
|
@@ -209,64 +209,9 @@ hpl_p :
|
2013-07-23 10:06:13 +00:00
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
|
|
|
|
-ifeq ($(NO_LAPACK), 1)
|
2014-07-16 22:00:07 +00:00
|
|
|
netlib :
|
|
|
|
+ @$(MAKE) -C $(NETLIB_LAPACK_DIR)
|
|
|
|
|
2013-07-23 10:06:13 +00:00
|
|
|
-else
|
|
|
|
-netlib : lapack_prebuild
|
|
|
|
-ifndef NOFORTRAN
|
|
|
|
- @$(MAKE) -C $(NETLIB_LAPACK_DIR) lapacklib
|
2014-06-20 11:24:14 +00:00
|
|
|
- @$(MAKE) -C $(NETLIB_LAPACK_DIR) tmglib
|
2013-07-23 10:06:13 +00:00
|
|
|
-endif
|
|
|
|
-ifndef NO_LAPACKE
|
|
|
|
- @$(MAKE) -C $(NETLIB_LAPACK_DIR) lapackelib
|
|
|
|
-endif
|
|
|
|
-endif
|
|
|
|
-
|
|
|
|
-prof_lapack : lapack_prebuild
|
|
|
|
- @$(MAKE) -C $(NETLIB_LAPACK_DIR) lapack_prof
|
|
|
|
-
|
|
|
|
-lapack_prebuild :
|
|
|
|
-ifndef NOFORTRAN
|
|
|
|
- -@echo "FORTRAN = $(FC)" > $(NETLIB_LAPACK_DIR)/make.inc
|
2014-06-20 11:24:14 +00:00
|
|
|
- -@echo "OPTS = $(LAPACK_FFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "POPTS = $(LAPACK_FPFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "NOOPT = $(LAPACK_FFLAGS) -O0" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "PNOOPT = $(LAPACK_FPFLAGS) -O0" >> $(NETLIB_LAPACK_DIR)/make.inc
|
2013-07-23 10:06:13 +00:00
|
|
|
- -@echo "LOADOPTS = $(FFLAGS) $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "CC = $(CC)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "override CFLAGS = $(LAPACK_CFLAGS)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "ARCH = $(AR)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "ARCHFLAGS = -ru" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "RANLIB = $(RANLIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "LAPACKLIB = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
2014-06-20 11:24:14 +00:00
|
|
|
- -@echo "TMGLIB = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "BLASLIB = ../../../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
2013-07-23 10:06:13 +00:00
|
|
|
- -@echo "LAPACKELIB = ../$(LIBNAME)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "LAPACKLIB_P = ../$(LIBNAME_P)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "SUFFIX = $(SUFFIX)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "PSUFFIX = $(PSUFFIX)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
- -@echo "CEXTRALIB = $(EXTRALIB)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
2014-07-16 22:00:07 +00:00
|
|
|
-ifeq ($(FC), GFORTRAN)
|
2014-06-20 11:24:14 +00:00
|
|
|
- -@echo "TIMER = INT_ETIME" >> $(NETLIB_LAPACK_DIR)/make.inc
|
2014-07-16 22:00:07 +00:00
|
|
|
-ifdef SMP
|
|
|
|
- -@echo "LOADER = $(FC) -pthread" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
-else
|
|
|
|
- -@echo "LOADER = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
|
|
|
-endif
|
2013-07-23 10:06:13 +00:00
|
|
|
-else
|
2014-06-20 11:24:14 +00:00
|
|
|
- -@echo "TIMER = NONE" >> $(NETLIB_LAPACK_DIR)/make.inc
|
2014-07-16 22:00:07 +00:00
|
|
|
- -@echo "LOADER = $(FC)" >> $(NETLIB_LAPACK_DIR)/make.inc
|
2013-07-23 10:06:13 +00:00
|
|
|
-endif
|
2014-06-20 11:24:14 +00:00
|
|
|
- -@cat make.inc >> $(NETLIB_LAPACK_DIR)/make.inc
|
2013-07-23 10:06:13 +00:00
|
|
|
-endif
|
2014-07-16 22:00:07 +00:00
|
|
|
-
|
|
|
|
-large.tgz :
|
|
|
|
-ifndef NOFORTRAN
|
|
|
|
- if [ ! -a $< ]; then
|
|
|
|
- -wget http://www.netlib.org/lapack/timing/large.tgz;
|
|
|
|
- fi
|
|
|
|
-endif
|
2013-07-23 10:06:13 +00:00
|
|
|
|
2014-07-16 22:00:07 +00:00
|
|
|
timing.tgz :
|
2013-07-23 10:06:13 +00:00
|
|
|
ifndef NOFORTRAN
|