Skip to content

Commit

Permalink
use only gpu-compatible build
Browse files Browse the repository at this point in the history
  • Loading branch information
MamatShamshiev committed Aug 16, 2021
1 parent 89818eb commit fb3872d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,7 @@
[
'sparseconvnet/SCN/cuda.cu', 'sparseconvnet/SCN/sparseconvnet_cuda.cpp', 'sparseconvnet/SCN/pybind.cpp'],
include_dirs=[this_dir+'/sparseconvnet/SCN/'],
extra_compile_args=extra)
if torch.cuda.is_available() else
CppExtension('sparseconvnet.SCN',
['sparseconvnet/SCN/pybind.cpp', 'sparseconvnet/SCN/sparseconvnet_cpu.cpp'],
include_dirs=[this_dir+'/sparseconvnet/SCN/'],
extra_compile_args=extra['cxx'])],
extra_compile_args=extra)],
cmdclass={'build_ext': BuildExtension},
zip_safe=False,
)

0 comments on commit fb3872d

Please sign in to comment.