Skip to content

Commit

Permalink
attempted fix for nvrtc with lovelace (#87611) (#87618)
Browse files Browse the repository at this point in the history
Fixes #87595 (maybe?)

Pull Request resolved: #87611
Approved by: https://github.com/malfet, https://github.com/atalman

Co-authored-by: Natalia Gimelshein <ngimel@fb.com>
  • Loading branch information
atalman and ngimel committed Oct 24, 2022
1 parent 4e1a4b1 commit 7c98e70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aten/src/ATen/native/cuda/jit_utils.cpp
Expand Up @@ -894,6 +894,8 @@ void codegenOutputQuery(
max_dev_version = CUDAVersion(7, 5);
} else if (nvrtc_version == CUDAVersion(11, 0)) { // 11.0 supports 3-8.0
max_dev_version = CUDAVersion(8, 0);
} else if (nvrtc_major == 11 && nvrtc_minor < 8) {
max_dev_version = CUDAVersion(8, 6);
} else {
// If the driver version is unknown (i.e. newer than this code)
// assume the driver supports this device
Expand Down
2 changes: 2 additions & 0 deletions torch/csrc/jit/codegen/fuser/cuda/fused_kernel.cpp
Expand Up @@ -64,6 +64,8 @@ void codegenOutputQuery(
max_dev_version = CudaVersion(7, 5);
} else if (nvrtc_version == CudaVersion(11, 0)) { // 11.0 supports 3-8.0
max_dev_version = CudaVersion(8, 0);
} else if (nvrtc_version.first == 11 && nvrtc_version.second < 8) {
max_dev_version = CudaVersion(8, 6);
} else {
// If the driver version is unknown (i.e. newer than this code)
// assume the driver supports this device
Expand Down

0 comments on commit 7c98e70

Please sign in to comment.