Skip to content

Commit

Permalink
Merge pull request #3794 from kmaehashi/bp-3790-v7-cudnn-v8
Browse files Browse the repository at this point in the history
[backport] Temporary fixes for cudnn v8
  • Loading branch information
asi1024 committed Aug 17, 2020
2 parents db1b8db + 7ea5a0d commit 53f2373
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/cupy_tests/test_cudnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,12 @@ def setUp(self):
(ndim > 2 and deterministic and version < 6000) or
(ndim > 2 and deterministic and self.dtype == numpy.float64)):
self.err = libcudnn.CuDNNError
elif (8000 <= version and
self.max_workspace_size == 0 and
int(cupy.cuda.device.get_compute_capability()) < 70 and
self.groups > 1 and ndim > 2 and
self.dtype == numpy.float16):
self.err = RuntimeError
self._workspace_size = cudnn.get_max_workspace_size()
cudnn.set_max_workspace_size(self.max_workspace_size)

Expand Down Expand Up @@ -327,6 +333,11 @@ def setUp(self):
(ndim > 2 and version < 6000) or
(ndim > 2 and self.dtype == numpy.float64)):
self.err = libcudnn.CuDNNError
elif (8000 <= version and
int(cupy.cuda.device.get_compute_capability()) < 70 and
self.dilate > 1 and self.groups > 1 and ndim > 2 and
self.dtype == numpy.float16):
self.err = RuntimeError
self._workspace_size = cudnn.get_max_workspace_size()
cudnn.set_max_workspace_size(self.max_workspace_size)

Expand Down

0 comments on commit 53f2373

Please sign in to comment.