Update validate.py (#727)
[ROCm/rocprofiler-sdk commit: c45573f559]
Este cometimento está contido em:
1 ascendente
521e2794e6
cometimento
18940a08b8
1 ficheiro modificado
+3
-20
@@ -30,27 +30,10 @@ def test_counter_values(input_data):
|
||||
scaling_factor = 64 / itr["wave_front_size"]
|
||||
break
|
||||
|
||||
scaling_factor = 64 / itr["wave_front_size"]
|
||||
|
||||
for itr in data["rocprofiler-sdk-json-tool"]["buffer_records"][
|
||||
"counter_collection"
|
||||
]:
|
||||
value = itr["counter_value"]
|
||||
assert int(round(value, 0)) == int(round(1 * scaling_factor, 0)), (
|
||||
f"Failure on agent "
|
||||
f"{str(itr)} expected {1 * scaling_factor} but got {value} "
|
||||
f"Debug Info:\n {str(data)}"
|
||||
)
|
||||
|
||||
for itr in data["rocprofiler-sdk-json-tool"]["buffer_records"][
|
||||
"counter_collection"
|
||||
]:
|
||||
for itr in data["rocprofiler-sdk-json-tool"]["buffer_records"]["counter_collection"]:
|
||||
value = itr["counter_value"]
|
||||
assert int(round(value, 0)) == int(round(1 * scaling_factor, 0)), (
|
||||
f"Failure on agent "
|
||||
f"{str(itr)} expected {1 * scaling_factor} but got {value} "
|
||||
f"Debug Info:\n {str(data)}"
|
||||
)
|
||||
assert int(round(value, 0)) == int(round(1 * scaling_factor, 0)), str(data)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
exit_code = pytest.main(["-x", __file__] + sys.argv[1:])
|
||||
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador