Fix naming issue in standalone roof pdf

Signed-off-by: colramos425 <colramos@amd.com>


[ROCm/rocprofiler-compute commit: cf49d1e7a4]
Ta zmiana jest zawarta w:
%! (template.HTML=colramos425)złożyło 2023-01-03 16:13:30 -06:00
1 rodzic 50f61c35b6
złożenie db33a89fa9
Plik 1 zmieniony
+6 -1
+6 -1
Wyświetl plik
@@ -650,7 +650,12 @@ def empirical_roof(args):
dtype = plot_roof(inputs, roof_data) # Also returns chosen dtype
plot_application(inputs, args.verbose)
filename = IMGNAME + "_gpu-" + str(inputs["device"]) + "_{}".format(dtype) + ".pdf"
if inputs["device"] == -1:
dev_id="ALL"
else:
dev_id=str(inputs["device"])
filename = IMGNAME + "_gpu-" + dev_id + "_{}".format(dtype) + ".pdf"
full_path = os.path.abspath(inputs["path"])
path_to_output = full_path + "/" + filename