Skip to content

Commit 4cfe41e

Browse files
beckerhecopybara-github
authored andcommitted
Update CUDA SDK to 12.8 and CUDNN to 9.7.0
PiperOrigin-RevId: 719198653
1 parent 3f58129 commit 4cfe41e

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.bazelrc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ build:cuda --repo_env TF_NEED_CUDA=1
225225
build:cuda --crosstool_top=@local_config_cuda//crosstool:toolchain
226226
build:cuda --@local_config_cuda//:enable_cuda
227227
# Default CUDA and CUDNN versions.
228-
build:cuda --repo_env=HERMETIC_CUDA_VERSION="12.5.1"
229-
build:cuda --repo_env=HERMETIC_CUDNN_VERSION="9.3.0"
228+
build:cuda --repo_env=HERMETIC_CUDA_VERSION="12.8.0"
229+
build:cuda --repo_env=HERMETIC_CUDNN_VERSION="9.7.0"
230230
# This flag is needed to include CUDA libraries.
231231
build:cuda --@local_config_cuda//cuda:include_cuda_libs=true
232232

@@ -256,8 +256,8 @@ build:cuda_clang --linkopt="-lm"
256256

257257
# Set up compilation CUDA version and paths and use the CUDA Clang toolchain.
258258
build:cuda_clang_official --config=cuda_clang
259-
build:cuda_clang_official --repo_env=HERMETIC_CUDA_VERSION="12.5.1"
260-
build:cuda_clang_official --repo_env=HERMETIC_CUDNN_VERSION="9.3.0"
259+
build:cuda_clang_official --repo_env=HERMETIC_CUDA_VERSION="12.7.0"
260+
build:cuda_clang_official --repo_env=HERMETIC_CUDNN_VERSION="9.7.0"
261261
build:cuda_clang_official --action_env=CLANG_CUDA_COMPILER_PATH="/usr/lib/llvm-18/bin/clang"
262262
build:cuda_clang_official --crosstool_top="@local_config_cuda//crosstool:toolchain"
263263

third_party/gpus/cuda/hermetic/cuda_redist_versions.bzl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ CUDA_REDIST_JSON_DICT = {
7070
"https://developer.download.nvidia.com/compute/cuda/redist/redistrib_12.6.3.json",
7171
"9c598598457a6463eb92889080c16b2b9dc04150e501b8bfc1536d403ba70aaf",
7272
],
73+
"12.8.0": [
74+
"https://developer.download.nvidia.com/compute/cuda/redist/redistrib_12.8.0.json",
75+
"daa0d766b36feaa933592162c27be5fb63b68fc547ca6886c160a35d96ee8891",
76+
],
7377
}
7478

7579
CUDNN_REDIST_JSON_DICT = {
@@ -121,6 +125,10 @@ CUDNN_REDIST_JSON_DICT = {
121125
"https://developer.download.nvidia.com/compute/cudnn/redist/redistrib_9.6.0.json",
122126
"6dd9a931d981fe5afc7e7ed0c422a4035b1411db4e28a39cf2429e62e3efcd3e",
123127
],
128+
"9.7.0": [
129+
"https://developer.download.nvidia.com/compute/cudnn/redist/redistrib_9.7.0.json",
130+
"e715c1d028585d228c4678c2cdc5ad9a34fde54515a1c52aa60e36021a90dd90",
131+
],
124132
}
125133

126134
CUDA_12_NCCL_WHEEL_DICT = {
@@ -159,12 +167,14 @@ CUDA_NCCL_WHEELS = {
159167
"12.6.1": CUDA_12_NCCL_WHEEL_DICT,
160168
"12.6.2": CUDA_12_NCCL_WHEEL_DICT,
161169
"12.6.3": CUDA_12_NCCL_WHEEL_DICT,
170+
"12.8.0": CUDA_12_NCCL_WHEEL_DICT,
162171
}
163172

164173
REDIST_VERSIONS_TO_BUILD_TEMPLATES = {
165174
"nvidia_driver": {
166175
"repo_name": "cuda_driver",
167176
"version_to_template": {
177+
"570": "//third_party/gpus/cuda/hermetic:cuda_driver.BUILD.tpl",
168178
"560": "//third_party/gpus/cuda/hermetic:cuda_driver.BUILD.tpl",
169179
"555": "//third_party/gpus/cuda/hermetic:cuda_driver.BUILD.tpl",
170180
"550": "//third_party/gpus/cuda/hermetic:cuda_driver.BUILD.tpl",

0 commit comments

Comments
 (0)