Skip to content

Commit

Permalink
bhir-paper: added a cost model suite
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Feb 15, 2016
1 parent bc19c48 commit dcf1e9e
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions suites/fuse_paper_cost_models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
from benchpress.default import *
import copy

scripts_cpu = [
('Alain Example', 'alain', '--size=100000000*10'),
('Alain Counterexample', 'alain_counterexample', '--size=50000000*10'),
]

def fuse_cache(value):
envs = ["BH_SINGLETON_FUSE_CACHE", "BH_TOPOLOGICAL_FUSE_CACHE",\
"BH_GREEDY_FUSE_CACHE", "BH_OPTIMAL_FUSE_CACHE", "BH_GENTLE_FUSE_CACHE"]
ret = {}
for env in envs:
ret[env] = value
return ret

stack_cpu = [
[('default', 'bridge', None)],
[('bccon', 'bccon', None)],
[
('UniqueViews', 'bcexp', {'BH_PRICE_MODEL':'unique_views'}),
('TmpElem', 'bcexp', {'BH_PRICE_MODEL':'temp_elemination'}),
('MaxShare', 'bcexp', {'BH_PRICE_MODEL':'max_share'}),
('AmosRobinson','bcexp', {'BH_PRICE_MODEL':'amos'}),
],
[
('Optimal', 'optimal', None),
],
[
('filecache', 'node', fuse_cache("true")),
],
[('pricer', 'pricer', None)],
[('cpu', 'cpu', {"BH_CPU_JIT_LEVEL": "3", "OMP_NUM_THREADS":"4"})],
]

suite_cpu = {
'scripts': scripts_cpu,
'launchers': [python_bohrium],
'bohrium': stack_cpu
}

suites = [
suite_cpu,
]

0 comments on commit dcf1e9e

Please sign in to comment.