Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add fp8_fp8 in perfRunner #1707

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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 mlir/utils/performance/perfRunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def fromCommandLine(cls, argv, arch, numCU):
group, arch, numCU)

def toCommandLine(self):
return (f"conv{ {'f32':'', 'f16':'fp16', 'bf16':'bfp16', 'i8':'int8'}[self.dataType]} "
return (f"conv{ {'f32':'', 'f16':'fp16', 'bf16':'bfp16', 'i8':'int8','fp8_fp8':'fp8_fp8'}[self.dataType]} "
+ f"-F { {'fwd':1, 'bwd':2, 'wrw':4}[self.direction]} "
+ f"-f {self.INVERSE_FILTER_LAYOUTS[self.filterLayout]} -I {self.inputLayout.upper()} "
+ f"-O {self.INVERSE_OUTPUT_LAYOUTS[self.outputLayout]} "
Expand All @@ -485,7 +485,7 @@ def __init__(self, dtype: str, direction: str, filterLayout: str, inputLayout:st
n: int, c: int, hi: int, wi: int, k: int, y: int, x: int,
convStrideH: int, convStrideW: int, paddingH: int, paddingW: int,
dilationH: int, dilationW: int, group: int, arch: str, numCU: int):
if dtype not in {"f16", "f32", "bf16", "i8", "fp8"}:
if dtype not in {"f16", "f32", "bf16", "i8", "fp8_fp8"}:
raise ValueError(f"Invalid datatype: {dtype}")
if direction not in {"fwd", "bwd", "wrw"}:
raise ValueError(f"Invalid direction: {direction}")
Expand Down
Loading