Skip to content

Commit

Permalink
fix athena configuration bug
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Jul 22, 2016
1 parent a4fa3d4 commit ce7ffc0
Show file tree
Hide file tree
Showing 2 changed files with 110 additions and 0 deletions.
109 changes: 109 additions & 0 deletions Stone/Makeoptions.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# -*- mode: makefile -*-
#
# @WARNING1@
# @WARNING2@
#===============================================================================
# FILE: Makeoptions.in
#
# PURPOSE: Template for src/Makeoptions. When 'configure' is run, a new
# Makeoptions will be created (overwriting the last) from this template.
#
# TO BY-PASS CONFIGURE: copy this file into Makeoptions, and edit by hand to
# set the appropriate object files, compiler options, and library paths.
#
#------------------- macro definitions ---------------------------------------

MACHINE = default
#MACHINE = kraken

#------------------- default definitions -------------------------------------

CC = @CC@
LDR = @CC@
OPT = @COMPILER_OPTS@
CUSTLIBS =
MPIINC =
MPILIB =
FFTWLIB =
FFTWINC =
BLOCKINC =
BLOCKLIB =
CUSTLIBS = -ldl -lm

ifeq (@FFT_MODE@,FFT_ENABLED)
BLOCKINC = -I fftsrc
FFTWLIB = -L/usr/lib -lfftw3
FFTWINC = -I/usr/include
endif

ifeq (@MPI_MODE@,MPI_PARALLEL)
CC = mpicc
LDR = mpicc
endif

#------------------- compiler/library definitions ----------------------------
# select using MACHINE=<name> in command line. For example
# ophir> make all MACHINE=ophir
# New machines can be added to ifeq blocks below.

ifeq ($(MACHINE),kraken)
CC = cc
LDR = cc
OPT = -O3
else ifeq ($(MACHINE),ophir)
CC = /usr/peyton/intel/10.0/cce/bin/icc
LDR = /usr/peyton/intel/10.0/cce/bin/icc
OPT = -O3 -xW -ipo -i-static
FFTWLIB = -L/scr1/lemaster/fftw-3.1.2/lib -lfftw3
FFTWINC = -I/scr1/lemaster/fftw-3.1.2/include
else ifeq ($(MACHINE),peyton-mpi)
CC = /usr/peyton/openmpi/bin/mpicc
LDR = /usr/peyton/openmpi/bin/mpicc
OPT = -O3 -g
MPIINC = -I/usr/peyton/openmpi/include
MPILIB = -L/usr/peyton/openmpi/lib -lmpi
FFTWLIB = -L/scr0/lemaster/fftw-3.1.2/lib -lfftw3
FFTWINC = -I/scr0/lemaster/fftw-3.1.2/include
else ifeq ($(MACHINE),artemis)
CC = mpicc
LDR = mpicc
OPT = -O3 -xW -ipo -i-static
MPIINC =
MPILIB = -lmpi
FFTWLIB = -L/opt/fftw3/lib64 -lfftw3
FFTWINC = -I/opt/fftw3/include
else ifeq ($(MACHINE),aether)
CC = mpicc
LDR = mpicc
OPT = -O3
MPIINC = -I~/lam-7.1.4/include
MPILIB = -L~/lam-7.1.4/lib
else ifeq ($(MACHINE),zenith)
CC = mpicc
LDR = mpicc
OPT = -O3
MPIINC = -I/opt/mpich2/intel/include
MPILIB = -L/opt/mpich2/intel/lib -lmpich
FFTWLIB = -L/usr/local/fftw3 -lfftw3
FFTWINC = -I/usr/local/fftw3
else ifeq ($(MACHINE),macosx)
CC = gcc
LDR = gcc
OPT = -O3
FFTWLIB = -L/opt/local/lib -lfftw3
FTWINC = -I/opt/local/include
#else
# abort Unsupported MACHINE=$(MACHINE)
endif

ifeq (@MPI_MODE@,NO_MPI_PARALLEL)
MPIINC =
MPILIB =
endif
ifeq (@FFT_MODE@,NO_FFT)
FFTWINC =
FFTWLIB =
endif

CFLAGS = $(OPT) $(BLOCKINC) $(MPIINC) $(FFTWINC)
LIB = $(BLOCKLIB) $(MPILIB) $(FFTWLIB) $(CUSTLIBS)
1 change: 1 addition & 0 deletions Stone/README
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The Makeoptions.in file in athena4.2 can be a bit buggy, this version should fix that

0 comments on commit ce7ffc0

Please sign in to comment.