-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·30 lines (28 loc) · 1.11 KB
/
Copy pathsetup.py
File metadata and controls
executable file
·30 lines (28 loc) · 1.11 KB
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
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='pointops',
version='0.0.0',
ext_modules=[CUDAExtension(
name='pointops',
sources=[
'src/api.cpp',
'src/attention/aggregate_values/aggregate_values_crpe.cu',
'src/attention/aggregate_values/aggregate_values_crpe_cuda.cu',
'src/attention/attention_logits/attention_logits_crpe.cu',
'src/attention/attention_logits/attention_logits_crpe_cuda.cu',
'src/attention/query_key_pairs/stratified_qk_pairs.cu',
'src/attention/query_key_pairs/stratified_qk_pairs_cuda.cu',
'src/farthest_point_sampling/fps.cu',
'src/farthest_point_sampling/fps_cuda.cu',
'src/neighbors/ball_query/ball_query.cu',
'src/neighbors/ball_query/ball_query_cuda.cu',
'src/neighbors/knn_query/knn_query.cu',
'src/neighbors/knn_query/knn_query_cuda.cu',
],
runtime_library_dirs=['/usr/local/lib'],
)],
cmdclass={
'build_ext': BuildExtension,
},
)