Skip to content

Commit

Permalink
Raise error like in PMTObserver
Browse files Browse the repository at this point in the history
  • Loading branch information
csbnw authored Apr 26, 2024
1 parent 092caad commit 742faa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel_tuner/observers/ncu.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class NCUObserver(PrologueObserver):

def __init__(self, metrics=None, device=0):
if not nvmetrics:
raise Exception("NCUObserver is not available.")
raise ImportError("could not import nvmetrics")

self.metrics = metrics
self.device = device
Expand Down

0 comments on commit 742faa4

Please sign in to comment.