Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
a862da48
Commit
a862da48
authored
Sep 27, 2015
by
Federico Allocati
Browse files
Bug in wscript. omp instead of openmp
parent
e17dbec7
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/limbo/kernel_functions.hpp
View file @
a862da48
...
...
@@ -51,7 +51,7 @@ namespace limbo {
template
<
typename
Params
>
struct
SquaredExpARD
{
SquaredExpARD
(
int
dim
=
1
)
:
_sf2
(
0
),
_ell
(
dim
),
_input_dim
(
dim
)
{
->
set_h_params
(
Eigen
::
VectorXd
::
Ones
(
_ell
.
size
()
+
1
)
*
-
1
);
this
->
set_h_params
(
Eigen
::
VectorXd
::
Ones
(
_ell
.
size
()
+
1
)
*
-
1
);
}
size_t
h_params_size
()
const
{
...
...
@@ -83,9 +83,11 @@ namespace limbo {
double
z
=
(
x1
-
x2
).
cwiseQuotient
(
_ell
).
squaredNorm
();
return
_sf2
*
exp
(
-
0.5
*
z
);
}
const
Eigen
::
VectorXd
&
ell
()
const
{
return
_ell
;
}
protected:
double
_sf2
;
Eigen
::
VectorXd
_ell
;
...
...
wscript
View file @
a862da48
...
...
@@ -16,11 +16,11 @@ def options(opt):
opt
.
load
(
'compiler_c'
)
opt
.
load
(
'eigen'
)
opt
.
load
(
'tbb'
)
opt
.
load
(
'omp'
)
opt
.
load
(
'mkl'
)
opt
.
load
(
'sferes'
)
opt
.
load
(
'limbo'
)
opt
.
load
(
'ode'
)
opt
.
load
(
'openmp'
)
#opt.load('ode')
opt
.
add_option
(
'--exp'
,
type
=
'string'
,
help
=
'exp(s) to build, separate by comma'
,
dest
=
'exp'
)
opt
.
add_option
(
'--qsub'
,
type
=
'string'
,
help
=
'config file (json) to submit to torque'
,
dest
=
'qsub'
)
opt
.
add_option
(
'--oar'
,
type
=
'string'
,
help
=
'config file (json) to submit to oar'
,
dest
=
'oar'
)
...
...
@@ -34,7 +34,9 @@ def configure(conf):
conf
.
load
(
'compiler_c'
)
conf
.
load
(
'eigen'
)
conf
.
load
(
'tbb'
)
conf
.
load
(
'mkl'
)
conf
.
load
(
'sferes'
)
conf
.
load
(
'openmp'
)
conf
.
load
(
'xcode'
)
if
conf
.
env
.
CXX_NAME
in
[
"icc"
,
"icpc"
]:
...
...
@@ -55,7 +57,7 @@ def configure(conf):
conf
.
check_openmp
()
conf
.
check_mkl
()
conf
.
check_sferes
()
conf
.
check_ode
()
#
conf.check_ode()
if
conf
.
is_defined
(
'USE_TBB'
):
common_flags
+=
" -DUSE_TBB"
...
...
Write
Preview
Supports
Markdown
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