compiler.testbench.perf_embedding: fix.

This commit is contained in:
whitequark 2015-11-27 17:08:45 +08:00
parent 16ae0fb6eb
commit 4b410ce720
1 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import sys, os import sys, os
from pythonparser import diagnostic from pythonparser import diagnostic
from ...protocols.file_db import FlatFileDB from ...master.databases import DeviceDB
from ...master.worker_db import DeviceManager from ...master.worker_db import DeviceManager
from ..module import Module from ..module import Module
from ..embedding import Stitcher from ..embedding import Stitcher
@ -25,8 +25,8 @@ def main():
testcase_vars = {'__name__': 'testbench'} testcase_vars = {'__name__': 'testbench'}
exec(testcase_code, testcase_vars) exec(testcase_code, testcase_vars)
ddb_path = os.path.join(os.path.dirname(sys.argv[1]), "ddb.pyon") ddb_path = os.path.join(os.path.dirname(sys.argv[1]), "device_db.pyon")
dmgr = DeviceManager(FlatFileDB(ddb_path)) dmgr = DeviceManager(DeviceDB(ddb_path))
def embed(): def embed():
experiment = testcase_vars["Benchmark"](dmgr) experiment = testcase_vars["Benchmark"](dmgr)