Docker-in-Docker (DinD) capabilities of public runners deactivated. More info

requirements-lite 4.92 KB
Newer Older
1 2
package CAMEL

3
use class *
4

5 6 7
#CLASS optional FastPk access
#macro_append cppflags " -DFASTPK "

8

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
9 10 11
#compiler options
#default is gcc here are the C++ compiler options
macro cppflags " -O3  -pipe -ansi -fPIC -Wall "
12

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
13 14
#do we need optimzations here?
#macro_append cppflags "-ffast-math -m64 "
15

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
16 17 18 19
# although it may be strange we do not compile CAMEL with OMP because CLASS is not thread safe
# no worries: CLASS is compiled with OMP
#macro_append cppflags "-fopenmp "
macro_append cpplinkflags  " -fopenmp "
20

21

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#CAMEL includes
include_dirs " $(CAMELROOT)/src"
include_dirs " $(CAMELROOT)/src/camel"
include_dirs " $(CAMELROOT)/src/Minuit2-5.28.00/src"
include_dirs " $(CAMELROOT)/src/Minuit2-5.28.00/inc"
include_dirs  "$(CAMELROOT)/src/cxxsupport"
include_dirs  "$(CAMELROOT)/src/AbsRand"
include_dirs  "$(CAMELROOT)/src/camel/JLA"
include_dirs  "$(CAMELROOT)/src/camel/JLA/jla_likelihood_v3/src"


#cfitsio
include_dirs "/usr/include/cfitsio"
macro_append  CAMEL_linkopts " -lcfitsio"

#JLA :requires cblas/lapack
#macro_append cppflags ' -DJLA '
#include_dirs  "/usr/include/atlas"
#macro_append  CAMEL_linkopts " -L/usr/lib64/atlas -ltatlas -llapack -ljla "
#application test_jla -group=test -s=$(CAMELROOT)/src/camel test/test_jla.cc
#library jla  -no_share $(CAMELROOT)/src/camel/JLA/jla_likelihood_v3/src/ini.c $(CAMELROOT)/src/camel/JLA/jla_likelihood_v3/src/jla.cc
43

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
44
#PLANCK
45 46 47
#macro_append cppflags " -DCLIK  $(CLIKCFLAGS)"
#macro_append cflags " -DCLIK  $(CLIKCFLAGS)"
#macro_append  CAMEL_linkopts " $(CLIKLIBS) "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
48 49 50 51
#include_dirs "$(CLIKDIR)/include"
#include_dirs  "$(CLIKDIR)/src"
#macro_append cppflags " -DCLIK "
#macro_append cflags " -DCLIK "
52
#macro_append  CAMEL_linkopts "-L$(CLIKDIR)/lib -lclik "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
53 54 55
#path_append LD_LIBRARY_PATH "$(CLIKDIR)/lib"
#application dump_clik -group=test -s=$(CAMELROOT)/src/camel test/test_clik.cc
#application dump_lensing -group=test -s=$(CAMELROOT)/src/camel test/test_lensing.cc
56 57


Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
58
# PICO 
59 60
#macro_append cppflags " -DPICO $(PICOINC) "
#macro_append CAMEL_linkopts " -L$(PICO_CODE) -lpico -lpython2.7 "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
61 62 63
# the previous line should be sufficient otherwise try the PICOLIBS 
# (set in camel_setup.sh)
#macro_append CAMEL_linkopts " $(PICOLIBS)"
64
#macro_append cppflags ' -DPICODATA=\"$(PICO_DATA)\" '
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
65
#application testPico -group=test -s=$(CAMELROOT)/src/camel/pico/exec testPico.cc
66

67

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
68 69 70

###FROM THERE YOU DONT NEED TO TOUCH
###########################################################################################
71
#CAMEL LIBRARIES
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
72 73 74 75
library Minuit -no_share $(CAMELROOT)/src/Minuit2-5.28.00/src/*.cxx
library Util -no_share -x=ddl.cc $(CAMELROOT)/src/cxxsupport/*.cc
library AbsRand -no_share $(CAMELROOT)/src/AbsRand/*.cc
library CLHEP -no_share $(CAMELROOT)/src/CLHEP/src/*.cc
76

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
77 78 79
macro camelsrc "*.cc CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc Pk/*.cc"
library MinuitFit  -no_share -s=$(CAMELROOT)/src/camel $(camelsrc)
library MCMC  -no_share  -s=$(CAMELROOT)/src/camel/MCMC *.cc
80

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
81
macro CAMEL_linkopts "-L$(CAMELROOT)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lAbsRand -lUtil "
82
macro_append cppflags ' -DRELPATH=\"$(CAMELROOT)/lik\" '
83 84 85 86


#CAMEL applications
# pour relinker si changement: toutes les application du package
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
87
macro CAMEL_stamps " $(CAMELROOT)/$(CMTCONFIG)/MinuitFit.stamp $(CAMELROOT)/$(CMTCONFIG)/MCMC.stamp "
88 89
macro application_suffix ""

Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
90 91 92 93 94 95 96 97
#groupe exec
application writeChi2 -group=exec -s=$(CAMELROOT)/src/camel exec/writeChi2.cc
application writeSpectra -group=exec -s=$(CAMELROOT)/src/camel exec/writeSpectra.cc
application writeSpectraPk -group=exec -s=$(CAMELROOT)/src/camel exec/writeSpectraPk.cc
application Minimize -group=exec -s=$(CAMELROOT)/src/camel exec/Minimize.cc
application Profile -group=exec -s=$(CAMELROOT)/src/camel exec/Profile.cc
application ScanParam -group=exec -s=$(CAMELROOT)/src/camel exec/ScanParam.cc
application mcmc -group=exec -s=$(CAMELROOT)/src/camel/MCMC exec/mainMCMC.cc
98 99

#tests
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
100 101 102 103
application testKlass -group=test -s=$(CAMELROOT)/src/camel test/testKlass.cc
application testCLHEP -group=test -s=$(CAMELROOT)/src/camel/test testCLHEP.cc
application testBAO -group=test -s=$(CAMELROOT)/src/camel/test testBAO.cc
application testHiLLiPOP -group=test -s=$(CAMELROOT)/src/camel/test testHiLLiPOP.cc
104 105 106

#lIST OF ALL DEPENDENCIES
macro_append Minimize_dependencies " MinuitFit "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
107
macro_append Profile_dependencies " MinuitFit "
108 109 110
macro_append ScanParam_dependencies " MinuitFit "
macro_append writeChi2_dependencies " MinuitFit "
macro_append writeSpectra_dependencies " MinuitFit "
Plaszczynski Stephane's avatar
Plaszczynski Stephane committed
111 112 113
macro_append writeSpectraPkependencies " MinuitFit "
macro_append mcmc_dependencies " MinuitFit "
macro_append mcmc_dependencies " MCMC "
114 115 116 117 118 119 120 121 122
macro_append testKlass_dependencies " MinuitFit"
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 "