Skip to content

Commit

Permalink
fix: add utility capability for local_docker (#906)
Browse files Browse the repository at this point in the history
Differential Revision: D57034038

Pull Request resolved: #907
  • Loading branch information
Alexander Jipa committed May 7, 2024
1 parent c13595b commit ec8d0e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torchx/schedulers/docker_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def _submit_dryrun(self, app: AppDef, cfg: DockerOpts) -> AppDryRunInfo[DockerJo
c.kwargs["device_requests"] = [
DeviceRequest(
count=resource.gpu,
capabilities=[["compute"]],
capabilities=[["compute", "utility"]],
)
]
req.containers.append(c)
Expand Down
2 changes: 1 addition & 1 deletion torchx/schedulers/test/docker_scheduler_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_submit_dryrun(self) -> None:
"device_requests": [
DeviceRequest(
count=4,
capabilities=[["compute"]],
capabilities=[["compute", "utility"]],
)
],
"devices": [
Expand Down

0 comments on commit ec8d0e8

Please sign in to comment.