Skip to content

Conversation

@tariq1890
Copy link
Contributor

No description provided.

versions.mk Outdated

CUDA_VERSION := 12.3.1
GOLANG_VERSION := 1.20.5
GOLANG_VERSION := 1.21.5
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if we are okay to update this. I am assuming we might run into the glibc version skew here as well

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we would have to see whether these work in older distributions. I already have issues with 1.20.5 on some systems.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can revert it then. We definitely need to think of a solution for this though given 1.20 is close to EOL. Are we dependent on the glibc that comes from the cuda-base-image?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't build in the CUDA base images. We build in ubuntu:18.04 and centos:7 (centos:8 for ppc64le).

Let's drop the golang bump and do that as a follow-up.

x86_64 | amd64) ARCH='amd64' ;; \
ppc64el | ppc64le) ARCH='ppc64le' ;; \
aarch64) ARCH='arm64' ;; \
aarch64 | arm64) ARCH='arm64' ;; \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that this is how we do things in other projects, but what about using the TARGETARCH automatic docker build arg instead of running uname -m?

I think this change is useful though.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TARGETARCH is better assuming its value is derived from the docker buildx --platform flag

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. When building with BUILDKIT they're set automatically.

This change includes an arm64 arch check when installing golang.

Signed-off-by: Tariq Ibrahim <tibrahim@nvidia.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
@elezar elezar changed the title update go version and improve dockerfile arch selection Fix dockerfile arch selection Mar 15, 2024
@elezar elezar self-requested a review March 15, 2024 06:55
Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the PR to remove the Golang version bump for now.

@elezar elezar merged commit c4ec4a0 into NVIDIA:main Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants