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
80fafd09
Commit
80fafd09
authored
Aug 01, 2017
by
Jean-Baptiste Mouret
Browse files
detect libraries at a finer level
parent
34428074
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/benchmarks/wscript
View file @
80fafd09
...
...
@@ -71,7 +71,7 @@ def build_bo_benchmarks(bld):
limbo
.
create_variants
(
bld
,
source
=
'limbo/bench.cpp'
,
uselib_local
=
'limbo'
,
uselib
=
'BOOST EIGEN TBB NLOPT LIBCMAES'
,
uselib
=
'BOOST EIGEN TBB NLOPT LIBCMAES
MKL_TBB
'
,
variants
=
[
'BAYESOPT_DEF'
,
'BAYESOPT_DEF_HPOPT'
,
'LIMBO_DEF'
,
...
...
waf_tools/plot_bo_benchmarks.py
View file @
80fafd09
...
...
@@ -56,12 +56,30 @@ except: # not in waf
try
:
import
numpy
as
np
numpy_found
=
True
except
:
Logs
.
pprint
(
'YELLOW'
,
'WARNING: numpy not found'
)
try
:
import
matplotlib
matplotlib
.
use
(
'Agg'
)
# for headless generation
from
pylab
import
*
pylab_found
=
True
except
:
Logs
.
pprint
(
'YELLOW'
,
'WARNING: pylab/matplotlib not found'
)
try
:
import
brewer2mpl
bmap
=
brewer2mpl
.
get_map
(
'Set2'
,
'qualitative'
,
8
)
colors
=
bmap
.
mpl_colors
plot_ok
=
True
brewer2mpl_found
=
True
;
except
:
Logs
.
pprint
(
'YELLOW'
,
'WARNING: brewer2mpl (colors) not found'
)
if
numpy_found
and
pylab_found
and
brewer2mpl_found
:
plot_ok
=
True
else
:
plot_ok
=
False
Logs
.
pprint
(
'YELLOW'
,
'WARNING: numpy/matplotlib not found: no plot of the BO benchmark results'
)
...
...
@@ -171,4 +189,4 @@ def plot_all():
plot
(
k
,
data
)
if
__name__
==
"__main__"
:
plot_all
()
\ No newline at end of file
plot_all
()
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