setup.py 419 B

123456789101112131415
  1. from setuptools import setup
  2. from torch.utils.cpp_extension import BuildExtension, CppExtension, CUDAExtension
  3. setup(
  4. name='deep_hough',
  5. ext_modules=[
  6. CUDAExtension('deep_hough', [
  7. 'deep_hough_cuda.cpp',
  8. 'deep_hough_cuda_kernel.cu',
  9. ],
  10. extra_compile_args={'cxx': ['-g'], 'nvcc': ['-arch=sm_60']})
  11. ],
  12. cmdclass={
  13. 'build_ext': BuildExtension
  14. })