-
Notifications
You must be signed in to change notification settings - Fork 823
Modify CI to enable tests on CUDA 13.1 and add Dockerfiles for CUDA 13.1 #21564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| FROM nvidia/cuda:13.1.0-devel-ubuntu24.04 | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| USER root | ||
|
|
||
| # Configure LLVM nightly repo | ||
| RUN apt-get update -qq && apt-get install --no-install-recommends -yqq curl ca-certificates | ||
| RUN curl -sSL https://apt.llvm.org/llvm-snapshot.gpg.key -o /etc/apt/trusted.gpg.d/apt.llvm.org.asc | ||
| RUN echo 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble main' > /etc/apt/sources.list.d/llvm.list | ||
| RUN echo 'deb http://apt.llvm.org/noble/ llvm-toolchain-noble-22 main' > /etc/apt/sources.list.d/llvm.list | ||
|
|
||
| # Install SYCL prerequisites | ||
| COPY scripts/install_build_tools.sh /install.sh | ||
| RUN /install.sh | ||
|
|
||
| COPY scripts/install_vulkan.sh /install_vulkan.sh | ||
| RUN /install_vulkan.sh | ||
|
|
||
| # libzstd-dev installed by default on Ubuntu 24.04 is not compiled with -fPIC flag. | ||
| # This causes linking errors when building SYCL runtime. | ||
| # Bug: https://github.com/intel/llvm/issues/15935 | ||
| # Workaround: build zstd from sources with -fPIC flag. | ||
| COPY scripts/build_zstd.sh /build_zstd.sh | ||
| RUN /build_zstd.sh | ||
|
|
||
| SHELL ["/bin/bash", "-ec"] | ||
|
|
||
| # Make the directory if it doesn't exist yet. | ||
| # This location is recommended by the distribution maintainers. | ||
| RUN mkdir --parents --mode=0755 /etc/apt/keyrings | ||
| # Download the key, convert the signing-key to a full | ||
| # keyring required by apt and store in the keyring directory | ||
| RUN curl -sSL https://repo.radeon.com/rocm/rocm.gpg.key | \ | ||
| gpg --dearmor | tee /etc/apt/keyrings/rocm.gpg > /dev/null && \ | ||
| # Add rocm repo | ||
| echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/amdgpu/6.3/ubuntu noble main" \ | ||
| | tee /etc/apt/sources.list.d/amdgpu.list && \ | ||
| echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/rocm.gpg] https://repo.radeon.com/rocm/apt/6.3 noble main" \ | ||
| | tee --append /etc/apt/sources.list.d/rocm.list && \ | ||
| echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \ | ||
| | tee /etc/apt/preferences.d/rocm-pin-600 && \ | ||
| echo -e 'Package: *\nPin: release o=repo.radeon.com\nPin-Priority: 600' \ | ||
| | tee /etc/apt/preferences.d/rocm-pin-600 | ||
| # Install the ROCM kernel driver | ||
| RUN apt update && apt install -yqq rocm-dev && \ | ||
| apt-get clean && \ | ||
| rm -rf /var/lib/apt/lists/* | ||
|
|
||
| # Fix Vulkan install inside container | ||
| # https://stackoverflow.com/questions/74965945/vulkan-is-unable-to-detect-nvidia-gpu-from-within-a-docker-container-when-using | ||
| RUN apt-get update && \ | ||
| apt-get install -y libegl1 && \ | ||
| apt-get install -y --no-install-recommends --download-only libnvidia-gl-565 && \ | ||
| dpkg-deb --extract /var/cache/apt/archives/libnvidia-gl-565_*.deb extracted && \ | ||
| cp -R ./extracted/usr/* /usr/ && \ | ||
| rm -rf /var/lib/apt/lists/* /var/cache/apt/archives/*.deb ./extracted | ||
|
|
||
| COPY scripts/create-sycl-user.sh /user-setup.sh | ||
| RUN /user-setup.sh | ||
|
|
||
| COPY scripts/docker_entrypoint.sh /docker_entrypoint.sh | ||
|
|
||
| COPY actions/cached_checkout /actions/cached_checkout | ||
| COPY actions/cleanup /actions/cleanup | ||
| COPY scripts/install_drivers.sh /opt/install_drivers.sh | ||
|
|
||
| USER sycl | ||
|
|
||
| ENTRYPOINT ["/docker_entrypoint.sh"] | ||
|
|
25 changes: 25 additions & 0 deletions
25
devops/containers/ubuntu2404_intel_drivers_cuda131.Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| ARG base_tag=latest | ||
| ARG base_image=ghcr.io/intel/llvm/ubuntu2404_build_cuda131 | ||
|
|
||
| FROM $base_image:$base_tag | ||
|
|
||
| ENV DEBIAN_FRONTEND=noninteractive | ||
|
|
||
| USER root | ||
|
|
||
| RUN apt update && apt install -yqq wget | ||
|
|
||
| COPY scripts/install_drivers.sh / | ||
| COPY dependencies.json / | ||
|
|
||
| RUN mkdir /runtimes | ||
| ENV INSTALL_LOCATION=/runtimes | ||
| RUN --mount=type=secret,id=github_token \ | ||
| GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh dependencies.json --all | ||
|
|
||
| COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh | ||
|
|
||
| USER sycl | ||
|
|
||
| ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"] | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: i dont think we need quotes around the image name