forked from nnistelrooij/3dteethland
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·42 lines (41 loc) · 1.59 KB
/
setup.py
File metadata and controls
executable file
·42 lines (41 loc) · 1.59 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
31
32
33
34
35
36
37
38
39
40
41
42
from setuptools import setup
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
setup(
name='pointops',
version='0.0.1',
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'],
extra_compile_args={
'cxx': ['-O3'],
'nvcc': [
'-gencode=arch=compute_60,code=sm_60',
'-gencode=arch=compute_70,code=sm_70',
'-gencode=arch=compute_75,code=sm_75',
'-gencode=arch=compute_80,code=sm_80',
'-gencode=arch=compute_86,code=sm_86',
'-gencode=arch=compute_90,code=sm_90',
'--use_fast_math',
'-O3'
]
},
)],
cmdclass={
'build_ext': BuildExtension,
},
)