Skip to content

Commit

Permalink
Require all kernels to have a generic implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Clayton Smith <[email protected]>
  • Loading branch information
argilo committed Oct 24, 2023
1 parent 0b5c929 commit 01cd46d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gen/volk_kernel_defs.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def __init__(self, kernel_file):
kern_name=self.name, header=sub_hdr, body=body,
))
assert(self._impls)
if "generic" not in [impl.name for impl in self._impls]:
raise Exception(f"{self.name} does not have a generic kernel.")
self.has_dispatcher = False
for impl in self._impls:
if impl.name == 'dispatcher':
Expand Down Expand Up @@ -194,4 +196,3 @@ def __repr__(self):

if __name__ == '__main__':
print(kernels)

0 comments on commit 01cd46d

Please sign in to comment.