WatsonTang98 commited on
Commit
c131629
1 Parent(s): 7b24272

Upload setup.py

Browse files
Files changed (1) hide show
  1. pc_util/setup.py +27 -0
pc_util/setup.py ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from setuptools import setup
2
+ from torch.utils.cpp_extension import BuildExtension, CUDAExtension
3
+
4
+ setup(
5
+ name='pc_util',
6
+ version='1.0',
7
+ ext_modules=[
8
+ CUDAExtension('pc_util', [
9
+ 'src/pointnet2_api.cpp',
10
+ 'src/ball_query.cpp',
11
+ 'src/ball_query_gpu.cu',
12
+ 'src/group_points.cpp',
13
+ 'src/group_points_gpu.cu',
14
+ 'src/interpolate.cpp',
15
+ 'src/interpolate_gpu.cu',
16
+ 'src/sampling.cpp',
17
+ 'src/sampling_gpu.cu',
18
+ 'src/cluster.cpp',
19
+ 'src/cluster_gpu.cu',
20
+ ], extra_compile_args={
21
+ 'cxx': ['-g'],
22
+ 'nvcc': ['-O2',
23
+ '-I/usr/local/cuda-12.1/include'
24
+ ]})
25
+ ],
26
+ cmdclass={'build_ext': BuildExtension}
27
+ )