Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Docker-in-Docker (DinD) capabilities of public runners deactivated.
More info
Open sidebar
Xavier Garrido
CAMEL
Commits
d6e06e30
Commit
d6e06e30
authored
Sep 06, 2018
by
Plaszczynski Stephane
Browse files
more informations in the camel_setuP
parent
d456415f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
135 additions
and
2 deletions
+135
-2
cmt/camel_setup.sh
cmt/camel_setup.sh
+14
-1
cmt/requirements-dbug
cmt/requirements-dbug
+119
-0
cmt/requirements-lsst.cc
cmt/requirements-lsst.cc
+2
-1
No files found.
cmt/camel_setup.sh
View file @
d6e06e30
#cmt stuff
if
[
-z
"
$CMTPATH
"
]
;
then
if
[
-z
"
$CMTCLASS
"
]
;
then
...
...
@@ -75,14 +76,26 @@ export PYTHONPATH
#echo "PYTHONPATH=$PYTHONPATH"
#echo "Using project $CMTPATH"
echo
"------------------"
cmt show uses
echo
"your CAMELROOT is
$CAMELROOT
"
echo
"CAMEL RELATIVE PATH=
$CAMELROOT
/lik"
echo
"------------------"
echo
"CMTSITE=
$CMTSITE
"
echo
"C++ compiler:"
$(
cmt show macro_value cpp
)
--version
|
head
-1
echo
"with flags"
cmt show macro_value cppflags
# put 1 at the end of next line if you want a closer look at compilaton
export
VERBOSE
=
echo
"
if you want
more verbose compilation
define
VERBOSE env
ironement variable to 1: export VERBOSE=1
"
echo
"
for
more verbose compilation
set
VERBOSE env
variable
"
export
PATH
=
${
CAMELROOT
}
/
${
CAMELCONFIG
}
/:
${
PATH
}
cmt/requirements-dbug
0 → 100644
View file @
d6e06e30
package
CAMEL
use
class
*
#
compiler
options
#
default
is
gcc
here
are
the
C
++
compiler
options
macro
cppflags
" -g -O3 -pipe -ansi -Woverloaded-virtual -Wpedantic -Wunused -Wmaybe-uninitialized -Wno-deprecated -Wno-div-by-zero "
#
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 "
#
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
"$(CLIKDIR)/include"
#
macro_append
CAMEL_linkopts
" -L$(CLIKDIR) -lcfitsio"
include_dirs
"$(CFITSIODIR)/include"
macro_append
CAMEL_linkopts
" -L$(CFITSIODIR) -lcfitsio"
#
JLA
:
requires
cblas
/
lapack
(
you
may
try
atlas
for
these
)
#
macro_append
cppflags
' -DJLA '
#
include_dirs
"/usr/include/atlas"
#
macro_append
CAMEL_linkopts
" -ljla -L/usr/lib/atlas-base/atlas -lblas -llapack "
#
application
test_jla
-
group
=
test
-
s
=$(
CAMELROOT
)/
src
/
camel
test
/
test_jla
.
cc
#
PLANCK
#
macro_append
cppflags
" -DCLIK $(CLIKCFLAGS)"
#
macro_append
cflags
" -DCLIK $(CLIKCFLAGS)"
#
macro_append
CAMEL_linkopts
" $(CLIKLIBS) "
#
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"
#
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
#
PICO
#
macro_append
cppflags
" -DPICO $(PICOINC) "
#
macro_append
CAMEL_linkopts
" -L$(PICO_CODE) -lpico -lpython2.7 "
#
the
previous
line
should
be
sufficient
otherwise
try
the
PICOLIBS
#
(
set
in
camel_setup
.
sh
)
#
macro_append
CAMEL_linkopts
" $(PICOLIBS)"
#
macro_append
cppflags
' -DPICODATA=\"$(PICO_DATA)\" '
#
application
testPico
-
group
=
test
-
s
=$(
CAMELROOT
)/
src
/
camel
/
pico
/
exec
testPico
.
cc
###
FROM
THERE
YOU
DONT
NEED
TO
TOUCH
###########################################################################################
#
CAMEL
LIBRARIES
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
library
jla
-
no_share
$(
CAMELROOT
)/
src
/
camel
/
JLA
/
jla_likelihood_v3
/
src
/
ini
.
c
$(
CAMELROOT
)/
src
/
camel
/
JLA
/
jla_likelihood_v3
/
src
/
jla
.
cc
library
class_extra
-
no_share
$(
CAMELROOT
)/
src
/
class_extra
/*.
c
macro
camelsrc
"*.cc CMB/*.cc BAO/*.cc Lensing/*.cc pico/*.cc JLA/*.cc Class/*.cc Constraints/*.cc"
library
MinuitFit
-
no_share
-
s
=$(
CAMELROOT
)/
src
/
camel
$(
camelsrc
)
library
MCMC
-
no_share
-
s
=$(
CAMELROOT
)/
src
/
camel
/
MCMC
*.
cc
macro
CAMEL_linkopts
"-L$(CAMELROOT)/${CMTCONFIG} -lMinuitFit -lMinuit -lMCMC -lCLHEP -lAbsRand -lUtil -lclass_extra "
macro_append
cppflags
' -DRELPATH=\"$(CAMELROOT)/lik\" '
#
CAMEL
applications
#
pour
relinker
si
changement
:
toutes
les
application
du
package
macro
CAMEL_stamps
" $(CAMELROOT)/$(CMTCONFIG)/MinuitFit.stamp $(CAMELROOT)/$(CMTCONFIG)/MCMC.stamp "
macro
application_suffix
""
#
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
#
tests
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
#
lIST
OF
ALL
DEPENDENCIES
macro_append
Minimize_dependencies
" MinuitFit "
macro_append
Profile_dependencies
" MinuitFit "
macro_append
ScanParam_dependencies
" MinuitFit "
macro_append
writeChi2_dependencies
" MinuitFit "
macro_append
writeSpectra_dependencies
" MinuitFit "
macro_append
writeSpectraPkependencies
" MinuitFit "
macro_append
mcmc_dependencies
" MinuitFit "
macro_append
mcmc_dependencies
" MCMC "
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 "
cmt/requirements-lsst.cc
View file @
d6e06e30
...
...
@@ -4,7 +4,8 @@ use class HEAD
#compiler options
macro
cpp
"icpc"
macro
cppflags
" -O2 -ip -ansi_alias -align -Wbrief -Wdeprecated -Wuninitialized -align -Wbrief -Wunused-function -Wpointer-arith -Wreturn-type"
macro
cppflags
" -O2 -ip -ansi_alias -align -Wbrief -Wdeprecated -Wuninitialized -Wbrief -Wunused-function -Wpointer-arith -Wreturn-type"
#macro_append cppflags " -g "
#CAMEL includes
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment