Skip to content

Commit

Permalink
update sky show-gpus
Browse files Browse the repository at this point in the history
  • Loading branch information
landscapepainter committed Oct 23, 2024
1 parent c1ee117 commit cbce4d5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions sky/clouds/service_catalog/kubernetes_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,12 @@ def list_accelerators_realtime(
kubernetes_utils.get_node_accelerator_count(
node.status.allocatable))
if accelerator_name and accelerator_count > 0:
for count in range(1, accelerator_count + 1):
accelerators_qtys.add((accelerator_name, count))
if kubernetes_utils.is_tpu_on_gke(accelerator_name):
accelerators_qtys.add(
(accelerator_name, accelerator_count))
else:
for count in range(1, accelerator_count + 1):
accelerators_qtys.add((accelerator_name, count))

for pod in pods:
# Get all the pods running on the node
Expand Down

0 comments on commit cbce4d5

Please sign in to comment.