Skip to content

Commit

Permalink
force nvidia
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcos20 committed Dec 13, 2023
1 parent 5d562ca commit 7cb9ceb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions operator_engine/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,7 @@ def create_algorithm_job(body, logger, resources):
job["spec"]["template"]["spec"]["containers"][0]["resources"]["requests"][
"cpu"
] = resources["requests_cpu"]
job["spec"]["template"]["spec"]["containers"][0]["resources"]["requests"]["nvidia.com/gpu"]="1"
job["spec"]["template"]["spec"]["containers"][0]["resources"]["limits"] = dict()
job["spec"]["template"]["spec"]["containers"][0]["resources"]["limits"][
"memory"
Expand Down

0 comments on commit 7cb9ceb

Please sign in to comment.