-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (43 loc) · 1.82 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
# python3 setup.py install
from setuptools import find_packages, setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name="pointops-yoda",
version="0.0.0.post2",
packages=find_packages(),
install_requires=[
"numpy",
"torch",
],
ext_modules=[
CUDAExtension(
"pointops_cuda",
[
"pointops/src/pointops_api.cpp",
"pointops/src/ballquery/ballquery_cuda.cpp",
"pointops/src/ballquery/ballquery_cuda_kernel.cu",
"pointops/src/knnquery/knnquery_cuda.cpp",
"pointops/src/knnquery/knnquery_cuda_kernel.cu",
"pointops/src/knnquery_heap/knnquery_heap_cuda.cpp",
"pointops/src/knnquery_heap/knnquery_heap_cuda_kernel.cu",
"pointops/src/grouping/grouping_cuda.cpp",
"pointops/src/grouping/grouping_cuda_kernel.cu",
"pointops/src/grouping_int/grouping_int_cuda.cpp",
"pointops/src/grouping_int/grouping_int_cuda_kernel.cu",
"pointops/src/interpolation/interpolation_cuda.cpp",
"pointops/src/interpolation/interpolation_cuda_kernel.cu",
"pointops/src/sampling/sampling_cuda.cpp",
"pointops/src/sampling/sampling_cuda_kernel.cu",
"pointops/src/labelstat/labelstat_cuda.cpp",
"pointops/src/labelstat/labelstat_cuda_kernel.cu",
"pointops/src/featuredistribute/featuredistribute_cuda.cpp",
"pointops/src/featuredistribute/featuredistribute_cuda_kernel.cu",
],
extra_compile_args={
"cxx": ["-g", "-std=c++17"],
"nvcc": ["-O2", "-std=c++17"],
},
)
],
cmdclass={"build_ext": BuildExtension},
)