-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.py
39 lines (36 loc) · 1.36 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
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CppExtension
print(find_packages())
INSTALL_REQUIREMENTS = ['numpy', 'torch', 'plyfile', 'matplotlib', 'openmesh']
setup(
name='pytorch_points',
description="pytorch extension for point cloud processing",
author='Yifan Wang',
author_email="[email protected]",
version='0.91',
url="https://github.com/yifita/pytorch_points",
install_requires=INSTALL_REQUIREMENTS,
packages=find_packages("."),
ext_package="pytorch_points._ext",
python_requires=">3.6",
ext_modules=[
CUDAExtension('linalg', [
'pytorch_points/_ext/torch_batch_svd.cpp', ],
libraries=["cusolver", "cublas"],
extra_compile_args={'cxx': ['-g'], 'nvcc': ['-O2']},
),
CUDAExtension('losses', [
'pytorch_points/_ext/nmdistance_cuda.cu', 'pytorch_points/_ext/nmdistance.cpp'],
extra_compile_args={'cxx': ['-g'], 'nvcc': ['-O2']},
),
CUDAExtension('sampling', [
'pytorch_points/_ext/sampling.cpp',
'pytorch_points/_ext/sampling_cuda.cu',
'pytorch_points/_ext/interpolate_gpu.cu',
],
extra_compile_args={'cxx': ['-g'], 'nvcc': ['-O2']},
)
],
cmdclass={
'build_ext': BuildExtension
})