Skip to content

Commit

Permalink
fixing predicate ordering for fp16alt impl to unbreak distance modes (#…
Browse files Browse the repository at this point in the history
…1729)

fixing bug introduced by PR #1721 into 5.6.
  • Loading branch information
yoichiyoshida authored Jun 12, 2023
1 parent c5474d3 commit 7d0a9d0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tensile/LibraryIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def parseLibraryLogicList(data, srcFile="?"):
if len(data) > 11 and data[11] == "Fp16AltImpl":
rv["Fp16AltImpl"] = True

if len(data) > 12 and data[12] == "Fp16AltImplRound":
if len(data) > 13 and data[13] == "Fp16AltImplRound":
rv["Fp16AltImplRound"] = True

# library logic fields
Expand All @@ -254,8 +254,8 @@ def parseLibraryLogicList(data, srcFile="?"):
rv["Library"]["indexOrder"] = data[6]
rv["Library"]["table"] = data[7]
rv["Library"]["distance"] = "Euclidean"
if len(data) > 13 and data[13]:
rv["Library"]["distance"] = data[13]
if len(data) > 12 and data[12]:
rv["Library"]["distance"] = data[12]

return rv

Expand Down

0 comments on commit 7d0a9d0

Please sign in to comment.