forked from princeton-vl/DROID-SLAM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (26 loc) · 835 Bytes
/
setup.py
File metadata and controls
30 lines (26 loc) · 835 Bytes
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
import os
import os.path as osp
from setuptools import setup, find_packages
from torch.utils.cpp_extension import BuildExtension, CUDAExtension
ROOT = osp.dirname(osp.abspath(__file__))
# Use system Eigen instead of bundled copy
EIGEN_INCLUDE = os.environ.get('EIGEN_INCLUDE_DIR', '/usr/include/eigen3')
setup(
name='droid_slam',
packages=find_packages(),
ext_modules=[
CUDAExtension('droid_backends',
include_dirs=[EIGEN_INCLUDE],
sources=[
'src/droid.cpp',
'src/droid_kernels.cu',
'src/correlation_kernels.cu',
'src/altcorr_kernel.cu',
],
extra_compile_args={
'cxx': ['-O3'],
'nvcc': ['-O3'],
}),
],
cmdclass={ 'build_ext' : BuildExtension }
)