We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80a7dc5 commit b51c22aCopy full SHA for b51c22a
setup.py
@@ -7,10 +7,6 @@
7
import torch
8
from torch.utils.cpp_extension import CppExtension, CUDAExtension, CUDA_HOME
9
10
-USE_GPU = True
11
-if '--cpu' in argv:
12
- USE_GPU = False
13
-
14
cxx_extra_compile_args = []
15
nvcc_extra_compile_args = ['-arch=sm_35', '--expt-relaxed-constexpr']
16
if platform.system() != 'Windows':
@@ -30,7 +26,7 @@
30
26
extra_compile_args=cxx_extra_compile_args) for ext in exts
31
27
]
32
28
33
-if CUDA_HOME is not None and USE_GPU:
29
+if CUDA_HOME is not None and '--cpu' not in argv:
34
exts = [e.split(osp.sep)[-1][:-4] for e in glob(osp.join('cuda', '*.cpp'))]
35
ext_modules += [
36
CUDAExtension(
0 commit comments