-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathsetup.py
74 lines (73 loc) · 2.56 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='torchex',
packages=find_packages(),
version='0.1.0',
author='Lve Fan',
ext_modules=[
CUDAExtension(
'weighted_nms_ext',
['./torchex/src/weighted_nms/wnms.cpp',
'./torchex/src/weighted_nms/wnms_kernel.cu',]
),
CUDAExtension(
'dynamic_point_pool_ext',
['./torchex/src/dynamic_point_pool/dynamic_point_pool.cpp',
'./torchex/src/dynamic_point_pool/dynamic_point_pool_kernel.cu',]
),
CUDAExtension(
'sparse_roi_voxelization',
['./torchex/src/sparse_roi_voxelization/sparse_roiaware_pool3d.cpp',
'./torchex/src/sparse_roi_voxelization/sparse_roiaware_pool3d_kernel.cu',]
),
CUDAExtension(
'ingroup_indices',
['./torchex/src/ingroup_inds/ingroup_inds.cpp',
'./torchex/src/ingroup_inds/ingroup_inds_kernel.cu',]
),
CUDAExtension(
'connected_components_labeling',
['./torchex/src/connected_components/ccl.cpp',
'./torchex/src/connected_components/ccl_kernel.cu',]
),
CUDAExtension(
'group_fps_ext',
['./torchex/src/group_fps/group_fps.cpp',
'./torchex/src/group_fps/group_fps_kernel.cu',]
),
CUDAExtension(
'scatter_ext',
['./torchex/src/scatter/scatter.cpp',
'./torchex/src/scatter/scatter_kernel.cu']
),
CUDAExtension(
'codec',
['./torchex/src/mask_codec/codec.cpp',
'./torchex/src/mask_codec/codec_kernel.cu']
),
CUDAExtension(
'iou3d_cuda',
['./torchex/src/iou3d/iou3d.cpp',
'./torchex/src/iou3d/iou3d_kernel.cu']
),
CUDAExtension(
'chamfer_distance_cuda',
["./torchex/src/chamfer_distance/chamfer_distance.cpp",
"./torchex/src/chamfer_distance/chamfer_distance_kernel.cu"]
),
CUDAExtension(
'find_incremental_points',
['./torchex/src/incremental_points/incremental_points.cpp',
'./torchex/src/incremental_points/incremental_points_kernel.cu',]
),
CUDAExtension(
'grid_hash_ext',
['./torchex/src/grid_hash/grid_hash.cpp',
'./torchex/src/grid_hash/grid_hash_kernel.cu',]
),
],
cmdclass={
'build_ext': BuildExtension
}
)