View | Details | Raw Unified | Return to bug 203482 | Differences between
and this patch

Collapse All | Expand All

(-)math/superlu/Makefile (-59 / +50 lines)
Lines 3-13 Link Here
3
3
4
PORTNAME=	superlu
4
PORTNAME=	superlu
5
PORTVERSION=	${P_VERSION}
5
PORTVERSION=	${P_VERSION}
6
PORTREVISION=	3
7
CATEGORIES=	math
6
CATEGORIES=	math
8
MASTER_SITES=	http://crd.lbl.gov/~xiaoye/SuperLU/ \
7
MASTER_SITES=	http://crd-legacy.lbl.gov/~xiaoye/SuperLU/ \
9
		http://crd.lbl.gov/~xiaoye/:doc
8
		http://crd-legacy.lbl.gov/~xiaoye/:doc
10
DISTNAME=	${PORTNAME}_${P_VERSION}
9
DISTNAME=	${PORTNAME}_${P_VERSION}
10
DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
11
DIST_SUBDIR=	${PORTNAME}
11
DIST_SUBDIR=	${PORTNAME}
12
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
12
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}
13
13
Lines 17-96 Link Here
17
LICENSE=	BSD3CLAUSE
17
LICENSE=	BSD3CLAUSE
18
LICENSE_FILE=	${WRKSRC}/README
18
LICENSE_FILE=	${WRKSRC}/README
19
19
20
USES=		fortran
20
WRKSRC=		${WRKDIR}/SuperLU_${P_VERSION}
21
21
22
USES=		fortran
23
ALL_TARGET=	lib
24
TEST_TARGET=	testing
22
USE_LDCONFIG=	yes
25
USE_LDCONFIG=	yes
26
MAKE_JOBS_UNSAFE=	yes
23
27
24
P_VERSION=	4.3
25
P_VER=		${P_VERSION:R}
26
WRKSRC=		${WRKDIR}/SuperLU_${P_VERSION}
27
ALL_TARGET=	lib
28
PLIST_SUB=	P_VERSION=${P_VERSION} P_VER=${P_VER}
28
PLIST_SUB=	P_VERSION=${P_VERSION} P_VER=${P_VER}
29
29
30
ARCH2FIX=	SRC/Makefile TESTING/MATGEN/Makefile CBLAS/Makefile make.inc	\
30
ARCH2FIX=	make.inc	\
31
		SRC/Makefile TESTING/MATGEN/Makefile CBLAS/Makefile	\
31
		MAKE_INC/make.alpha MAKE_INC/make.inc
32
		MAKE_INC/make.alpha MAKE_INC/make.inc
33
P_VERSION=	5.1
34
P_VER=		${P_VERSION:R}
32
35
33
MAKE_JOBS_UNSAFE=	yes
36
OPTIONS_DEFINE=		DOCS
34
37
OPTIONS_SINGLE=		BLAS
35
.include <bsd.port.pre.mk>
38
OPTIONS_SINGLE_BLAS=	ATLAS GOTOBLAS REFERENCE
36
39
OPTIONS_DEFAULT=	REFERENCE
37
.if ${PORT_OPTIONS:MDOCS}
40
38
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} superlu_ug.pdf SLU_general.ps.gz:doc simax95.ps.gz:doc
41
ATLAS_USES=		blaslapack:atlas
39
.endif
42
DOCS_DISTFILES=		superlu_ug.pdf \
40
43
			SLU_general.ps.gz:doc \
41
.if exists(${LOCALBASE}/lib/libgoto2.so)
44
			simax-29176.pdf:doc
42
WITH_BLAS?=	gotoblas
45
GOTOBLAS_DESC=		GotoBLAS blas implementation
43
.elif exists(${LOCALBASE}/lib/libatlas.so)
46
GOTOBLAS_USES=		blaslapack:gotoblas
44
WITH_BLAS?=	atlas
47
REFERENCE_DESC=		Reference blas implementation
45
.else
48
REFERENCE_USES=		blaslapack
46
WITH_BLAS?=	reference
47
.endif
48
49
. if ${WITH_BLAS} == reference
50
LIB_DEPENDS+=	libblas.so:${PORTSDIR}/math/blas
51
BLAS=		-lblas
52
.elif ${WITH_BLAS} == gotoblas
53
LIB_DEPENDS+=	libgoto2.so:${PORTSDIR}/math/gotoblas
54
BLAS=		-lgoto2p
55
.elif ${WITH_BLAS} == atlas
56
LIB_DEPENDS+=	libatlas.so:${PORTSDIR}/math/atlas
57
BLAS=		-lptf77blas
58
.endif
59
49
60
pre-build:
50
pre-build:
61
	${REINPLACE_CMD} -e 's+%%BLAS%%+-L${LOCALBASE}/lib ${BLAS}+ ; \
51
	@${REINPLACE_CMD} -e \
62
			s+%%CC%%+${CC}+; s+%%FC%%+${FC}+; \
52
		's|%%BLASLIB%%|-L${LOCALBASE}/lib ${BLASLIB}| ; \
63
			s+%%WRKSRC%%+${WRKSRC}+; \
53
		 s|%%CC%%|${CC}| ; \
64
			s+%%CFLAGS%%+${CFLAGS}+; \
54
		 s|%%FC%%|${FC}| ; \
65
			s+%%FFLAGS%%+${FFLAGS}+' \
55
		 s|%%WRKSRC%%|${WRKSRC}| ; \
66
	${WRKSRC}/make.inc
56
		 s|%%CFLAGS%%|${CFLAGS}| ; \
57
		 s|%%FFLAGS%%|${FFLAGS}|' ${WRKSRC}/make.inc
67
.for fmk in ${ARCH2FIX}
58
.for fmk in ${ARCH2FIX}
68
	${REINPLACE_CMD} -e 's|^ARCH *.= ar|ARCMD = ar| ; \
59
	@${REINPLACE_CMD} -e \
69
		s|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${fmk}
60
		's|^ARCH .*= ar|ARCMD = ar| ; \
61
		 s|\$$(ARCH)|$$(ARCMD)|' ${WRKSRC}/${fmk}
70
.endfor
62
.endfor
71
	${FIND} ${WRKSRC} -name Makefile | ${XARGS}	\
63
	@${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} -E -e \
72
		${REINPLACE_CMD} -E -e 's|\( cd (.*); \$$\(MAKE\) \)|\$$(MAKE) -C \1|'
64
		's|\( cd (.*); \$$\(MAKE\) \)|\$$(MAKE) -C \1|'
73
65
74
do-install:
66
do-install:
75
	${INSTALL_DATA} ${WRKSRC}/lib/libsuperlu_${P_VERSION}.a \
67
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/superlu
76
		${STAGEDIR}${PREFIX}/lib/libsuperlu.a
68
	(cd ${WRKSRC}/SRC && ${INSTALL_DATA} *.h \
77
	${INSTALL_LIB} ${WRKSRC}/libsuperlu_${P_VERSION}.so \
69
		${STAGEDIR}${PREFIX}/include/superlu)
78
		${STAGEDIR}${PREFIX}/lib/libsuperlu.so.${P_VER}
70
	(cd ${WRKSRC}/lib && ${INSTALL_DATA} libsuperlu_${P_VERSION}.a \
71
		${STAGEDIR}${PREFIX}/lib/libsuperlu.a)
72
	(cd ${WRKSRC} && ${INSTALL_LIB} libsuperlu_${P_VERSION}.so \
73
		${STAGEDIR}${PREFIX}/lib/libsuperlu.so.${P_VER})
79
	${LN} -fs libsuperlu.so.${P_VER} \
74
	${LN} -fs libsuperlu.so.${P_VER} \
80
		${STAGEDIR}${PREFIX}/lib/libsuperlu_${P_VERSION}.so
75
		${STAGEDIR}${PREFIX}/lib/libsuperlu_${P_VERSION}.so
81
	${LN} -fs libsuperlu_${P_VERSION}.so \
76
	${LN} -fs libsuperlu_${P_VERSION}.so \
82
		${STAGEDIR}${PREFIX}/lib/libsuperlu.so
77
		${STAGEDIR}${PREFIX}/lib/libsuperlu.so
83
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/superlu
78
84
	${INSTALL_DATA} ${WRKSRC}/SRC/*.h ${STAGEDIR}${PREFIX}/include/superlu
79
post-install-DOCS-on:
85
.if ${PORT_OPTIONS:MDOCS}
86
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
80
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
87
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/SLU_general.ps.gz ${STAGEDIR}${DOCSDIR}
81
	(cd ${DISTDIR}/${DIST_SUBDIR} && ${INSTALL_DATA} *.pdf *.ps.gz \
88
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/simax95.ps.gz ${STAGEDIR}${DOCSDIR}
82
		${STAGEDIR}${DOCSDIR})
89
	${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/superlu_ug.pdf ${STAGEDIR}${DOCSDIR}
90
.endif
91
83
92
regression-test: build
84
post-test:
93
	(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} testing )
94
	(cd ${WRKSRC}/TESTING && ${CAT} *.out )
85
	(cd ${WRKSRC}/TESTING && ${CAT} *.out )
95
86
96
.include <bsd.port.post.mk>
87
.include <bsd.port.mk>
(-)math/superlu/distinfo (-6 / +6 lines)
Lines 1-8 Link Here
1
SHA256 (superlu/superlu_4.3.tar.gz) = 169920322eb9b9c6a334674231479d04df72440257c17870aaa0139d74416781
1
SHA256 (superlu/superlu_5.1.tar.gz) = 63df543e5b014b7f314039f5d6a72454853b3e4f209888edda0394179c902b08
2
SIZE (superlu/superlu_4.3.tar.gz) = 2875951
2
SIZE (superlu/superlu_5.1.tar.gz) = 2563623
3
SHA256 (superlu/superlu_ug.pdf) = 4657e60fb7832465b60e208613992d29b6bbd8110103bfe0f5cee0ab79b67766
3
SHA256 (superlu/superlu_ug.pdf) = cc6c0a9c94e69041e2f7bf55780458a79c5bfb31af370d31771fb5f541837226
4
SIZE (superlu/superlu_ug.pdf) = 458405
4
SIZE (superlu/superlu_ug.pdf) = 679830
5
SHA256 (superlu/SLU_general.ps.gz) = 00d00cedfadd96a42014d22b30c0cc451a575d8d309774519068b11d4be1ebe5
5
SHA256 (superlu/SLU_general.ps.gz) = 00d00cedfadd96a42014d22b30c0cc451a575d8d309774519068b11d4be1ebe5
6
SIZE (superlu/SLU_general.ps.gz) = 89463
6
SIZE (superlu/SLU_general.ps.gz) = 89463
7
SHA256 (superlu/simax95.ps.gz) = b7e7705a280336474a25b0a1aef57226d81ea0dc6f18728b7347cb1726f91d2a
7
SHA256 (superlu/simax-29176.pdf) = 1411a3976b932a834157064dbaf0cdda10763f321bae10eb6f18925432250226
8
SIZE (superlu/simax95.ps.gz) = 138096
8
SIZE (superlu/simax-29176.pdf) = 521916
(-)math/superlu/files/patch-SRC+sp_coletree.c (-4 / +4 lines)
Lines 1-6 Link Here
1
--- SRC/sp_coletree.c.orig	Fri Sep 26 08:22:05 2003
1
--- SRC/sp_coletree.c.orig	2015-07-24 02:28:27 UTC
2
+++ SRC/sp_coletree.c	Thu Apr  1 20:29:10 2004
2
+++ SRC/sp_coletree.c
3
@@ -2,6 +2,9 @@
3
@@ -23,6 +23,9 @@
4
 /*  Elimination tree computation and layout routines */
4
 /*  Elimination tree computation and layout routines */
5
 
5
 
6
 #include <stdio.h>
6
 #include <stdio.h>
Lines 8-12 Link Here
8
+#include <malloc.h>
8
+#include <malloc.h>
9
+#endif
9
+#endif
10
 #include <stdlib.h>
10
 #include <stdlib.h>
11
 #include "dsp_defs.h"
11
 #include "slu_ddefs.h"
12
 
12
 
(-)math/superlu/files/patch-SRC-Makefile (-23 / +19 lines)
Lines 1-8 Link Here
1
--- SRC/Makefile.orig	2011-10-27 21:49:47.000000000 +0200
1
--- SRC/Makefile.orig	2015-12-02 00:15:46 UTC
2
+++ SRC/Makefile	2014-08-28 21:11:48.000000000 +0200
2
+++ SRC/Makefile
3
@@ -111,35 +111,43 @@
3
@@ -98,31 +98,43 @@ ZLUSRC = \
4
 	ilu_zcolumn_dfs.o ilu_zpanel_dfs.o ilu_zcopy_to_ucol.o \
4
 	ilu_zcolumn_dfs.o ilu_zpanel_dfs.o ilu_zcopy_to_ucol.o \
5
 	ilu_zpivotL.o zdiagonal.o
5
 	ilu_zpivotL.o zdiagonal.o zlacon2.o dzsum1.o izmax1.o
6
 
6
 
7
-all:    single double complex complex16
7
-all:    single double complex complex16
8
+SINGLE = $(SLUSRC) $(ALLAUX) $(LAAUX) $(SLASRC) $(SCLAUX)
8
+SINGLE = $(SLUSRC) $(ALLAUX) $(LAAUX) $(SLASRC) $(SCLAUX)
Lines 12-35 Link Here
12
+
12
+
13
+all:    static shared
13
+all:    static shared
14
 
14
 
15
 single: $(SLUSRC) $(ALLAUX) $(LAAUX) $(SLASRC) $(SCLAUX)
15
 single: $(SLUSRC) $(ALLAUX) $(SCAUX)
16
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) \
16
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) $(SLUSRC) $(ALLAUX) $(SCAUX)
17
-		$(SLUSRC) $(ALLAUX) $(LAAUX) $(SLASRC) $(SCLAUX)
18
-	$(RANLIB) $(SUPERLULIB)
17
-	$(RANLIB) $(SUPERLULIB)
19
 
18
 
20
 double: $(DLUSRC) $(ALLAUX) $(LAAUX) $(DLASRC) $(DZLAUX)
19
 double: $(DLUSRC) $(ALLAUX) $(DZLAUX)
21
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) \
20
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) $(DLUSRC) $(ALLAUX) $(DZLAUX)
22
-                $(DLUSRC) $(ALLAUX) $(LAAUX) $(DLASRC) $(DZLAUX)
23
-	$(RANLIB) $(SUPERLULIB)
21
-	$(RANLIB) $(SUPERLULIB)
24
 
22
 
25
 complex: $(CLUSRC) $(ALLAUX) $(LAAUX) $(CLASRC) $(SCLAUX)
23
 complex: $(CLUSRC) $(ALLAUX) $(SCAUX)
26
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) \
24
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) $(CLUSRC) $(ALLAUX) $(SCAUX)
27
-		$(CLUSRC) $(ALLAUX) $(LAAUX) $(CLASRC) $(SCLAUX)
28
-	$(RANLIB) $(SUPERLULIB)
25
-	$(RANLIB) $(SUPERLULIB)
29
 
26
 
30
 complex16: $(ZLUSRC) $(ALLAUX) $(LAAUX) $(ZLASRC) $(DZLAUX)
27
 complex16: $(ZLUSRC) $(ALLAUX) $(DZLAUX)
31
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) \
28
-	$(ARCH) $(ARCHFLAGS) $(SUPERLULIB) $(ZLUSRC) $(ALLAUX) $(DZLAUX)
32
-		$(ZLUSRC) $(ALLAUX) $(LAAUX) $(ZLASRC) $(DZLAUX)
33
+
29
+
34
+static: single double complex complex16
30
+static: single double complex complex16
35
+	$(ARCMD) $(ARCHFLAGS) $(SUPERLULIB) $(SINGLE)
31
+	$(ARCMD) $(ARCHFLAGS) $(SUPERLULIB) $(SINGLE)
Lines 38-45 Link Here
38
+	$(ARCMD) $(ARCHFLAGS) $(SUPERLULIB) $(COMPLEX16)
34
+	$(ARCMD) $(ARCHFLAGS) $(SUPERLULIB) $(COMPLEX16)
39
 	$(RANLIB) $(SUPERLULIB)
35
 	$(RANLIB) $(SUPERLULIB)
40
 
36
 
41
+shared:	single double complex complex16
37
+shared: single double complex complex16
42
+	$(CC) -shared -Wl,-soname=$(SUPERLULIB_SHARED) -o ../$(SUPERLULIB_SHARED) \
38
+	$(CC) -shared -Wl,-soname,$(SUPERLULIB_SHARED) -o ../$(SUPERLULIB_SHARED) \
43
+		$(ALLAUX) $(LAAUX) $(SCLAUX) $(DZLAUX) \
39
+		$(ALLAUX) $(LAAUX) $(SCLAUX) $(DZLAUX) \
44
+		$(SLUSRC) $(SLASRC) \
40
+		$(SLUSRC) $(SLASRC) \
45
+		$(DLUSRC) $(DLASRC) \
41
+		$(DLUSRC) $(DLASRC) \
Lines 50-65 Link Here
50
 ##################################
46
 ##################################
51
 # Do not optimize these routines #
47
 # Do not optimize these routines #
52
 ##################################
48
 ##################################
53
-slamch.o: slamch.c ; $(CC) -c $(NOOPTS) $(CDEFS) $<
49
-smach.o: smach.c ; $(CC) -c $(NOOPTS) $(CDEFS) $<
54
-dlamch.o: dlamch.c ; $(CC) -c $(NOOPTS) $(CDEFS) $<
50
-dmach.o: dmach.c ; $(CC) -c $(NOOPTS) $(CDEFS) $<
55
-superlu_timer.o:  superlu_timer.c ; $(CC) -c $(NOOPTS) $<
51
-superlu_timer.o:  superlu_timer.c ; $(CC) -c $(NOOPTS) $<
56
+slamch.o: slamch.c ; $(CC) -fpic -c $(NOOPTS) $(CDEFS) $<
52
+smach.o: smach.c ; $(CC) -fpic -c $(NOOPTS) $(CDEFS) $<
57
+dlamch.o: dlamch.c ; $(CC) -fpic -c $(NOOPTS) $(CDEFS) $<
53
+dmach.o: dmach.c ; $(CC) -fpic -c $(NOOPTS) $(CDEFS) $<
58
+superlu_timer.o:  superlu_timer.c ; $(CC) -fpic -c $(NOOPTS) $<
54
+superlu_timer.o:  superlu_timer.c ; $(CC) -fpic -c $(NOOPTS) $<
59
 ##################################
55
 ##################################
60
 
56
 
61
 .c.o:
57
 .c.o:
62
@@ -149,4 +157,4 @@
58
@@ -132,4 +144,4 @@ superlu_timer.o:  superlu_timer.c ; $(CC
63
 	$(FORTRAN) $(FFLAGS) -c $<
59
 	$(FORTRAN) $(FFLAGS) -c $<
64
 
60
 
65
 clean:	
61
 clean:	
(-)math/superlu/files/patch-TESTING_Makefile (-6 / +6 lines)
Lines 1-6 Link Here
1
--- TESTING/Makefile.orig	2011-10-27 21:49:47.000000000 +0200
1
--- TESTING/Makefile.orig	2015-07-24 02:28:27 UTC
2
+++ TESTING/Makefile	2014-08-27 19:38:04.000000000 +0200
2
+++ TESTING/Makefile
3
@@ -54,7 +54,7 @@
3
@@ -54,7 +54,7 @@ single: ./stest stest.out
4
 
4
 
5
 ./stest: $(SLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
5
 ./stest: $(SLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
6
 	$(LOADER) $(LOADOPTS) $(SLINTST) $(ALINTST) \
6
 	$(LOADER) $(LOADOPTS) $(SLINTST) $(ALINTST) \
Lines 9-15 Link Here
9
 
9
 
10
 stest.out: stest stest.csh
10
 stest.out: stest stest.csh
11
 	@echo Testing SINGLE PRECISION linear equation routines 
11
 	@echo Testing SINGLE PRECISION linear equation routines 
12
@@ -64,7 +64,7 @@
12
@@ -64,7 +64,7 @@ double: ./dtest dtest.out
13
 
13
 
14
 ./dtest: $(DLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
14
 ./dtest: $(DLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
15
 	$(LOADER) $(LOADOPTS) $(DLINTST) $(ALINTST) \
15
 	$(LOADER) $(LOADOPTS) $(DLINTST) $(ALINTST) \
Lines 18-24 Link Here
18
 
18
 
19
 dtest.out: dtest dtest.csh
19
 dtest.out: dtest dtest.csh
20
 	@echo Testing DOUBLE PRECISION linear equation routines 
20
 	@echo Testing DOUBLE PRECISION linear equation routines 
21
@@ -74,7 +74,7 @@
21
@@ -74,7 +74,7 @@ complex: ./ctest ctest.out
22
 
22
 
23
 ./ctest: $(CLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
23
 ./ctest: $(CLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
24
 	$(LOADER) $(LOADOPTS) $(CLINTST) $(ALINTST) \
24
 	$(LOADER) $(LOADOPTS) $(CLINTST) $(ALINTST) \
Lines 27-33 Link Here
27
 
27
 
28
 ctest.out: ctest ctest.csh
28
 ctest.out: ctest ctest.csh
29
 	@echo Testing SINGLE COMPLEX linear equation routines 
29
 	@echo Testing SINGLE COMPLEX linear equation routines 
30
@@ -84,7 +84,7 @@
30
@@ -84,7 +84,7 @@ complex16: ./ztest ztest.out
31
 
31
 
32
 ./ztest: $(ZLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
32
 ./ztest: $(ZLINTST) $(ALINTST) $(SUPERLULIB) $(TMGLIB)
33
 	$(LOADER) $(LOADOPTS) $(ZLINTST) $(ALINTST) \
33
 	$(LOADER) $(LOADOPTS) $(ZLINTST) $(ALINTST) \
(-)math/superlu/files/patch-make.inc (-20 / +26 lines)
Lines 1-24 Link Here
1
--- make.inc.orig	2011-12-12 23:34:18.000000000 +0100
1
--- make.inc.orig	2015-12-03 23:27:55 UTC
2
+++ make.inc	2014-08-26 23:26:34.000000000 +0200
2
+++ make.inc
3
@@ -21,14 +21,15 @@
3
@@ -21,8 +21,9 @@ PLAT = _linux
4
 #
4
 #
5
 #  The name of the libraries to be created/linked to
5
 #  The name of the libraries to be created/linked to
6
 #
6
 #
7
-SuperLUroot	= $(HOME)/Codes/SuperLU/SuperLU_4.3
7
-SuperLUroot	= $(HOME)/Dropbox/Codes/SuperLU/SuperLU_5.1
8
+SuperLUroot	= %%WRKSRC%%
8
+SuperLUroot	= %%WRKSRC%%
9
 SUPERLULIB   	= $(SuperLUroot)/lib/libsuperlu_4.3.a
9
 SUPERLULIB   	= $(SuperLUroot)/lib/libsuperlu_5.1.a
10
+SUPERLULIB_SHARED   = libsuperlu_4.3.so
10
+SUPERLULIB_SHARED	= libsuperlu_5.1.so
11
 TMGLIB       	= libtmglib.a
11
 
12
 #BLASLIB   	= $(SuperLUroot)/lib/libblas.a
12
 
13
 
13
 ## BLASLIB   	= $(SuperLUroot)/lib/libblas.a
14
@@ -32,7 +33,7 @@ SUPERLULIB   	= $(SuperLUroot)/lib/libsu
14
 
15
 
16
 ## This BLAS causes single-precision to fail the test in SuperLU
15
 BLASDEF 	= -DUSE_VENDOR_BLAS
17
 BLASDEF 	= -DUSE_VENDOR_BLAS
16
-BLASLIB 	= -L$(HOME)/lib/GotoBLAS -lgoto
18
-BLASLIB 	= -L/usr/lib -lblas
17
+BLASLIB 	= %%BLAS%%
19
+BLASLIB 	= %%BLASLIB%%
18
 
20
 
19
 ## ATLAS BLAS causes single-precision to fail
21
 TMGLIB       	= libtmglib.a
20
 #BLASLIB   	= -L/usr/lib/atlas -lblas
22
 LIBS		= $(SUPERLULIB) $(BLASLIB)
21
@@ -41,15 +42,14 @@
23
@@ -41,17 +42,17 @@ LIBS		= $(SUPERLULIB) $(BLASLIB)
22
 #  The archiver and the flag(s) to use when building archive (library)
24
 #  The archiver and the flag(s) to use when building archive (library)
23
 #  If your system has no ranlib, set RANLIB = echo.
25
 #  If your system has no ranlib, set RANLIB = echo.
24
 #
26
 #
Lines 28-47 Link Here
28
 RANLIB       = ranlib
30
 RANLIB       = ranlib
29
 
31
 
30
-CC           = gcc
32
-CC           = gcc
31
-CFLAGS       = -DPRNTlevel=0 -O3
33
-CFLAGS       = -O3 -g
32
+CFLAGS       = -DPRNTlevel=0 %%CFLAGS%% -fpic
34
+#CC           = gcc
35
+CFLAGS       = %%CFLAGS%% -fpic
33
 NOOPTS       = 
36
 NOOPTS       = 
34
-FORTRAN	     = g77
37
-FORTRAN	     = gfortran #g77
35
-FFLAGS       = -O2
38
-FFLAGS       = -O2 -g -fopenmp
36
+FORTRAN	     = %%FC%%
39
+FORTRAN	     = %%FC%%
37
+FFLAGS       = %%FFLAGS%%
40
+FFLAGS       = %%FFLAGS%%
38
 LOADER       = $(CC)
41
 LOADER       = $(CC)
39
 LOADOPTS     =
42
-LOADOPTS     = -fopenmp
43
+#LOADOPTS     = -fopenmp
40
 
44
 
41
@@ -61,5 +61,5 @@
45
 #
46
 #  C preprocessor defs for compilation for the Fortran interface
47
@@ -61,5 +62,5 @@ CDEFS        = -DAdd_
42
 #
48
 #
43
 # The directory in which Matlab is installed
49
 # The directory in which Matlab is installed
44
 #
50
 #
45
-MATLAB	     = /usr/sww/matlab
51
-MATLAB	     = /usr/sww/matlab
46
+#MATLAB	     = /usr/sww/pkg/matlab
52
+#MATLAB	     = /usr/sww/matlab
47
 
53
 
(-)math/superlu/pkg-descr (-23 / +15 lines)
Lines 1-24 Link Here
1
			SuperLU (Version 3.0)
1
SuperLU is a general purpose library for the direct solution of large,
2
			=====================
2
sparse, nonsymmetric systems of linear equations on high performance
3
machines. The library is written in C and is callable from either C or
4
Fortran. The library routines will perform an LU decomposition with
5
partial pivoting and triangular system solves through forward and back
6
substitution. The LU factorization routines can handle non-square
7
matrices but the triangular solves are performed only for square
8
matrices. The matrix columns may be preordered (before factorization)
9
either through library or user supplied routines. This preordering for
10
sparsity is completely separate from the factorization. Working
11
precision iterative refinement subroutines are provided for improved
12
backward stability. Routines are also provided to equilibrate the
13
system, estimate the condition number, calculate the relative backward
14
error, and estimate error bounds for the refined solutions.
3
15
4
SuperLU is a general purpose library for the direct solution of large, 
16
WWW: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/
5
sparse, nonsymmetric systems of linear equations on high performance 
6
machines. The library is written in C and is callable from either C or 
7
Fortran. The library routines will perform an LU decomposition with 
8
partial pivoting and triangular system solves through forward and back 
9
substitution. The LU factorization routines can handle non-square matrices 
10
but the triangular solves are performed only for square matrices. The 
11
matrix columns may be preordered (before factorization) either through 
12
library or user supplied routines. This preordering for sparsity is 
13
completely separate from the factorization. Working precision iterative 
14
refinement subroutines are provided for improved backward stability. 
15
Routines are also provided to equilibrate the system, estimate the 
16
condition number, calculate the relative backward error, and estimate 
17
error bounds for the refined solutions.
18
19
WWW: http://crd.lbl.gov/~xiaoye/SuperLU/
20
21
Developers:	Sherry Li
22
		Jim Demmel
23
		John Gilbert
24
NOTE: This library has to be linked with BLAS or a compatible library.
(-)math/superlu/pkg-plist (-1 / +1 lines)
Lines 15-19 Link Here
15
lib/libsuperlu.so.%%P_VER%%
15
lib/libsuperlu.so.%%P_VER%%
16
lib/libsuperlu_%%P_VERSION%%.so
16
lib/libsuperlu_%%P_VERSION%%.so
17
%%PORTDOCS%%%%DOCSDIR%%/SLU_general.ps.gz
17
%%PORTDOCS%%%%DOCSDIR%%/SLU_general.ps.gz
18
%%PORTDOCS%%%%DOCSDIR%%/simax95.ps.gz
18
%%PORTDOCS%%%%DOCSDIR%%/simax-29176.pdf
19
%%PORTDOCS%%%%DOCSDIR%%/superlu_ug.pdf
19
%%PORTDOCS%%%%DOCSDIR%%/superlu_ug.pdf

Return to bug 203482