WatsonTang98 commited on
Commit
dd412c8
1 Parent(s): dc90b40

Upload setup.py

Browse files
Files changed (1) hide show
  1. pc_util/setup.py +23 -0
pc_util/setup.py ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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={'cxx': ['-g'], 'nvcc': ['-O0', '-j1']}) # Add '-j1' here
21
+ ],
22
+ cmdclass={'build_ext': BuildExtension}
23
+ )