Skip to content

Commit 911eb1f

Browse files
committed
v0.1.1 fixed head pod stealing gpu
1 parent c5d90a8 commit 911eb1f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "codeflare-sdk"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
description = "Python SDK for codeflare client"
55

66
license = "GPL-3.0-only"

Diff for: src/codeflare_sdk/utils/generate_yaml.py

+2
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def update_nodes(item, appwrapper_name, min_cpu, max_cpu, min_memory, max_memory
118118
update_affinity(spec, appwrapper_name, instascale)
119119
update_image(spec, image)
120120
update_env(spec, env)
121+
if comp == head:
122+
gpu = 0
121123
update_resources(spec, min_cpu, max_cpu, min_memory, max_memory, gpu)
122124

123125
def write_user_appwrapper(user_yaml, output_file_name):

0 commit comments

Comments
 (0)