[SWDEV-484495] Fix int truncation in CSV output (#1098)

CSV output truncates doubles to ints when it shouldn't. Derived metrics
are (mostly) doubles and lose precision (or become worthless) if treated
as an int. Converted these to double to match the format we return from
rocprof-sdk.

Co-authored-by: Benjamin Welton <ben@amd.com>
Этот коммит содержится в:
Benjamin Welton
2024-10-02 16:55:00 -07:00
коммит произвёл GitHub
родитель 78fe20320f
Коммит 4f05850efd
3 изменённых файлов: 4 добавлений и 4 удалений
+1 -1
Просмотреть файл
@@ -35,7 +35,7 @@ def test_validate_counter_collection_pmc2(counter_input_data):
assert len(row["Counter_Value"]) > 0
# assert row["Counter_Name"].contains("SQ_WAVES").all()
assert row["Counter_Name"] in counter_names
assert int(row["Counter_Value"]) > 0
assert float(row["Counter_Value"]) > 0
di_list.append(int(row["Dispatch_Id"]))
+1 -1
Просмотреть файл
@@ -35,7 +35,7 @@ def test_validate_counter_collection_yml_pmc(counter_input_data):
assert len(row["Counter_Value"]) > 0
# assert row["Counter_Name"].contains("SQ_WAVES").all()
assert row["Counter_Name"] in counter_names
assert int(row["Counter_Value"]) > 0
assert float(row["Counter_Value"]) > 0
di_list.append(int(row["Dispatch_Id"]))