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
Open sidebar
Xavier Garrido
CAMEL
Commits
8460ae8a
Commit
8460ae8a
authored
Jan 06, 2017
by
Plaszczynski Stephane
Browse files
gcc dev
parent
e2013ec5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
11 deletions
+8
-11
cmt/camel_setup.sh
cmt/camel_setup.sh
+1
-0
cmt/requirements-gcc
cmt/requirements-gcc
+6
-5
src/camel/Chi2Combiner.cc
src/camel/Chi2Combiner.cc
+1
-6
No files found.
cmt/camel_setup.sh
View file @
8460ae8a
...
...
@@ -79,3 +79,4 @@ echo "your CAMELROOT is $CAMELROOT"
# 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 environement variable to 1: export VERBOSE=1"
cmt/requirements-gcc
View file @
8460ae8a
...
...
@@ -3,12 +3,13 @@ package CAMEL
use
class
HEAD
#
compiler
options
#
macro
cpp
"icpc"
#
macro
cppflags
" -O2 -ip -ansi_alias -align -Wbrief "
#
default
is
gcc
here
are
the
C
++
compiler
options
macro
cppflags
" -O2 -pipe -ansi -Woverloaded-virtual -Wpedantic -Wunused -Wmaybe-uninitialized -Wno-deprecated -Wno-div-by-zero -Wno-variadic-macros"
macro
cflags
" -O2 -fopenmp "
macro
cppflags
" -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
...
...
src/camel/Chi2Combiner.cc
View file @
8460ae8a
...
...
@@ -86,15 +86,10 @@ Chi2Combiner::chi2_eff(const std::vector<double>& par) const {
copy
(
par
.
begin
(),
par
.
end
(),
ostream_iterator
<
double
>
(
os
,
"
\t
"
));
}
//update Engine
//1 seul thread
#pragma omp critical
{
self
->
OK
=
engine
->
updateParValues
(
par
);
}
if
(
!
OK
)
{
//A TUNER!!!!!!!!!!!!!1
chi2
=
chi2_prev
*
10.
;
...
...
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