Skip to content

Commit

Permalink
hotfix: accelerator specific files created under work directory (#701)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho authored Sep 2, 2022
1 parent ee1e0e1 commit 6a5a861
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/701.fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix accelerator specific files created under work directory (`/home/work`) instead of config directory (`/home/config`).
2 changes: 1 addition & 1 deletion src/ai/backend/agent/docker/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ async def generate_accelerator_mounts(
computer: AbstractComputePlugin,
device_alloc: Mapping[SlotName, Mapping[DeviceId, Decimal]],
) -> List[MountInfo]:
src_path = self.work_dir / str(computer.key)
src_path = self.config_dir / str(computer.key)
src_path.mkdir()
return await computer.generate_mounts(src_path, device_alloc)

Expand Down

0 comments on commit 6a5a861

Please sign in to comment.