forked from yifita/pytorch_points
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
36 lines (33 loc) · 1.23 KB
/
Copy pathsetup.py
File metadata and controls
36 lines (33 loc) · 1.23 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
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension, CppExtension
print(find_packages())
INSTALL_REQUIREMENTS = ['numpy', 'torch', 'plyfile', 'matplotlib']
setup(
name='pytorch_points',
description="pytorch extension for point cloud processing",
author='Yifan Wang',
author_email="yifan.wang@inf.ethz.ch",
version='0.9',
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', ],
extra_compile_args={'cxx': ['-g'], 'nvcc': ['-O2']},
)
],
cmdclass={
'build_ext': BuildExtension
})