Serial version of Qbox for MacOS and Fedora

Qbox installation issues
Forum rules
You must be a registered user to post in this forum. Registered users may also post new topics if they consider that their subject do not correspond to any topic already present on the forum.
Post Reply
fgygi
Site Admin
Posts: 167
Joined: Tue Jun 17, 2008 7:03 pm

Serial version of Qbox for MacOS and Fedora

Post by fgygi »

A serial version of Qbox (i.e. not using MPI) can be built for MacOSX using the following makefile include:

Code: Select all

#
# Copyright (c) 2010 The Regents of the University of California
#
# This file is part of Qbox
#
# Qbox is distributed under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
# See the file COPYING in the root directory of this distribution
# or <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------
#
#  macOSX.mk
#
#-------------------------------------------------------------------------------
#
 PLT=MacOSX_x8664
#-------------------------------------------------------------------------------
 XERCESCDIR=$(HOME)/software/xerces/xerces-c-src_2_8_0
 FFTWDIR=$(HOME)/software/fftw/fftw-2.1.5/fftw
 PLTOBJECTS = readTSC.o
 CXX=g++-4.0
 LD=$(CXX)
 PLTFLAGS += -DIA32 -DUSE_FFTW -D_LARGEFILE_SOURCE \
             -D_FILE_OFFSET_BITS=64 -DADD_ \
             -DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES
 INCLUDE = -I$(FFTWDIR) -I$(XERCESCDIR)/include
 CXXFLAGS= -g -Wunused -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
 LIBPATH = -L$(FFTWDIR)/.libs -L$(XERCESCDIR)/lib
 LIBS =  -lfftw -llapack -lblas -lm \
It has been tested on a MacBook Air. The Qbox executable for MacOSX is available at http://eslab.ucdavis.edu/software/qbox/ ... MacOSX.tgz.

On a Fedora/Intel x86_64 platform, the following makefile include can be used to build a serial version:

Code: Select all

#-------------------------------------------------------------------------------
#
# Copyright (c) 2010 The Regents of the University of California
#
# This file is part of Qbox
#
# Qbox is distributed under the terms of the GNU General Public License
# as published by the Free Software Foundation, either version 2 of
# the License, or (at your option) any later version.
# See the file COPYING in the root directory of this distribution
# or <http://www.gnu.org/licenses/>.
#
#-------------------------------------------------------------------------------
#
#  x8664_gcc_serial.mk
#
#-------------------------------------------------------------------------------
#
 PLT=Linux_x8664
#-------------------------------------------------------------------------------
 CXX=/usr/bin/g++
 LD=$(CXX)
 LDFLAGS = $(LIBPATH) $(LIBS)
 PLTFLAGS += -DIA32 -DUSE_FFTW -D_LARGEFILE_SOURCE \
             -D_FILE_OFFSET_BITS=64 -DADD_ \
             -DAPP_NO_THREADS -DXML_USE_NO_THREADS -DUSE_XERCES
 BLASDIR=/usr/lib64/atlas
 LAPACKDIR=/usr/lib64/atlas
 XERCESCDIR=$(HOME)/software/xerces/Linux_x8664/xerces-c-src_2_7_0
 PLTOBJECTS = readTSC.o
 INCLUDE = -I$(XERCESCDIR)/include
 CXXFLAGS= -O4 -D$(PLT) $(INCLUDE) $(PLTFLAGS) $(DFLAGS)
 LIBPATH = -L$(BLASDIR)
 LIBS =  -lpthread -lfftw -lxerces-c -luuid -llapack \
         -lf77blas -latlas -lgfortran 
#-------------------------------------------------------------------------------

Post Reply