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
3b6414cf
Commit
3b6414cf
authored
Jan 14, 2015
by
Jean-Baptiste Mouret
Browse files
minor changes
parent
3d895f6f
Changes
4
Hide whitespace changes
Inline
Side-by-side
limbo.py
View file @
3b6414cf
...
...
@@ -18,12 +18,19 @@ def create_variants(bld, source, uselib_local,
# tgt.uselib_local = uselib_local
# tgt.uselib = uselib
# the variants
# we create a basic file
tmp
=
source
.
replace
(
'.cpp'
,
''
)
tgt
=
bld
.
program
(
features
=
'cxx'
,
source
=
source
,
target
=
tmp
,
includes
=
includes
,
uselib
=
uselib
,
use
=
uselib_local
)
c_src
=
bld
.
path
.
abspath
()
+
'/'
for
v
in
variants
:
# create file
suff
=
''
for
d
in
v
.
split
(
' '
):
suff
+=
d
.
lower
()
+
'_'
tmp
=
source
.
replace
(
'.cpp'
,
''
)
src_fname
=
tmp
+
'_'
+
suff
[
0
:
len
(
suff
)
-
1
]
+
'.cpp'
bin_fname
=
tmp
+
'_'
+
suff
[
0
:
len
(
suff
)
-
1
]
f
=
open
(
c_src
+
src_fname
,
'w'
)
...
...
@@ -41,7 +48,7 @@ def create_variants(bld, source, uselib_local,
includes
=
includes
,
uselib
=
uselib
,
use
=
uselib_local
)
def
qsub
(
conf_file
):
tpl
=
"""
#! /bin/sh
...
...
src/benchmarks/multi.cpp
View file @
3b6414cf
...
...
@@ -178,7 +178,7 @@ int main() {
#elif defined MOP2
typedef
mop2
func_t
;
#else
# error "unknown function to optimize"
typedef
mop2
func_t
;
#endif
typedef
stat
::
ParetoBenchmark
<
func_t
>
stat_t
;
...
...
@@ -186,7 +186,7 @@ int main() {
Parego
<
Params
,
stat_fun
<
stat_t
>
>
opt
;
#elif defined(NSBO)
Nsbo
<
Params
,
stat_fun
<
stat_t
>
>
opt
;
#el
if defined(EHVI)
#el
se
Ehvi
<
Params
,
stat_fun
<
stat_t
>
>
opt
;
#endif
...
...
wscript
View file @
3b6414cf
...
...
@@ -19,6 +19,7 @@ def options(opt):
opt
.
load
(
'sferes'
)
opt
.
load
(
'limbo'
)
opt
.
add_option
(
'--exp'
,
type
=
'string'
,
help
=
'exp(s) to build, separate by comma'
,
dest
=
'exp'
)
opt
.
load
(
'xcode'
)
for
i
in
glob
.
glob
(
'exp/*'
):
opt
.
recurse
(
i
)
...
...
@@ -28,6 +29,7 @@ def configure(conf):
conf
.
load
(
'eigen'
)
conf
.
load
(
'tbb'
)
conf
.
load
(
'sferes'
)
conf
.
load
(
'xcode'
)
common_flags
=
"-Wall -std=c++11 "
...
...
xcode.py
View file @
3b6414cf
...
...
@@ -162,9 +162,9 @@ class PBXLegacyTarget(XCodeNode):
XCodeNode
.
__init__
(
self
)
self
.
buildConfigurationList
=
XCConfigurationList
([
XCBuildConfiguration
(
'waf'
,
{})])
if
not
target
:
self
.
buildArgumentsString
=
"%s %s"
%
(
"waf_xcode.sh"
,
action
)
self
.
buildArgumentsString
=
"%s %s"
%
(
"waf_xcode.sh"
)
else
:
self
.
buildArgumentsString
=
"%s
%s
--targets=%s"
%
(
"waf_xcode.sh"
,
action
,
target
)
self
.
buildArgumentsString
=
"%s --targets=%s"
%
(
"waf_xcode.sh"
,
target
)
self
.
buildPhases
=
[]
self
.
buildToolPath
=
"/bin/bash"
#sys.executable
self
.
buildWorkingDirectory
=
""
...
...
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