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
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ input for the ``find_exact.py`` script, as described below.
DataTypeB: s
DataTypeC: s
DataTypeD: s
TransposeA: 0
TransposeB: 0
UseBias: False
TransposeA: false
TransposeB: false
UseBias: 0
TestConfig:
ColdIter: 20
Iter: 100 # You can change this to a larger value for a more stable result, but the executing time also increases.
Expand Down
10 changes: 6 additions & 4 deletions projects/hipblaslt/utilities/find_exact.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@
from yaml import SafeLoader as yamlLoader
assert 0 and "CSafeLoader not installed. Fallback to SafeLoader."

from fix_yaml_types import fix_content

#####################################################
# Parameters
#####################################################
Expand All @@ -59,13 +61,13 @@
globalParameters["MatchTablePath"] = "/device-library/MatchTable.yaml"

defaultBenchOptions = {"ProblemType": {
"TransposeA": 0,
"TransposeB": 0,
"TransposeA": False,
"TransposeB": False,
"ComputeInputDataType": "s",
"ComputeDataType": "s",
"DataTypeC": "s",
"DataTypeD": "s",
"UseBias": False
"UseBias": 0
}, "TestConfig": {
"ColdIter": 20,
"Iter": 100,
Expand Down Expand Up @@ -115,7 +117,7 @@ def writeYAML(filename, data, **kwargs):
kwargs["default_flow_style"] = None

with open(filename, "w") as f:
yaml.dump(data, f, **kwargs)
f.write(fix_content(yaml.dump(data, **kwargs)))
#########

def dataType2Bench(dataType):
Expand Down
6 changes: 3 additions & 3 deletions projects/hipblaslt/utilities/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ Bench:
DataTypeB: s
DataTypeC: s
DataTypeD: s
TransposeA: 0
TransposeB: 0
UseBias: False
TransposeA: false
TransposeB: false
UseBias: 0
TestConfig:
ColdIter: 20
Iter: 100
Expand Down
Loading