···11+From 456b26d0c9101adaa5876954baac0ca0e872dab6 Mon Sep 17 00:00:00 2001
22+From: Thomas Tuegel <ttuegel@gmail.com>
33+Date: Mon, 15 Dec 2014 10:18:01 -0600
44+Subject: [PATCH 1/3] disable metis
55+66+---
77+ SuiteSparse_config/SuiteSparse_config.mk | 6 +++---
88+ 1 file changed, 3 insertions(+), 3 deletions(-)
99+1010+diff --git a/SuiteSparse_config/SuiteSparse_config.mk b/SuiteSparse_config/SuiteSparse_config.mk
1111+index ba2da23..e1514bf 100644
1212+--- a/SuiteSparse_config/SuiteSparse_config.mk
1313++++ b/SuiteSparse_config/SuiteSparse_config.mk
1414+@@ -212,8 +212,8 @@ XERBLA =
1515+ # The path is relative to where it is used, in CHOLMOD/Lib, CHOLMOD/MATLAB, etc.
1616+ # You may wish to use an absolute path. METIS is optional. Compile
1717+ # CHOLMOD with -DNPARTITION if you do not wish to use METIS.
1818+-METIS_PATH = ../../metis-4.0
1919+-METIS = ../../metis-4.0/libmetis.a
2020++# METIS_PATH = ../../metis-4.0
2121++# METIS = ../../metis-4.0/libmetis.a
2222+2323+ #------------------------------------------------------------------------------
2424+ # UMFPACK configuration:
2525+@@ -273,7 +273,7 @@ UMFPACK_CONFIG =
2626+ # -DNSUNPERF for Solaris only. If defined, do not use the Sun
2727+ # Performance Library
2828+2929+-CHOLMOD_CONFIG = $(GPU_CONFIG)
3030++CHOLMOD_CONFIG = $(GPU_CONFIG) -DNPARTITION
3131+3232+ # uncomment this line to compile CHOLMOD without METIS:
3333+ # CHOLMOD_CONFIG = -DNPARTITION
3434+--
3535+2.1.3
3636+
···11+#===============================================================================
22+# SuiteSparse_config.mk: common configuration file for the SuiteSparse
33+#===============================================================================
44+55+# This file contains all configuration settings for all packages authored or
66+# co-authored by Tim Davis:
77+#
88+# Package Version Description
99+# ------- ------- -----------
1010+# AMD 1.2 or later approximate minimum degree ordering
1111+# COLAMD 2.4 or later column approximate minimum degree ordering
1212+# CCOLAMD 1.0 or later constrained column approximate minimum degree ordering
1313+# CAMD any constrained approximate minimum degree ordering
1414+# UMFPACK 4.5 or later sparse LU factorization, with the BLAS
1515+# CHOLMOD any sparse Cholesky factorization, update/downdate
1616+# KLU 0.8 or later sparse LU factorization, BLAS-free
1717+# BTF 0.8 or later permutation to block triangular form
1818+# LDL 1.2 or later concise sparse LDL'
1919+# CXSparse any extended version of CSparse (int/long, real/complex)
2020+# SuiteSparseQR any sparse QR factorization
2121+# RBio 2.0 or later read/write sparse matrices in Rutherford-Boeing format
2222+#
2323+# By design, this file is NOT included in the CSparse makefile.
2424+# That package is fully stand-alone. CSparse is primarily for teaching;
2525+# production code should use CXSparse.
2626+#
2727+# The SuiteSparse_config directory and the above packages should all appear in
2828+# a single directory, in order for the Makefile's within each package to find
2929+# this file.
3030+#
3131+# To enable an option of the form "# OPTION = ...", edit this file and
3232+# delete the "#" in the first column of the option you wish to use.
3333+#
3434+# The use of METIS 4.0.1 is optional. To exclude METIS, you must compile with
3535+# CHOLMOD_CONFIG set to -DNPARTITION. See below for details. However, if you
3636+# do not have a metis-4.0 directory inside the SuiteSparse directory, the
3737+# */Makefile's that optionally rely on METIS will automatically detect this
3838+# and compile without METIS.
3939+4040+#------------------------------------------------------------------------------
4141+# Generic configuration
4242+#------------------------------------------------------------------------------
4343+4444+# Using standard definitions from the make environment, typically:
4545+#
4646+# CC cc C compiler
4747+# CXX g++ C++ compiler
4848+# CFLAGS [ ] flags for C and C++ compiler
4949+# CPPFLAGS [ ] flags for C and C++ compiler
5050+# TARGET_ARCH [ ] target architecture
5151+# FFLAGS [ ] flags for Fortran compiler
5252+# RM rm -f delete a file
5353+# AR ar create a static *.a library archive
5454+# ARFLAGS rv flags for ar
5555+# MAKE make make itself (sometimes called gmake)
5656+#
5757+# You can redefine them here, but by default they are used from the
5858+# default make environment.
5959+6060+# To use OpenMP add -openmp to the CFLAGS
6161+# If OpenMP is used, it is recommended to define CHOLMOD_OMP_NUM_THREADS
6262+# as the number of cores per socket on the machine being used to maximize
6363+# memory performance
6464+ CFLAGS =
6565+# CFLAGS = -g
6666+# for the icc compiler and OpenMP:
6767+# CFLAGS = -openmp
6868+6969+# C and C++ compiler flags. The first three are standard for *.c and *.cpp
7070+# Add -DNTIMER if you do use any timing routines (otherwise -lrt is required).
7171+# CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC -DNTIMER
7272+ CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC
7373+# for the MKL BLAS:
7474+# CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -O3 -fexceptions -fPIC -I$(MKLROOT)/include -D_GNU_SOURCE
7575+# with no optimization:
7676+# CF = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -fexceptions -fPIC
7777+7878+# ranlib, and ar, for generating libraries. If you don't need ranlib,
7979+# just change it to RANLAB = echo
8080+RANLIB = ranlib
8181+ARCHIVE = $(AR) $(ARFLAGS)
8282+8383+# copy and delete a file
8484+CP = cp -f
8585+MV = mv -f
8686+8787+# Fortran compiler (not required for 'make' or 'make library')
8888+F77 = gfortran
8989+F77FLAGS = $(FFLAGS) -O
9090+F77LIB =
9191+9292+# C and Fortran libraries. Remove -lrt if you don't have it.
9393+ LIB = -lm -lrt
9494+# Using the following requires CF = ... -DNTIMER on POSIX C systems.
9595+# LIB = -lm
9696+9797+# For "make install"
9898+INSTALL_LIB = @out@/lib
9999+INSTALL_INCLUDE = @out@/include
100100+101101+# Which version of MAKE you are using (default is "make")
102102+# MAKE = make
103103+# MAKE = gmake
104104+105105+#------------------------------------------------------------------------------
106106+# BLAS and LAPACK configuration:
107107+#------------------------------------------------------------------------------
108108+109109+# UMFPACK and CHOLMOD both require the BLAS. CHOLMOD also requires LAPACK.
110110+# See Kazushige Goto's BLAS at http://www.cs.utexas.edu/users/flame/goto/ or
111111+# http://www.tacc.utexas.edu/~kgoto/ for the best BLAS to use with CHOLMOD.
112112+# LAPACK is at http://www.netlib.org/lapack/ . You can use the standard
113113+# Fortran LAPACK along with Goto's BLAS to obtain very good performance.
114114+# CHOLMOD gets a peak numeric factorization rate of 3.6 Gflops on a 3.2 GHz
115115+# Pentium 4 (512K cache, 4GB main memory) with the Goto BLAS, and 6 Gflops
116116+# on a 2.5Ghz dual-core AMD Opteron.
117117+118118+# These settings will probably not work, since there is no fixed convention for
119119+# naming the BLAS and LAPACK library (*.a or *.so) files.
120120+121121+# This is probably slow ... it might connect to the Standard Reference BLAS:
122122+ BLAS = -lf77blas -latlas -lcblas -lgfortran
123123+ LAPACK = -llapack -latlas -lcblas
124124+125125+# MKL
126126+# BLAS = -Wl,--start-group $(MKLROOT)/lib/intel64/libmkl_intel_lp64.a $(MKLROOT)/lib/intel64/libmkl_core.a $(MKLROOT)/lib/intel64/libmkl_intel_thread.a -Wl,--end-group -lpthread -lm
127127+# LAPACK =
128128+129129+# ACML
130130+# BLAS = -lacml -lgfortran
131131+# LAPACK =
132132+133133+# OpenBLAS
134134+# BLAS = -lopenblas
135135+# LAPACK =
136136+137137+# NOTE: this next option for the "Goto BLAS" has nothing to do with a "goto"
138138+# statement. Rather, the Goto BLAS is written by Dr. Kazushige Goto.
139139+# Using the Goto BLAS:
140140+# BLAS = -lgoto -lgfortran -lgfortranbegin
141141+# BLAS = -lgoto2 -lgfortran -lgfortranbegin -lpthread
142142+143143+# Using non-optimized versions:
144144+# BLAS = -lblas_plain -lgfortran -lgfortranbegin
145145+# LAPACK = -llapack_plain
146146+147147+# BLAS = -lblas_plain -lgfortran -lgfortranbegin
148148+# LAPACK = -llapack
149149+150150+# The BLAS might not contain xerbla, an error-handling routine for LAPACK and
151151+# the BLAS. Also, the standard xerbla requires the Fortran I/O library, and
152152+# stops the application program if an error occurs. A C version of xerbla
153153+# distributed with this software (SuiteSparse_config/xerbla/libcerbla.a)
154154+# includes a Fortran-callable xerbla routine that prints nothing and does not
155155+# stop the application program. This is optional.
156156+157157+# XERBLA = ../../SuiteSparse_config/xerbla/libcerbla.a
158158+159159+# If you wish to use the XERBLA in LAPACK and/or the BLAS instead,
160160+# use this option:
161161+XERBLA =
162162+163163+# If you wish to use the Fortran SuiteSparse_config/xerbla/xerbla.f instead,
164164+# use this:
165165+166166+# XERBLA = ../../SuiteSparse_config/xerbla/libxerbla.a
167167+168168+#------------------------------------------------------------------------------
169169+# GPU configuration for CHOLMOD and SPQR
170170+#------------------------------------------------------------------------------
171171+172172+# no cuda
173173+ CUDA_ROOT =
174174+ GPU_BLAS_PATH =
175175+ GPU_CONFIG =
176176+ CUDA_PATH =
177177+ CUDART_LIB =
178178+ CUBLAS_LIB =
179179+ CUDA_INC_PATH =
180180+ NV20 =
181181+ NV30 =
182182+ NV35 =
183183+ NVCC = echo
184184+ NVCCFLAGS =
185185+186186+# with cuda for CHOLMOD
187187+# CUDA_ROOT = /usr/local/cuda
188188+# GPU_BLAS_PATH = $(CUDA_ROOT)
189189+# with 4 cores (default):
190190+# GPU_CONFIG = -I$(CUDA_ROOT)/include -DGPU_BLAS
191191+# with 10 cores:
192192+# GPU_CONFIG = -I$(CUDA_ROOT)/include -DGPU_BLAS -DCHOLMOD_OMP_NUM_THREADS=10
193193+# CUDA_PATH = $(CUDA_ROOT)
194194+# CUDART_LIB = $(CUDA_ROOT)/lib64/libcudart.so
195195+# CUBLAS_LIB = $(CUDA_ROOT)/lib64/libcublas.so
196196+# CUDA_INC_PATH = $(CUDA_ROOT)/include/
197197+# NV20 = -arch=sm_20 -Xcompiler -fPIC
198198+# NV30 = -arch=sm_30 -Xcompiler -fPIC
199199+# NV35 = -arch=sm_35 -Xcompiler -fPIC
200200+# NVCC = $(CUDA_ROOT)/bin/nvcc
201201+# NVCCFLAGS = $(NV20) -O3 -gencode=arch=compute_20,code=sm_20 -gencode=arch=compute_30,code=sm_30 -gencode=arch=compute_35,code=sm_35
202202+203203+# was NVCC = $(CUDA_ROOT)/bin/nvcc $(NV35) $(NV30) $(NV20)
204204+205205+#------------------------------------------------------------------------------
206206+# METIS, optionally used by CHOLMOD
207207+#------------------------------------------------------------------------------
208208+209209+# If you do not have METIS, or do not wish to use it in CHOLMOD, you must
210210+# compile CHOLMOD with the -DNPARTITION flag.
211211+212212+# The path is relative to where it is used, in CHOLMOD/Lib, CHOLMOD/MATLAB, etc.
213213+# You may wish to use an absolute path. METIS is optional. Compile
214214+# CHOLMOD with -DNPARTITION if you do not wish to use METIS.
215215+# METIS_PATH = ../../metis-4.0
216216+# METIS = ../../metis-4.0/libmetis.a
217217+218218+#------------------------------------------------------------------------------
219219+# UMFPACK configuration:
220220+#------------------------------------------------------------------------------
221221+222222+# Configuration flags for UMFPACK. See UMFPACK/Source/umf_config.h for details.
223223+#
224224+# -DNBLAS do not use the BLAS. UMFPACK will be very slow.
225225+# -D'LONGBLAS=long' or -DLONGBLAS='long long' defines the integers used by
226226+# LAPACK and the BLAS (defaults to 'int')
227227+# -DNSUNPERF do not use the Sun Perf. Library (default is use it on Solaris)
228228+# -DNRECIPROCAL do not multiply by the reciprocal
229229+# -DNO_DIVIDE_BY_ZERO do not divide by zero
230230+# -DNCHOLMOD do not use CHOLMOD as a ordering method. If -DNCHOLMOD is
231231+# included in UMFPACK_CONFIG, then UMFPACK does not rely on
232232+# CHOLMOD, CAMD, CCOLAMD, COLAMD, and METIS.
233233+234234+UMFPACK_CONFIG =
235235+236236+# uncomment this line to compile UMFPACK without CHOLMOD:
237237+# UMFPACK_CONFIG = -DNCHOLMOD
238238+239239+#------------------------------------------------------------------------------
240240+# CHOLMOD configuration
241241+#------------------------------------------------------------------------------
242242+243243+# CHOLMOD Library Modules, which appear in libcholmod.a:
244244+# Core requires: none
245245+# Check requires: Core
246246+# Cholesky requires: Core, AMD, COLAMD. optional: Partition, Supernodal
247247+# MatrixOps requires: Core
248248+# Modify requires: Core
249249+# Partition requires: Core, CCOLAMD, METIS. optional: Cholesky
250250+# Supernodal requires: Core, BLAS, LAPACK
251251+#
252252+# CHOLMOD test/demo Modules (all are GNU GPL, do not appear in libcholmod.a):
253253+# Tcov requires: Core, Check, Cholesky, MatrixOps, Modify, Supernodal
254254+# optional: Partition
255255+# Valgrind same as Tcov
256256+# Demo requires: Core, Check, Cholesky, MatrixOps, Supernodal
257257+# optional: Partition
258258+#
259259+# Configuration flags:
260260+# -DNCHECK do not include the Check module. License GNU LGPL
261261+# -DNCHOLESKY do not include the Cholesky module. License GNU LGPL
262262+# -DNPARTITION do not include the Partition module. License GNU LGPL
263263+# also do not include METIS.
264264+# -DNCAMD do not use CAMD, etc from Partition module. GNU LGPL
265265+# -DNGPL do not include any GNU GPL Modules in the CHOLMOD library:
266266+# -DNMATRIXOPS do not include the MatrixOps module. License GNU GPL
267267+# -DNMODIFY do not include the Modify module. License GNU GPL
268268+# -DNSUPERNODAL do not include the Supernodal module. License GNU GPL
269269+#
270270+# -DNPRINT do not print anything.
271271+# -D'LONGBLAS=long' or -DLONGBLAS='long long' defines the integers used by
272272+# LAPACK and the BLAS (defaults to 'int')
273273+# -DNSUNPERF for Solaris only. If defined, do not use the Sun
274274+# Performance Library
275275+276276+CHOLMOD_CONFIG = $(GPU_CONFIG) -DNPARTITION
277277+278278+# uncomment this line to compile CHOLMOD without METIS:
279279+# CHOLMOD_CONFIG = -DNPARTITION
280280+281281+#------------------------------------------------------------------------------
282282+# SuiteSparseQR configuration:
283283+#------------------------------------------------------------------------------
284284+285285+# The SuiteSparseQR library can be compiled with the following options:
286286+#
287287+# -DNPARTITION do not include the CHOLMOD partition module
288288+# -DNEXPERT do not include the functions in SuiteSparseQR_expert.cpp
289289+# -DHAVE_TBB enable the use of Intel's Threading Building Blocks (TBB)
290290+291291+# default, without timing, without TBB:
292292+SPQR_CONFIG = $(GPU_CONFIG)
293293+# with TBB:
294294+# SPQR_CONFIG = -DHAVE_TBB
295295+296296+# This is needed for IBM AIX: (but not for and C codes, just C++)
297297+# SPQR_CONFIG = -DBLAS_NO_UNDERSCORE
298298+299299+# with TBB, you must select this:
300300+# TBB = -ltbb
301301+# without TBB:
302302+TBB =
303303+304304+#------------------------------------------------------------------------------
305305+# code formatting
306306+#------------------------------------------------------------------------------
307307+308308+# Use "grep" only, if you do not have "indent"
309309+# PRETTY = grep -v "^\#"
310310+# PRETTY = grep -v "^\#" | indent -bl -nce -ss -bli0 -i4 -sob -l120
311311+ PRETTY = grep -v "^\#" | indent -bl -nce -bli0 -i4 -sob -l120
312312+313313+#------------------------------------------------------------------------------
314314+# Linux
315315+#------------------------------------------------------------------------------
316316+317317+# Using default compilers:
318318+# CC = gcc
319319+# CF = $(CFLAGS) -O3 -fexceptions
320320+321321+# alternatives:
322322+# CF = $(CFLAGS) -g -fexceptions \
323323+# -Wall -W -Wshadow -Wmissing-prototypes -Wstrict-prototypes \
324324+# -Wredundant-decls -Wnested-externs -Wdisabled-optimization -ansi \
325325+# -funit-at-a-time
326326+# CF = $(CFLAGS) -O3 -fexceptions \
327327+# -Wall -W -Werror -Wshadow -Wmissing-prototypes -Wstrict-prototypes \
328328+# -Wredundant-decls -Wnested-externs -Wdisabled-optimization -ansi
329329+# CF = $(CFLAGS) -O3 -fexceptions -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
330330+# CF = $(CFLAGS) -O3
331331+# CF = $(CFLAGS) -O3 -g -fexceptions
332332+# CF = $(CFLAGS) -g -fexceptions \
333333+# -Wall -W -Wshadow \
334334+# -Wredundant-decls -Wdisabled-optimization -ansi
335335+336336+# consider:
337337+# -fforce-addr -fmove-all-movables -freduce-all-givs -ftsp-ordering
338338+# -frename-registers -ffast-math -funroll-loops
339339+340340+# Using the Goto BLAS:
341341+# BLAS = -lgoto -lfrtbegin -lg2c $(XERBLA) -lpthread
342342+343343+# Using Intel's icc and ifort compilers:
344344+# (does not work for mexFunctions unless you add a mexopts.sh file)
345345+# F77 = ifort
346346+# CC = icc
347347+# CF = $(CFLAGS) -O3 -xN -vec_report=0
348348+# CF = $(CFLAGS) -g
349349+350350+# 64bit:
351351+# F77FLAGS = -O -m64
352352+# CF = $(CFLAGS) -O3 -fexceptions -m64
353353+# BLAS = -lgoto64 -lfrtbegin -lg2c -lpthread $(XERBLA)
354354+# LAPACK = -llapack64
355355+356356+# SUSE Linux 10.1, AMD Opteron, with GOTO Blas
357357+# F77 = gfortran
358358+# BLAS = -lgoto_opteron64 -lgfortran
359359+360360+# SUSE Linux 10.1, Intel Pentium, with GOTO Blas
361361+# F77 = gfortran
362362+# BLAS = -lgoto -lgfortran
363363+364364+#------------------------------------------------------------------------------
365365+# Mac
366366+#------------------------------------------------------------------------------
367367+368368+# As recommended by macports, http://suitesparse.darwinports.com/
369369+# I've tested them myself on Mac OSX 10.6.1 and 10.6.8 (Snow Leopard),
370370+# on my MacBook Air, and they work fine.
371371+372372+# F77 = gfortran
373373+# CF = $(CFLAGS) -O3 -fno-common -fexceptions -DNTIMER
374374+# BLAS = -framework Accelerate
375375+# LAPACK = -framework Accelerate
376376+# LIB = -lm
377377+378378+#------------------------------------------------------------------------------
379379+# Solaris
380380+#------------------------------------------------------------------------------
381381+382382+# 32-bit
383383+# CF = $(CFLAGS) -KPIC -dalign -xc99=%none -Xc -xlibmieee -xO5 -xlibmil -m32
384384+385385+# 64-bit
386386+# CF = $(CFLAGS) -fast -KPIC -xc99=%none -xlibmieee -xlibmil -m64 -Xc
387387+388388+# FFLAGS = -fast -KPIC -dalign -xlibmil -m64
389389+390390+# The Sun Performance Library includes both LAPACK and the BLAS:
391391+# BLAS = -xlic_lib=sunperf
392392+# LAPACK =
393393+394394+395395+#------------------------------------------------------------------------------
396396+# Compaq Alpha
397397+#------------------------------------------------------------------------------
398398+399399+# 64-bit mode only
400400+# CF = $(CFLAGS) -O2 -std1
401401+# BLAS = -ldxml
402402+# LAPACK =
403403+404404+#------------------------------------------------------------------------------
405405+# IBM RS 6000
406406+#------------------------------------------------------------------------------
407407+408408+# BLAS = -lessl
409409+# LAPACK =
410410+411411+# 32-bit mode:
412412+# CF = $(CFLAGS) -O4 -qipa -qmaxmem=16384 -qproto
413413+# F77FLAGS = -O4 -qipa -qmaxmem=16384
414414+415415+# 64-bit mode:
416416+# CF = $(CFLAGS) -O4 -qipa -qmaxmem=16384 -q64 -qproto
417417+# F77FLAGS = -O4 -qipa -qmaxmem=16384 -q64
418418+419419+#------------------------------------------------------------------------------
420420+# SGI IRIX
421421+#------------------------------------------------------------------------------
422422+423423+# BLAS = -lscsl
424424+# LAPACK =
425425+426426+# 32-bit mode
427427+# CF = $(CFLAGS) -O
428428+429429+# 64-bit mode (32 bit int's and 64-bit long's):
430430+# CF = $(CFLAGS) -64
431431+# F77FLAGS = -64
432432+433433+# SGI doesn't have ranlib
434434+# RANLIB = echo
435435+436436+#------------------------------------------------------------------------------
437437+# AMD Opteron (64 bit)
438438+#------------------------------------------------------------------------------
439439+440440+# BLAS = -lgoto_opteron64 -lg2c
441441+# LAPACK = -llapack_opteron64
442442+443443+# SUSE Linux 10.1, AMD Opteron
444444+# F77 = gfortran
445445+# BLAS = -lgoto_opteron64 -lgfortran
446446+# LAPACK = -llapack_opteron64
447447+448448+#------------------------------------------------------------------------------
449449+# remove object files and profile output
450450+#------------------------------------------------------------------------------
451451+452452+CLEAN = *.o *.obj *.ln *.bb *.bbg *.da *.tcov *.gcov gmon.out *.bak *.d *.gcda *.gcno