From 23b42e90c91cef80fee52ffbfa9ae5901a707fcc Mon Sep 17 00:00:00 2001 From: ywang103-amd Date: Tue, 18 Mar 2025 17:19:19 -0400 Subject: [PATCH] fix the error of output path of multi-node mode (#616) * solve the error that makes name passed by -n not used in multi-node applications * isort and black formatted --- src/rocprof_compute_base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/rocprof_compute_base.py b/src/rocprof_compute_base.py index cd97676fde..e4f733e910 100644 --- a/src/rocprof_compute_base.py +++ b/src/rocprof_compute_base.py @@ -208,11 +208,15 @@ class RocProfCompute: # Might want to get host name from detected spec if self.__args.subpath == "node_name": self.__args.path = str( - Path(self.__args.path).joinpath(socket.gethostname()) + Path(self.__args.path).joinpath( + self.__args.name, socket.gethostname() + ) ) elif self.__args.subpath == "gpu_model": self.__args.path = str( - Path(self.__args.path).joinpath(self.__mspec.gpu_model) + Path(self.__args.path).joinpath( + self.__args.name, self.__mspec.gpu_model + ) ) p = Path(self.__args.path)