make_brutus.inc 2.81 KB
Newer Older
ofgeorg's avatar
ofgeorg committed
1
#################################################
ofgeorg's avatar
ofgeorg committed
2
#  PCMALIB make include file 
ofgeorg's avatar
ofgeorg committed
3 4
#################################################

ofgeorg's avatar
ofgeorg committed
5
# Name of the program
6
LIB_CMA := libpcma
ofgeorg's avatar
ofgeorg committed
7 8 9 10 11 12


######### SHELL OPTIONS ################

SHELL   := /bin/sh

13 14
######## OUTPUT Folder ################
# will create directories BUILDDIR/bin, BUILDDIR/objects and BUILDDIR/include here
ofgeorg's avatar
ofgeorg committed
15 16
BUILDDIR:= .

17 18 19
####### INPUT Folder ##################
# expects all the source files in that folder and its subfolders
SRCDIR := .
ofgeorg's avatar
ofgeorg committed
20 21 22 23 24


######### COMPILER AND COMPILER OPTIONS #########

# If you want to keep the pre-compiled sources! (comment if not)
ofgeorg's avatar
ofgeorg committed
25

26
# C compiler - needed if BBOB is encluded
ofgeorg's avatar
ofgeorg committed
27
CC = icc
28
# Fortran Compiler
ofgeorg's avatar
ofgeorg committed
29
FC = ifort
ofgeorg's avatar
ofgeorg committed
30
# -O3 is optimization level and -heap-arrays puts local variables on the heap instead of the stack
ofgeorg's avatar
ofgeorg committed
31
CFLAGS = -O3 -heap-arrays 0
ofgeorg's avatar
ofgeorg committed
32 33 34 35
# One for dependency generation
DEPCPP  := cpp
# and one for F90 code generation
CPP     := cpp
ofgeorg's avatar
ofgeorg committed
36 37 38 39 40 41 42 43


##### comment or set to empty string if not running debug
DEBUG  := -g




ofgeorg's avatar
ofgeorg committed
44 45
######## LINKER FLAGS #############################

ofgeorg's avatar
ofgeorg committed
46 47
LINKER = ifort
MPI_LINKER = /cluster/apps/openmpi/1.3.3/x86_64/intel_11.0.081/bin/mpif90
ofgeorg's avatar
ofgeorg committed
48 49 50


################### MATLAB ######################
ofgeorg's avatar
ofgeorg committed
51
# Declare if Matlab is present on your machine (0=no,1=yes)
ofgeorg's avatar
ofgeorg committed
52
# If yes, the program will produce a .mat output file.
ofgeorg's avatar
ofgeorg committed
53
# WATCH OUT NOT TO HAVE A SPACE AFTER 1/0
ofgeorg's avatar
ofgeorg committed
54

ofgeorg's avatar
ofgeorg committed
55
HAS_MAT = 1
ofgeorg's avatar
ofgeorg committed
56 57
# If Matlab is present, please specify the appropriate include paths

ofgeorg's avatar
ofgeorg committed
58
MATINC = -I/cluster/apps/matlab/7.6/x86_64/extern/include
ofgeorg's avatar
ofgeorg committed
59
MATLIB = -L/cluster/apps/matlab/7.6/x86_64/bin/glnxa64
ofgeorg's avatar
ofgeorg committed
60 61 62 63 64 65 66 67 68 69 70 71


################### LAPACK ######################
# You might need to tell the linker where to find your LAPACK library if not
# already included in your PATH variable

LAPACKLIB  = -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_lapack

################## PRECISION ####################
# Set the precision that should be used for computation
# (Single Precision = 1, Double Precision = 2)
# Please do a make clean whenever you change the precision
ofgeorg's avatar
ofgeorg committed
72 73
# THE SINGLE SETTING MOST LIKLY WONT WORK ANY MORE!
# this is due to 3rd party code included in pcmalib
ofgeorg's avatar
ofgeorg committed
74 75 76 77 78
PREC = 2


##################### MPI #######################
# If MPI is installed, set MPI = 1, otherwise MPI = 0
ofgeorg's avatar
ofgeorg committed
79
# WATCH OUT NOT TO HAVE A SPACE AFTER 1/0
ofgeorg's avatar
ofgeorg committed
80 81 82 83
# Define where to find the MPI include files needed for compilation
# And tell the linker where to find the MPI-Libraries if they are not
# already included in your PATH variable

84
HAS_MPI = 0
ofgeorg's avatar
ofgeorg committed
85 86
MPIINC = -I/cluster/apps/openmpi/1.3.3/x86_64/intel_11.0.081/include/
MPILIB = -L/cluster/apps/openmpi/1.3.3/x86_64/intel_11.0.081/lib/
ofgeorg's avatar
ofgeorg committed
87

88 89 90
##################### BBOB #######################
# include the BBOB benchmarks in the code? (yes = 1)
# WATCH OUT NOT TO HAVE A SPACE AFTER 1/0
ofgeorg's avatar
ofgeorg committed
91
# you need a working C compiler to include this
92
BBOB = 0