Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【GPUPS】add afsclient and gpupsutil #41324

Merged
merged 13 commits into from
Apr 15, 2022
Prev Previous commit
fix gpupsutil bug;test=develop
  • Loading branch information
danleifeng committed Apr 13, 2022
commit 2f6b389e9374754f111739b0b620b1c8eefcb599
8 changes: 6 additions & 2 deletions python/paddle/fluid/incubate/fleet/utils/fleet_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1812,8 +1812,12 @@ def get_last_save_xbox_base(self, output_path):

if not self._afs.is_file(donefile_path):
return [-1, -1, int(time.time())]
# self._afs.download(donefile_path, "./xbox_base_done.txt")
pre_content = self._afs.cat(donefile_path)
self._afs.download(donefile_path, "./xbox_base_done.txt")
# pre_content = self._afs.cat(donefile_path)
pre_content = ""
with open("xbox_base_done.txt", "r") as f:
pre_content = f.read()
pre_content = pre_content.strip()
last_dict = json.loads(pre_content.split("\n")[-1])
last_day = int(last_dict["input"].split("/")[-3])
last_path = "/".join(last_dict["input"].split("/")[:-1])
Expand Down