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
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
45b8937d5d
Коммит
23b42e90c9
@@ -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)
|
||||
|
||||
Ссылка в новой задаче
Block a user