Commit 55c4abf3 authored by Christopher Subich's avatar Christopher Subich
Browse files

Plata system configuration file

Also tweaked make_deps to properly install AMD and to
pick up on SYSTEM_CFLAGS (necessary for 32/64-bit
switch on plata).  Consequently, added SYSTEM_CXXFLAGS
since -Wno-deprecated is inappropriate for pure-C
parent 71793fde
......@@ -120,26 +120,27 @@ else
# inside s -- / -- is also used as a path separator. Hence, this command
# uses # instead.
cat UFconfig.mk | sed \
-e "s#^CC.*#CC = ${CC}#" \
-e "s#^CPLUSPLUS.*#CPLUSPLUS = ${CXX}#" \
-e "s#^BLAS.*#BLAS = ${BLAS_INCDIR} ${BLAS_LIBDIR} ${BLAS_LIB}#" \
-e "s#^LAPACK.*#LAPACK = ${LAPACK_INCDIR} ${LAPACK_LIBDIR} ${LAPACK_LIB}#" \
-e "s#^CC.*#CC = ${CC}#" \
-e "s#^CPLUSPLUS.*#CPLUSPLUS = ${CXX}#" \
-e "s#^CFLAGS.*#CFLAGS = ${SYSTEM_CFLAGS} ${OPTIM_CFLAGS}#" \
-e "s#^BLAS.*#BLAS = ${BLAS_INCDIR} ${BLAS_LIBDIR} ${BLAS_LIB}#" \
-e "s#^LAPACK.*#LAPACK = ${LAPACK_INCDIR} ${LAPACK_LIBDIR} ${LAPACK_LIB}#" \
> UFconfig.new
mv UFconfig.new UFconfig.mk
popd
echo "Building AMD"
pushd AMD
(make > /dev/null) || (echo "Could not make AMD"; exit 1)
cp Include/* ../include/
cp Lib/*.a ../lib
(make lib > /dev/null) || (echo "Could not make AMD"; exit 1)
cp -v Include/* ../include/
cp -v Lib/*.a ../lib/
popd
pushd UMFPACK
echo "Building UMFPACK"
(make library > /dev/null) || (echo "Could not make UMFPACK"; exit 1);
cp Include/* ../include
cp Lib/*.a ../lib
cp -v Include/* ../include/
cp -v Lib/*.a ../lib/
popd
cp UFconfig/UFconfig.h ./include/
......
......@@ -21,7 +21,7 @@ ifeq ($(strip $(MPICXX)),)
endif
# Assemble the CFLAGS
CFLAGS:=$(SYSTEM_CFLAGS)
CFLAGS:=$(SYSTEM_CFLAGS) $(MPI_CFLAGS) $(SYSTEM_CXXFLAGS)
LDFLAGS:=$(SYSTEM_LDFLAGS)
ifeq ($(DEBUG),true)
CFLAGS:=$(CFLAGS) $(DEBUG_CFLAGS)
......
......@@ -3,12 +3,13 @@
# System-specific settings for belize.math.uwaterloo.ca
CC=mpicc
CXX=mpicc
LD=mpicc
CXX=mpic++
LD=mpic++
# System-specific compiler flags
SYSTEM_CFLAGS="-Wno-deprecated"
SYSTEM_CFLAGS=
SYSTEM_LDFLAGS=
SYSTEM_CXXFLAGS="-Wno-deprecated"
# Compiler flags for debugging
DEBUG_CFLAGS="-g -DBZ_DEBUG"
......
#!/bin/bash
# System-specific settings for belize.math.uwaterloo.ca
CC=gcc
CXX=gicc
LD=mpic++
MPICXX=mpic++
# System-specific compiler flags
SYSTEM_CFLAGS="-m64"
SYSTEM_CXXFLAGS="-Wno-deprecated"
SYSTEM_LDFLAGS=-m64
# Compiler flags for debugging
DEBUG_CFLAGS="-g -DBZ_DEBUG"
DEBUG_LDFLAGS=
# Compiler flags for optimization
OPTIM_CFLAGS="-O3 -ffast-math -msse"
OPTIM_LDFLAGS=
# Compiler flags for extra optimization, such as -ip -ipo on icc
EXTRA_OPTIM_CFLAGS=
EXTRA_OPTIM_LDFLAGS=
# Library names/locations/flags for MPI-compilation. This will
# probably not be necessary on systems with a working mpicc
# alias
MPI_CFLAGS=
MPI_LIB=
MPI_LIBDIR=
MPI_INCDIR=
# Library names/locations for LAPACK
LAPACK_LIB="-framework Accelerate"
LAPACK_LIBDIR=
LAPACK_INCDIR=
# Library locations for blitz; leave blank to use system-installed
# or compiled-with-this-package version
BLITZ_LIBDIR=
BLITZ_INCDIR=
# Library locations for fftw
FFTW_LIBDIR=
FFTW_INCDIR=
# Library locations for UMFPACK
UMF_INCDIR=
UMF_LIBDIR=
# Location/library for BLAS
BLAS_LIB="-framework Accelerate"
BLAS_LIBDIR=
BLAS_INCDIR=
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment