Skip to content

Commit 18d5dc5

Browse files
authored
Merge pull request #4669 from GoogleCloudPlatform/release-candidate
Release candidate v1.67.0
2 parents acbf29f + a91a972 commit 18d5dc5

49 files changed

Lines changed: 257 additions & 181 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ HPC deployments on the Google Cloud Platform.`,
5353
logging.Fatal("cmd.Help function failed: %s", err)
5454
}
5555
},
56-
Version: "v1.66.0",
56+
Version: "v1.67.0",
5757
Annotations: annotation,
5858
}
5959
)

community/examples/gke-tpu-v6/tpu-multislice.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ spec:
4141
cloud.google.com/gke-tpu-topology: 4x4
4242
containers:
4343
- name: jax-tpu
44-
image: python:3.10
44+
image: us-docker.pkg.dev/cloud-tpu-images/jax-ai-image/tpu:latest
4545
ports:
4646
- containerPort: 8471
4747
- containerPort: 8080
@@ -52,7 +52,6 @@ spec:
5252
- bash
5353
- -c
5454
- |
55-
pip install "jax[tpu]" -f https://storage.googleapis.com/jax-releases/libtpu_releases.html
5655
python -c 'import jax; print("Global device count:", jax.device_count())'
5756
sleep 60
5857
resources:

community/gce-cos-nvidia-bug-report/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ WORKDIR /app
2121
# Copy the local directory to the container
2222
COPY app/* /app/
2323

24-
ENV PATH $PATH:/var/lib/nvidia/bin:/var/lib/nvidia/lib64:/usr/local/nvidia/bin:/usr/local/nvidia/lib64/
25-
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/var/lib/nvidia/bin:/var/lib/nvidia/lib64:/usr/local/nvidia/bin:/usr/local/nvidia/lib64
24+
ENV PATH=$PATH:/var/lib/nvidia/bin:/var/lib/nvidia/lib64:/usr/local/nvidia/bin:/usr/local/nvidia/lib64/
25+
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/var/lib/nvidia/bin:/var/lib/nvidia/lib64:/usr/local/nvidia/bin:/usr/local/nvidia/lib64
2626

2727

2828
# Install system dependencies

community/gce-cos-nvidia-bug-report/README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,17 +166,11 @@ docker run \
166166
--name gce-cos-bug-report \
167167
--pull=always \
168168
--privileged \
169+
--network=host \
169170
--volume /etc:/etc_host \
170171
--volume /tmp:/tmp \
171172
--volume /var/lib/nvidia:/usr/local/nvidia \
172-
--device /dev/nvidia0:/dev/nvidia0 \
173-
--device /dev/nvidia1:/dev/nvidia1 \
174-
--device /dev/nvidia2:/dev/nvidia2 \
175-
--device /dev/nvidia3:/dev/nvidia3 \
176-
--device /dev/nvidia4:/dev/nvidia4 \
177-
--device /dev/nvidia5:/dev/nvidia5 \
178-
--device /dev/nvidia6:/dev/nvidia6 \
179-
--device /dev/nvidia7:/dev/nvidia7 \
173+
$(find /dev -regextype posix-extended -regex '/dev/nvidia[0-9]+' | xargs -I {} echo '--device={}:{}') \
180174
--device /dev/nvidia-uvm:/dev/nvidia-uvm \
181175
--device /dev/nvidiactl:/dev/nvidiactl \
182176
us-central1-docker.pkg.dev/gce-ai-infra/gce-cos-nvidia-bug-report-repo/gce-cos-nvidia-bug-report:latest \

community/gce-cos-nvidia-bug-report/app/constants.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
NVIDIA_SMI_BINARY_NAME = "nvidia-smi"
2626
DUPLICATED_NVIDIA_BUG_REPORT_SCRIPT_PATH = "/app/nvidia-bug-report.sh"
2727

28-
# Sample MFT filename for ARM: "mft-4.30.1-113-arm64-deb.tgz"
29-
# Sample MFT filename for x86: "mft-4.30.1-113-x86_64-deb.tgz"
28+
# Sample MFT filename for ARM: "mft-kernel-modules-4.32.0-120-aarch64.tgz"
29+
# Sample MFT filename for x86: "mft-kernel-modules-4.32.0-120-x86_64.tgz"
3030
MFT_DOWNLOAD_URL_PREFIX = "https://www.mellanox.com/downloads/MFT/"
3131
MFT_FILENAME_PREFIX = "mft"
3232
MFT_FILENAME_SUFFIX = "deb.tgz"

community/gce-cos-nvidia-bug-report/app/gce-cos-nvidia-bug-report.py

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ def GetArchitectureFromMachineType(machine_type: str) -> Architecture:
144144
The architecture of the machine type. This can be either X86 or ARM.
145145
"""
146146
machine_type = machine_type.lower().split("-")
147-
return Architecture.ARM if machine_type[0].endswith("a") else Architecture.X86
147+
if machine_type[0].lower().endswith("x"):
148+
return Architecture.ARM
149+
else:
150+
return Architecture.X86
148151

149152

150153
@retry.retry(
@@ -317,13 +320,19 @@ def UploadArtifactsToGcs(
317320

318321
storage_client = storage.Client()
319322

320-
# Create the bucket if it does not exist.
321-
bucket = storage_client.bucket(bucket_name)
322-
try:
323-
storage_client.create_bucket(bucket)
324-
logging.info("Created bucket [%s] in the project.", bucket_name)
325-
except google_cloud_exceptions.Conflict:
326-
logging.info("Bucket [%s] already exists in the project.", bucket_name)
323+
bucket = storage_client.lookup_bucket(bucket_name)
324+
if bucket is None:
325+
# Create the bucket if it does not exist.
326+
try:
327+
storage_client.create_bucket(bucket)
328+
logging.info("Created bucket [%s] in the project.", bucket_name)
329+
except google_cloud_exceptions.exceptions.GoogleAPIError as e:
330+
logging.info(
331+
"Bucket creation failed for %s: %s. Skipping GCS upload.",
332+
bucket_name,
333+
e,
334+
)
335+
return
327336

328337
for artifact in artifacts_to_upload:
329338
UploadArtifactToGcs(
@@ -470,7 +479,7 @@ def DownloadFileFromUrl(url: str, destination_path: str) -> None:
470479

471480
def InstallMftUserspaceSoftware(
472481
architecture: Architecture, mft_version: str, mft_build_version: str
473-
):
482+
) -> None:
474483
"""Installs Mellanox Firmware Tool (MFT) userspace software on the instance.
475484
476485
Args:
@@ -682,7 +691,7 @@ def InsertMftKernelModulesIfNotLoaded(
682691

683692
def IdentifyMftKernelModules(
684693
gce_instance_info: GceInstanceInfo,
685-
) -> storage.Blob:
694+
):
686695
"""Downloads the Mellanox Firmware Tool (MFT) kernel modules.
687696
688697
Args:

community/gce-cos-nvidia-bug-report/build-and-push-gce-cos-nvidia-bug-report.sh

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,9 @@ echo "================================================="
8787
set -x
8888

8989
echo "Building image ${IMAGE}:${VERSION}"
90-
docker build -t "${IMAGE}:${VERSION}" .
9190

92-
echo "Tagging image for Artifact Registry: ${REMOTE_DESTINATION}:${VERSION}"
93-
docker tag "${IMAGE}:${VERSION}" "${REMOTE_DESTINATION}:${VERSION}"
94-
docker tag "${IMAGE}:${VERSION}" "${REMOTE_DESTINATION}:latest"
95-
96-
echo "Pushing image ${REMOTE_DESTINATION}:${VERSION}"
97-
docker push "${REMOTE_DESTINATION}:${VERSION}"
98-
docker push "${REMOTE_DESTINATION}:latest"
91+
docker buildx build --platform linux/amd64,linux/arm64 \
92+
-t "${REMOTE_DESTINATION}:${VERSION}" \
93+
-t "${REMOTE_DESTINATION}:latest" \
94+
--push \
95+
.

community/modules/compute/htcondor-execute-point/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ terraform {
2929
}
3030

3131
provider_meta "google" {
32-
module_name = "blueprints/terraform/hpc-toolkit:htcondor-execute-point/v1.66.0"
32+
module_name = "blueprints/terraform/hpc-toolkit:htcondor-execute-point/v1.67.0"
3333
}
3434
}

community/modules/compute/mig/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ terraform {
2222
}
2323
}
2424
provider_meta "google" {
25-
module_name = "blueprints/terraform/hpc-toolkit:mig/v1.66.0"
25+
module_name = "blueprints/terraform/hpc-toolkit:mig/v1.67.0"
2626
}
2727
}

community/modules/compute/schedmd-slurm-gcp-v6-nodeset-dynamic/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
terraform {
1818
required_version = ">= 1.3"
1919
provider_meta "google" {
20-
module_name = "blueprints/terraform/hpc-toolkit:schedmd-slurm-gcp-v6-nodeset-dynamic/v1.66.0"
20+
module_name = "blueprints/terraform/hpc-toolkit:schedmd-slurm-gcp-v6-nodeset-dynamic/v1.67.0"
2121
}
2222
}

0 commit comments

Comments
 (0)