From db33a89fa9b2dfe0d0d5903fccf0d295b1cc3104 Mon Sep 17 00:00:00 2001 From: colramos425 Date: Tue, 3 Jan 2023 16:13:30 -0600 Subject: [PATCH] Fix naming issue in standalone roof pdf Signed-off-by: colramos425 [ROCm/rocprofiler-compute commit: cf49d1e7a42155c2fb0f66ef0f4f061b68814ace] --- projects/rocprofiler-compute/src/utils/plot_roofline.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/rocprofiler-compute/src/utils/plot_roofline.py b/projects/rocprofiler-compute/src/utils/plot_roofline.py index d1d0958cc7..834d33455c 100644 --- a/projects/rocprofiler-compute/src/utils/plot_roofline.py +++ b/projects/rocprofiler-compute/src/utils/plot_roofline.py @@ -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