Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit d9d2ed1

Browse files
authored
Fix upgrade cuda to 11.7 (#334)
Co-authored-by: Hien To <tominhhien97@gmail.com>
1 parent c35887b commit d9d2ed1

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/runners/actions-runner-ubuntu-cuda-11-4.dockerfile renamed to .github/runners/actions-runner-ubuntu-cuda-11-7.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Use NVIDIA CUDA 12.0.0 development image with Ubuntu 18.04 as the base
2-
FROM nvidia/cuda:11.4.3-devel-ubuntu18.04
2+
FROM nvidia/cuda:11.7.1-devel-ubuntu18.04
33

4-
ARG RUNNER_VERSION=2.298.2
4+
ARG RUNNER_VERSION=2.311.0
55
# Docker and Docker Compose arguments
66

77
# Use 1001 and 121 for compatibility with GitHub-hosted runners
@@ -95,8 +95,8 @@ ADD start.sh start.sh
9595

9696
RUN chmod +x start.sh
9797

98-
# Add /usr/local/cuda-11.4/compat to LD_LIBRARY_PATH
99-
ENV LD_LIBRARY_PATH=/usr/local/cuda-11.4/compat${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
98+
# Add /usr/local/cuda-11.7/compat to LD_LIBRARY_PATH
99+
ENV LD_LIBRARY_PATH=/usr/local/cuda-11.7/compat${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
100100

101101
USER runner
102102

.github/runners/actions-runner-ubuntu-cuda-12-0.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Use NVIDIA CUDA 12.0.0 development image with Ubuntu 18.04 as the base
22
FROM nvidia/cuda:12.0.0-devel-ubuntu18.04
33

4-
ARG RUNNER_VERSION=2.298.2
4+
ARG RUNNER_VERSION=2.311.0
55
# Docker and Docker Compose arguments
66

77
# Use 1001 and 121 for compatibility with GitHub-hosted runners

.github/runners/actions-runner-windows-cuda-11-4.dockerfile renamed to .github/runners/actions-runner-windows-cuda-11-7.dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM mcr.microsoft.com/windows/server:ltsc2022
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';$ProgressPreference='silentlyContinue';"]
44

5-
ARG RUNNER_VERSION=2.298.2
5+
ARG RUNNER_VERSION=2.311.0
66

77
RUN Invoke-WebRequest \
88
-Uri 'https://aka.ms/install-powershell.ps1' \
@@ -39,11 +39,11 @@ RUN choco install visualstudio2019buildtools -y --package-parameters '"--add Mic
3939

4040
RUN choco install gzip -y;
4141

42-
# Install cuda toolkit 11.4.4
43-
RUN choco install cuda --version=11.4.2.47141 -y
42+
# Install cuda toolkit 11.7.4
43+
RUN choco install cuda --version=11.7.1.51694 -y
4444

4545
# Copy integrated tools to MSBuild
46-
RUN Copy-Item -Path 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.4\extras\visual_studio_integration\MSBuildExtensions\*' -Destination 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations'
46+
RUN Copy-Item -Path 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.7\extras\visual_studio_integration\MSBuildExtensions\*' -Destination 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Microsoft\VC\v160\BuildCustomizations'
4747

4848

4949
ADD runner.ps1 C:/runner.ps1

.github/runners/actions-runner-windows-cuda-12-0.dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ FROM mcr.microsoft.com/windows/server:ltsc2022
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';$ProgressPreference='silentlyContinue';"]
44

5-
ARG RUNNER_VERSION=2.298.2
5+
ARG RUNNER_VERSION=2.311.0
66

77
RUN Invoke-WebRequest \
88
-Uri 'https://aka.ms/install-powershell.ps1' \

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ jobs:
121121
echo "Version: $NEW_VERSION"
122122
123123
ubuntu-amd64-build:
124-
runs-on: ubuntu-18-04-cuda-11-4
124+
runs-on: ubuntu-18-04-cuda-11-7
125125
needs: [create-draft-release, set-nitro-version]
126126
if: always() && (needs.create-draft-release.result == 'success' || needs.create-draft-release.result == 'skipped') && needs.set-nitro-version.result == 'success'
127127
permissions:
@@ -182,7 +182,7 @@ jobs:
182182
contents: write
183183
strategy:
184184
matrix:
185-
cuda: ["12-0", "11-4"]
185+
cuda: ["12-0", "11-7"]
186186

187187
steps:
188188
- name: Clone
@@ -352,7 +352,7 @@ jobs:
352352
asset_content_type: application/gzip
353353

354354
windows-amd64-build:
355-
runs-on: windows-cuda-11-4
355+
runs-on: windows-cuda-11-7
356356
needs: [create-draft-release, set-nitro-version]
357357
if: always() && (needs.create-draft-release.result == 'success' || needs.create-draft-release.result == 'skipped') && needs.set-nitro-version.result == 'success'
358358
permissions:
@@ -431,7 +431,7 @@ jobs:
431431

432432
strategy:
433433
matrix:
434-
cuda: ["12-0", "11-4"]
434+
cuda: ["12-0", "11-7"]
435435

436436
steps:
437437
- name: Setup VSWhere.exe

0 commit comments

Comments
 (0)