Update setup.py (#282)

Co-authored-by: neubig <neubig@gmail.com>
This commit is contained in:
Cody Yu 2023-06-27 14:34:23 -07:00 committed by GitHub
parent 4026a049d3
commit 2b7d3aca2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -20,10 +20,9 @@ ABI = 1 if torch._C._GLIBCXX_USE_CXX11_ABI else 0
CXX_FLAGS += [f"-D_GLIBCXX_USE_CXX11_ABI={ABI}"]
NVCC_FLAGS += [f"-D_GLIBCXX_USE_CXX11_ABI={ABI}"]
if not torch.cuda.is_available():
if CUDA_HOME is None:
raise RuntimeError(
f"Cannot find CUDA at CUDA_HOME: {CUDA_HOME}. "
"CUDA must be available in order to build the package.")
f"Cannot find CUDA_HOME. CUDA must be available in order to build the package.")
def get_nvcc_cuda_version(cuda_dir: str) -> Version: