Skip to content

Commit

Permalink
fix(runner): fix timer args dict
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmingyi1998 committed Aug 9, 2023
1 parent d2e89ae commit 9d8adbe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion oclk/oclk_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,17 @@ def run(
:rtype: TimerResult
"""
assert kernel_name in self.kernel_list
timer_dict:Dict = {}
if isinstance(timer,TimerArgs):
timer_dict = timer.__dict__()
else:
timer_dict = timer
return F.run(
kernel_name=kernel_name,
input=input,
output=output,
local_work_size=local_work_size,
global_work_size=global_work_size,
wait=wait,
timer=timer,
timer=timer_dict,
)

0 comments on commit 9d8adbe

Please sign in to comment.