Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions p-isa_tools/kerngen/high_parser/config.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (C) 2024 Intel Corporation
# Copyright (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0

"""Module for configuring the kernel generator"""
Expand All @@ -7,4 +7,4 @@
class Config:
"""Class representing the configuration options"""

legacy_mode: bool
legacy_mode: bool = False
11 changes: 9 additions & 2 deletions p-isa_tools/kerngen/kerngraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ def parse_args():
nargs="*",
default=[],
# Composition high ops such are ntt, mod, and relin are not currently supported
choices=["add", "sub", "mul", "muli", "copy"], # currently supports single ops
choices=[
"add",
"sub",
"mul",
"muli",
"copy",
"ntt",
], # currently supports single ops
help="List of high_op names",
)
parser.add_argument(
Expand Down Expand Up @@ -97,7 +104,7 @@ def main(args):
)
for kernel in valid_kernels:
if args.target and any(
target.capitalize() in str(kernel) for target in args.target
target.lower() in str(kernel).lower() for target in args.target
):
kernel = loop_interchange(
kernel.to_pisa(),
Expand Down