Skip to content

Commit ce97100

Browse files
committed
Addressing comment
1 parent bab4cb9 commit ce97100

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

community/examples/hpc-slurm6-tpu.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ vars:
2121
deployment_name: slurm6-tpu
2222
region: us-central1
2323
zone: us-central1-a
24-
nodeset_preemptible: false
2524

2625
deployment_groups:
2726
- group: primary
@@ -38,7 +37,7 @@ deployment_groups:
3837
# Preemptible TPUs cost much less than non-preemptible TPUs.
3938
# The Cloud TPU service might preempt (shut down) these TPUs at any time.
4039
# https://cloud.google.com/tpu/docs/preemptible
41-
preemptible: $(vars.nodeset_preemptible)
40+
preemptible: false
4241
# Specify whether to preserve TPU on suspend.
4342
# If set to true, suspended VM will be stopped.
4443
# If set to false, suspended VM will be deleted.

tools/cloud-build/daily-tests/builds/slurm-gcp-v6-tpu.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ steps:
5757
cd /workspace && make
5858
REGION="$${ZONE%-*}"
5959
BUILD_ID_SHORT="$${BUILD_ID:0:6}"
60+
BLUEPRINT="/workspace/community/examples/hpc-slurm6-tpu.yaml"
61+
sed -i 's/^[ ]*preemptible: false/ preemptible: true/' $${BLUEPRINT}
6062
6163
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/slurm-integration-test.yml \
6264
--user=sa_106486320838376751393 \

tools/cloud-build/daily-tests/tests/slurm-v6-tpu.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ slurm_cluster_name: "v6tpu{{ build[0:5] }}"
2323
cli_deployment_vars:
2424
region: "{{ region }}"
2525
zone: "{{ zone }}"
26-
nodeset_preemptible: true
2726

2827
workspace: /workspace
2928
blueprint_yaml: "{{ workspace }}/community/examples/hpc-slurm6-tpu.yaml"

0 commit comments

Comments
 (0)