-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
127 lines (114 loc) · 2.75 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
mesh_path = 'segmesh/mesh/pi_modules/source'
point_path = 'segmesh/point/pi_modules/source'
setup(
name='mesh_conv3d',
ext_modules=[
CUDAExtension('mesh_conv3d', [
f'{mesh_path}/mesh_conv3d.cpp',
f'{mesh_path}/mesh_conv3d_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='mesh_decimation',
ext_modules=[
CUDAExtension('mesh_decimation', [
f'{mesh_path}/decimate.cpp',
f'{mesh_path}/decimate_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='mesh_pool3d',
ext_modules=[
CUDAExtension('mesh_pool3d', [
f'{mesh_path}/mesh_pool3d.cpp',
f'{mesh_path}/mesh_pool3d_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='mesh_unpool3d',
ext_modules=[
CUDAExtension('mesh_unpool3d', [
f'{mesh_path}/mesh_unpool3d.cpp',
f'{mesh_path}/mesh_unpool3d_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='point_buildkernel',
ext_modules=[
CUDAExtension('point_buildkernel', [
f'{point_path}/buildkernel.cpp',
f'{point_path}/buildkernel_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='point_conv3d',
ext_modules=[
CUDAExtension('point_conv3d', [
f'{point_path}/pcloud_conv3d.cpp',
f'{point_path}/pcloud_conv3d_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='point_nnquery',
ext_modules=[
CUDAExtension('point_nnquery', [
f'{point_path}/nnquery.cpp',
f'{point_path}/nnquery_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='point_pool3d',
ext_modules=[
CUDAExtension('point_pool3d', [
f'{point_path}/pcloud_pool3d.cpp',
f'{point_path}/pcloud_pool3d_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='point_sample',
ext_modules=[
CUDAExtension('point_sample', [
f'{point_path}/sample.cpp',
f'{point_path}/sample_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})
setup(
name='point_unpool3d',
ext_modules=[
CUDAExtension('point_unpool3d', [
f'{point_path}/pcloud_unpool3d.cpp',
f'{point_path}/pcloud_unpool3d_gpu.cu',
])
],
cmdclass={
'build_ext': BuildExtension
})