Skip to content

Commit 54ff52c

Browse files
committed
making new test for nccl test in gke a3 ultra
1 parent c767389 commit 54ff52c

3 files changed

Lines changed: 110 additions & 1 deletion

File tree

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
---
16+
tags:
17+
- m.gke-job-template
18+
- gke
19+
- m.gke-cluster
20+
- m.gke-node-pool
21+
- m.service-account
22+
- m.gpu-rdma-vpc
23+
- m.kubectl-apply
24+
- m.vpc
25+
- m.cloud-storage-bucket
26+
- m.gke-persistent-volume
27+
- m.pre-existing-network-storage
28+
29+
timeout: 14400s # 4hr
30+
steps:
31+
- id: gke-a3-ultragpu-nccl
32+
name: us-central1-docker.pkg.dev/$PROJECT_ID/hpc-toolkit-repo/test-runner
33+
entrypoint: /bin/bash
34+
env:
35+
- "ANSIBLE_HOST_KEY_CHECKING=false"
36+
- "ANSIBLE_CONFIG=/workspace/tools/cloud-build/ansible.cfg"
37+
args:
38+
- -c
39+
- |
40+
set -x -e
41+
cd /workspace && make
42+
BUILD_ID_FULL=$BUILD_ID
43+
BUILD_ID_SHORT=$${BUILD_ID_FULL:0:6}
44+
EXAMPLE_BP=examples/gke-a3-ultragpu/gke-a3-ultragpu.yaml
45+
46+
# adding vm to act as remote node
47+
echo ' - id: remote-node' >> $${EXAMPLE_BP}
48+
echo ' source: modules/compute/vm-instance' >> $${EXAMPLE_BP}
49+
echo ' use: [gke-a3-ultra-net-0]' >> $${EXAMPLE_BP}
50+
echo ' settings:' >> $${EXAMPLE_BP}
51+
echo ' machine_type: e2-standard-2' >> $${EXAMPLE_BP}
52+
echo ' name_prefix: remote-node' >> $${EXAMPLE_BP}
53+
echo ' add_deployment_name_before_prefix: true' >> $${EXAMPLE_BP}
54+
echo ''
55+
echo ' - id: job_template_hostname' >> $${EXAMPLE_BP}
56+
echo ' source: modules/compute/gke-job-template' >> $${EXAMPLE_BP}
57+
echo ' use: [a3-ultragpu-pool]' >> $${EXAMPLE_BP}
58+
echo ' settings:' >> $${EXAMPLE_BP}
59+
echo ' image: nvidia/cuda:11.0.3-runtime-ubuntu20.04' >> $${EXAMPLE_BP}
60+
echo ' command:' >> $${EXAMPLE_BP}
61+
echo ' - nvidia-smi' >> $${EXAMPLE_BP}
62+
echo ' node_count: 1' >> $${EXAMPLE_BP}
63+
echo ' outputs: [instructions]' >> $${EXAMPLE_BP}
64+
65+
ansible-playbook tools/cloud-build/daily-tests/ansible_playbooks/base-integration-test.yml \
66+
--user=sa_106486320838376751393 --extra-vars="project=${PROJECT_ID} build=$${BUILD_ID_SHORT}" \
67+
--extra-vars="@tools/cloud-build/daily-tests/tests/gke-a3-ultragpu-nccl.yml"
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Copyright 2025 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
---
16+
17+
# region, zone must be defined
18+
# in build file with --extra-vars flag!
19+
test_name: gke-a3ultra-nccl
20+
deployment_name: gke-a3ultra-{{ build }}
21+
workspace: /workspace
22+
blueprint_yaml: "{{ workspace }}/examples/gke-a3-ultragpu/gke-a3-ultragpu.yaml"
23+
network: "{{ deployment_name }}-net-0"
24+
region: europe-west1
25+
zone: europe-west1-b
26+
remote_node: "{{ deployment_name }}-remote-node-0"
27+
extended_reservation: hpc-exr-2
28+
static_node_count: 2
29+
instance_type: a3-ultra
30+
accelerator_type: nvidia-h200-141gb
31+
num_gpus: 16
32+
cli_deployment_vars:
33+
region: "{{ region }}"
34+
zone: "{{ zone }}"
35+
static_node_count: "{{ static_node_count }}"
36+
reservation: "{{ extended_reservation }}"
37+
authorized_cidr: "{{ build_ip.stdout }}/32"
38+
gcp_public_cidrs_access_enabled: true
39+
is_integration_test: true
40+
custom_vars:
41+
project: "{{ project }}"
42+
post_deploy_tests:
43+
- test-validation/test-gke-a3-ultra.yml

tools/cloud-build/daily-tests/tests/gke-a3-ultragpu.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,4 @@ custom_vars:
4040
project: "{{ project }}"
4141
post_deploy_tests:
4242
- test-validation/test-gke-job.yml
43-
- test-validation/test-gke-a3-ultra.yml
4443
- test-validation/test-gke-kueue-config.yml

0 commit comments

Comments
 (0)