-
Notifications
You must be signed in to change notification settings - Fork 80
/
setup.py
26 lines (24 loc) · 896 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
if __name__ == '__main__':
setup(
name='softgroup',
version='1.0',
description='SoftGroup: SoftGroup for 3D Instance Segmentation [CVPR 2022]',
author='Thang Vu',
author_email='[email protected]',
packages=['softgroup'],
package_data={'softgroup.ops': ['*/*.so']},
ext_modules=[
CUDAExtension(
name='softgroup.ops.ops',
sources=[
'softgroup/ops/src/softgroup_api.cpp', 'softgroup/ops/src/softgroup_ops.cpp',
'softgroup/ops/src/cuda.cu'
],
extra_compile_args={
'cxx': ['-g'],
'nvcc': ['-O2']
})
],
cmdclass={'build_ext': BuildExtension})