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
[ROCm/rocprofiler-compute commit: 23b42e90c9]
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
ec4359658b
commit
1d2b1fc707
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user