Skip to content

Commit a871d62

Browse files
committed
Roll back to cuDNN 8.8
1 parent 76b7ce6 commit a871d62

File tree

6 files changed

+23
-27
lines changed

6 files changed

+23
-27
lines changed

.circleci/config.yml

+10-10
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ commands:
9494
- << parameters.install-dir >>
9595

9696
install-cudnn:
97-
description: "Install CUDNN 8.9.1"
97+
description: "Install CUDNN 8.8.1"
9898
parameters:
9999
os:
100100
type: string
@@ -104,10 +104,10 @@ commands:
104104
default: "x86_64"
105105
cudnn-version:
106106
type: string
107-
default: "8.9.1.23"
107+
default: "8.8.1.3"
108108
cuda-version:
109109
type: string
110-
default: "cuda12.1"
110+
default: "cuda12.0"
111111
steps:
112112
- run:
113113
name: Install CUDNN
@@ -183,7 +183,7 @@ commands:
183183
default: "cuda12.0"
184184
cudnn-version:
185185
type: string
186-
default: "8.9.1.23"
186+
default: "8.8.1.3"
187187
trt-version-short:
188188
type: string
189189
default: "8.6.1"
@@ -235,7 +235,7 @@ commands:
235235
default: "8.6.1"
236236
cudnn-version-long:
237237
type: string
238-
default: "8.9.1.23"
238+
default: "8.8.1.3"
239239
steps:
240240
- run:
241241
name: Set up python environment
@@ -252,13 +252,13 @@ commands:
252252
parameters:
253253
torch-build:
254254
type: string
255-
default: "2.1.0.dev20230619+cu121.with.pypi.cudnn"
255+
default: "2.1.0.dev20230619+cu121"
256256
torchvision-build:
257257
type: string
258258
default: "0.16.0.dev20230619+cu121"
259259
torch-build-index:
260260
type: string
261-
default: "https://download.pytorch.org/whl/nightly/cu121_pypi_cudnn"
261+
default: "https://download.pytorch.org/whl/nightly/cu121"
262262
torchvision-build-index:
263263
type: string
264264
default: "https://download.pytorch.org/whl/nightly/cu121"
@@ -1338,13 +1338,13 @@ parameters:
13381338
# Nightly platform config
13391339
torch-build:
13401340
type: string
1341-
default: "2.1.0.dev20230619+cu121.with.pypi.cudnn"
1341+
default: "2.1.0.dev20230619+cu121"
13421342
torchvision-build:
13431343
type: string
13441344
default: "0.16.0.dev20230619+cu121"
13451345
torch-build-index:
13461346
type: string
1347-
default: "https://download.pytorch.org/whl/nightly/cu121_pypi_cudnn"
1347+
default: "https://download.pytorch.org/whl/nightly/cu121"
13481348
torch-build-legacy:
13491349
type: string
13501350
default: "1.13.1+cu117"
@@ -1359,7 +1359,7 @@ parameters:
13591359
default: true
13601360
cudnn-version:
13611361
type: string
1362-
default: "8.9.1.23"
1362+
default: "8.8.1.3"
13631363
trt-version-short:
13641364
type: string
13651365
default: "8.6.1"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ These are the following dependencies used to verify the testcases. Torch-TensorR
118118
- Bazel 5.2.0
119119
- Libtorch 2.1.0.dev20230619 (built with CUDA 12.1)
120120
- CUDA 12.1
121-
- cuDNN 8.9.1
121+
- cuDNN 8.8.1
122122
- TensorRT 8.6.1
123123

124124
## Prebuilt Binaries and Wheel files

WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ http_archive(
7171
http_archive(
7272
name = "cudnn",
7373
build_file = "@//third_party/cudnn/archive:BUILD",
74-
sha256 = "35163c5c542be0c511738b27e25235193cbeedc5e0e006e44b1cdeaf1922e83e",
75-
strip_prefix = "cudnn-linux-x86_64-8.9.1.23_cuda12-archive",
74+
sha256 = "79d77a769c7e7175abc7b5c2ed5c494148c0618a864138722c887f95c623777c",
75+
strip_prefix = "cudnn-linux-x86_64-8.8.1.3_cuda12-archive",
7676
urls = [
77-
"https://developer.nvidia.com/downloads/compute/cudnn/secure/8.9.1/local_installers/12.x/cudnn-linux-x86_64-8.9.1.23_cuda12-archive.tar.xz",
77+
"https://developer.nvidia.com/downloads/compute/cudnn/secure/8.8.1/local_installers/12.0/cudnn-linux-x86_64-8.8.1.3_cuda12-archive.tar.xz",
7878
],
7979
)
8080

docker/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ Note: By default the container uses the `pre-cxx11-abi` version of Torch + Torch
1717

1818
### Instructions
1919

20-
- The example below uses CUDNN 8.9 and TensorRT 8.6
20+
- The example below uses CUDNN 8.8 and TensorRT 8.6
2121
- See <a href="https://github.com/pytorch/TensorRT#dependencies">dependencies</a> for a list of current default dependencies.
2222

2323
> From root of Torch-TensorRT repo
2424
2525
Build:
2626
```
27-
DOCKER_BUILDKIT=1 docker build --build-arg TENSORRT_VERSION=8.6 --build-arg CUDNN_VERSION=8.9 -f docker/Dockerfile -t torch_tensorrt:latest .
27+
DOCKER_BUILDKIT=1 docker build --build-arg TENSORRT_VERSION=8.6 --build-arg CUDNN_VERSION=8.8 -f docker/Dockerfile -t torch_tensorrt:latest .
2828
```
2929

3030
Run:

py/versions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
__version__ = "1.5.0.dev0"
22
__cuda_version__ = "12.1"
3-
__cudnn_version__ = "8.9"
3+
__cudnn_version__ = "8.8"
44
__tensorrt_version__ = "8.6"

toolchains/ci_workspaces/WORKSPACE.x86_64

+6-10
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,16 @@ new_local_repository(
6161
# x86_64 python distribution. If using NVIDIA's version just point to the root of the package
6262
# for both versions here and do not use --config=pre-cxx11-abi
6363

64-
http_archive(
64+
new_local_repository(
6565
name = "libtorch",
66-
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba",
68-
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
66+
path = "/opt/circleci/.pyenv/versions/3.9.4/lib/python3.9/site-packages/torch",
67+
build_file = "third_party/libtorch/BUILD"
7068
)
7169

72-
http_archive(
70+
new_local_repository(
7371
name = "libtorch_pre_cxx11_abi",
74-
build_file = "@//third_party/libtorch:BUILD",
75-
sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e",
76-
strip_prefix = "libtorch",
77-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
72+
path = "/opt/circleci/.pyenv/versions/3.9.4/lib/python3.9/site-packages/torch",
73+
build_file = "third_party/libtorch/BUILD"
7874
)
7975

8076
new_local_repository(

0 commit comments

Comments
 (0)