-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefileCAMB
87 lines (68 loc) · 2.28 KB
/
MakefileCAMB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#CAMB Makefile
#Set FISHER=Y to compile bispectrum fisher matrix code
FISHER=
#Edit for your compiler
#Note there are many old ifort versions, some of which behave oddly
#Intel , -openmp toggles mutli-processor:
#note version 10.0 gives wrong result for lensed when compiled with -openmp [fixed in 10.1]
F90C = ifort
FFLAGS= -O3
#FFLAGS = -O2 #3 -ffree-form -x f95-cpp-input
## This is flag is passed to the Fortran compiler allowing it to link C++ if required (not usually):
#F90CRLINK = -cxxlib
#ifneq ($(FISHER),)
#FFLAGS += -mkl
#endif
#Gfortran compiler:
#The options here work in v4.5, delete from RHS in earlier versions (15% slower)
#if pre v4.3 add -D__GFORTRAN__
#With v4.6+ try -Ofast -march=native -fopenmp
#On my machine v4.5 is about 20% slower than ifort
#F90C = gfortran -ffast-math
##FFLAGS = -O2
#-ffast-math
#Old Intel ifc, add -openmp for multi-processor (some have bugs):
#F90C = ifc
#FFLAGS = -O2 -Vaxlib -ip -W0 -WB -quiet -fpp2
#some systems can can also add e.g. -tpp7 -xW
#G95 compiler
#F90C = g95
#FFLAGS = -O2
#SGI, -mp toggles multi-processor. Use -O2 if -Ofast gives problems.
#F90C = f90
#FFLAGS = -Ofast -mp
#Digital/Compaq fortran, -omp toggles multi-processor
#F90C = f90
#FFLAGS = -omp -O4 -arch host -math_library fast -tune host -fpe1
#Absoft ProFortran, single processor:
#F90C = f95
#FFLAGS = -O2 -cpu:athlon -s -lU77 -w -YEXT_NAMES="LCS" -YEXT_SFX="_"
#NAGF95, single processor:
#F90C = f95
#FFLAGS = -DNAGF95 -O3
#PGF90
#F90C = pgf90
#FFLAGS = -O2 -DESCAPEBACKSLASH -Mpreprocess
#Sun V880
#F90C = mpf90
#FFLAGS = -O4 -openmp -ftrap=%none -dalign -DMPI
#Sun parallel enterprise:
#F90C = f95
#FFLAGS = -O2 -xarch=native64 -openmp -ftrap=%none
#try removing -openmp if get bus errors. -03, -04 etc are dodgy.
#IBM XL Fortran, multi-processor (run gmake)
#F90C = xlf90_r
#FFLAGS = -DESCAPEBACKSLASH -DIBMXL -qsmp=omp -qsuffix=f=f90:cpp=F90 -O3 -qstrict -qarch=pwr3 -qtune=pwr3
#Settings for building camb_fits
#Location of FITSIO and name of library
#FITSDIR ?= /home/cpac/cpac-tools/lib
#FITSLIB = cfitsio
#Location of HEALPIX for building camb_fits
#HEALPIXDIR ?= /home/cpac/cpac-tools/healpix
#ifneq ($(FISHER),)
#FFLAGS += -DFISHER
#EXTCAMBFILES = Matrix_utils.o
#else
#EXTCAMBFILES =
#endif
include ./Makefile_main