requirements-gcc 4.31 KB
Newer Older
1 2 3
package CAMEL

use class v2.4.3
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
4 5

#compiler options
6 7 8 9 10
#macro cpp "icpc"
#macro cppflags " -O2  -ip -ansi_alias -align -Wbrief "

macro cppflags " -O2 -pipe -ansi -Woverloaded-virtual -Wpedantic -Wunused -Wmaybe-uninitialized -Wno-deprecated -Wno-div-by-zero -Wno-variadic-macros"
#macro cppflags " -O2 -pipe -ansi"
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
11 12 13 14 15
macro cflags  " -O2  -fopenmp "


#CAMEL includes
include_dirs " ../src"
16
include_dirs "../src/camel"
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
17 18 19 20
include_dirs "../src/Minuit2-5.28.00/src"
include_dirs "../src/Minuit2-5.28.00/inc"
include_dirs  "../src/cxxsupport"
include_dirs  "../src/AbsRand"
21 22 23
include_dirs  "../src/camel/JLA"
include_dirs  "../src/camel/JLA/jla_likelihood_v3/src"

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
24

25 26 27
#cfitsio
#include_dirs "$(CLIKDIR)/include"
#macro_append  CAMEL_linkopts " -lcfitsio "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
28

29
#JLA :needs cblas/lapack
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
30
macro_append cppflags ' -DJLA '
31
#macro_append CAMEL_linkopts " -L$(MKLROOT)/lib/intel64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -ljla "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
32
include_dirs  "/usr/include/atlas"
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
macro_append  CAMEL_linkopts " -L/usr/lib64/atlas -lcblas -llapack -ljla "


#PLANCK
macro_append cppflags " -DCLIK  $(CLIKCFLAGS)"
macro_append cflags " -DCLIK  $(CLIKCFLAGS)"
macro_append  CAMEL_linkopts " $(CLIKLIBS) "
macro_append  CAMEL_linkopts "-L$(CLIKDIR)/lib -lcfitsio -lclik "

#include_dirs "$(CLIKDIR)/include"
#include_dirs  "$(CLIKDIR)/src"
#macro_append cppflags " -DCLIK "
#macro_append cflags " -DCLIK "
#macro_append  CAMEL_linkopts "-L$(CLIKDIR)/lib -lclik "
#path_append LD_LIBRARY_PATH "$(CLIKDIR)/lib"
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
48 49


50 51 52 53 54 55 56
# PICO #still hardcoded
include_dirs "/usr/include/python2.7"
include_dirs "/usr/lib64/python2.7/site-packages/numpy/core/include"
include_dirs "/home/plaszczy/.local/lib/python2.7/site-packages/pypico"
macro_append CAMEL_linkopts " -L/home/plaszczy/softs/pypico-3.2.0/build/temp.linux-x86_64-2.7 -lpico -L/usr/lib64/python2.7/config -lpython2.7 "
macro_append cppflags ' -DPICODATA=\"$(PICO_DATA)\" '

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
57 58 59 60 61 62

#CAMEL LIBRARIES
library Minuit -no_share ../src/Minuit2-5.28.00/src/*.cxx
library Util -no_share -x=ddl.cc ../src/cxxsupport/*.cc
library AbsRand -no_share ../src/AbsRand/*.cc
library CLHEP -no_share ../src/CLHEP/src/*.cc
63
library jla  -no_share ../src/camel/JLA/jla_likelihood_v3/src/ini.c ../src/camel/JLA/jla_likelihood_v3/src/jla.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
64

65 66
macro camelsrc "*.cc CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc"
library MinuitFit  -no_share -s=../src/camel $(camelsrc)
67
library MCMC  -no_share  -s=../src/camel/MCMC *.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
68

69
macro CAMEL_linkopts "-L$(CAMEL_root)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lAbsRand -lUtil "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
70 71 72 73 74
macro_append cppflags ' -DPARFILE=\"$(CAMELROOT)/par\" '


#CAMEL applications
# pour relinker si changement: toutes les application du package
75
macro CAMEL_stamps $(PACKAGE_ROOT)/$(CMTCONFIG)/MinuitFit.stamp
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
76 77 78
macro application_suffix ""

#groupe exec
79 80
application writeChi2 -group=exec -s=../src/camel exec/writeChi2.cc
application writeSpectra -group=exec -s=../src/camel exec/writeSpectra.cc
81 82
application Minimize -group=exec -s=../src/camel exec/Minimize.cc
application ScanParam -group=exec -s=../src/camel exec/ScanParam.cc
83
application mcmc -group=exec -s=../src/camel/MCMC exec/mainMCMC.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
84 85

#tests
86 87 88 89
application testKlass -group=test -s=../src/camel test/testKlass.cc
application testCLHEP -group=test -s=../src/camel/test testCLHEP.cc
application testBAO -group=test -s=../src/camel/test testBAO.cc
application testHiLLiPOP -group=test -s=../src/camel/test testHiLLiPOP.cc
90 91
application dump_clik -group=test -s=../src/camel test/test_clik.cc
application dump_lensing -group=test -s=../src/camel test/test_lensing.cc
92 93
application test_jla -group=test -s=../src/camel test/test_jla.cc
application testPico -group=test -s=../src/camel/pico/exec testPico.cc
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
94 95 96 97 98 99 100

#lIST OF ALL DEPENDENCIES
macro_append Minimize_dependencies " MinuitFit "
macro_append ScanParam_dependencies " MinuitFit "
macro_append writeChi2_dependencies " MinuitFit "
macro_append writeSpectra_dependencies " MinuitFit "
macro_append mcmc_dependencies " MinuitFit MCMC"
101
macro_append testKlass_dependencies " MinuitFit"
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
102 103 104 105 106 107 108 109
macro_append clik_example_CC_dependencies " MinuitFit "
macro_append test_clik_dependencies " MinuitFit "
macro_append test_lensing_dependencies " MinuitFit "
macro_append testCLHEP_dependencies " CLHEP "
macro_append testBAO_dependencies " MinuitFit "
macro_append testHiLLiPOP_dependencies " MinuitFit "
macro_append test_jla_dependencies " MinuitFit "
macro_append testPico_dependencies " MinuitFit "
110