Updates for 3.4 release. (#1305)
This commit is contained in:
@@ -657,7 +657,10 @@ class _ArchListSetter:
|
||||
"""
|
||||
Restores the old value of TORCH_CUDA_ARCH_LIST
|
||||
"""
|
||||
os.environ[_ArchListSetter._TORCH_CUDA_ARCH_LIST] = self.old_arch_list
|
||||
if self.old_arch_list is None:
|
||||
del os.environ[_ArchListSetter._TORCH_CUDA_ARCH_LIST]
|
||||
else:
|
||||
os.environ[_ArchListSetter._TORCH_CUDA_ARCH_LIST] = self.old_arch_list
|
||||
|
||||
|
||||
def _jit(name: str, cc: int, cpp_file: str, cuda_file: str):
|
||||
|
||||
Reference in New Issue
Block a user