fix: setup.py TORCH_CUDA_ARCH_LIST (#62)
parent
c43cdb3a95
commit
57535c5a79
2
setup.py
2
setup.py
|
@ -70,7 +70,7 @@ def get_extensions():
|
|||
extra_compile_args = {"cxx": []}
|
||||
define_macros = []
|
||||
|
||||
if torch.cuda.is_available() and CUDA_HOME is not None:
|
||||
if CUDA_HOME is not None and (torch.cuda.is_available() or "TORCH_CUDA_ARCH_LIST" in os.environ):
|
||||
print("Compiling with CUDA")
|
||||
extension = CUDAExtension
|
||||
sources += source_cuda
|
||||
|
|
Loading…
Reference in New Issue