Skip to content

Commit

Permalink
allow more flexible CUDA build environment (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
rodriguhe authored May 1, 2024
1 parent 67f703b commit df2df7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def get_extensions():
extra_compile_args = {"cxx": []}
define_macros = []

if torch.cuda.is_available() and CUDA_HOME is not None:
if (torch.cuda.is_available() and CUDA_HOME is not None) or os.getenv("FORCE_CUDA", "0") == "1":
extension = CUDAExtension
sources += source_cuda
define_macros += [("WITH_CUDA", None)]
Expand Down

0 comments on commit df2df7f

Please sign in to comment.