Skip to content

Commit

Permalink
Re-add Observer.register_configuration that was lost due in merge w…
Browse files Browse the repository at this point in the history
…ith master
  • Loading branch information
stijnh committed Apr 19, 2023
1 parent 69f042a commit 6fd339e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions kernel_tuner/observers/observer.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ def register_device(self, dev):
"""Sets self.dev, for inspection by the observer at various points during benchmarking"""
self.dev = dev

def register_configuration(self, params):
"""Called once before benchmarking of a single kernel configuration. The `params` argument is a `dict`
that stores the configuration parameters."""
pass

def before_start(self):
"""before start is called every iteration before the kernel starts"""
pass
Expand Down

0 comments on commit 6fd339e

Please sign in to comment.