-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
executable file
·41 lines (40 loc) · 1.77 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
40
41
from setuptools import setup
from torch.utils.cpp_extension import CUDAExtension, BuildExtension
import os
os.path.dirname(os.path.abspath(__file__))
setup(
name="diffoctreerast",
packages=['diffoctreerast'],
ext_modules=[
CUDAExtension(
name="diffoctreerast._C",
sources=[
# Octree Voxel rasterization
"src/octree_voxel_rasterizer/cuda/data_structure.cu",
"src/octree_voxel_rasterizer/cuda/forward.cu",
"src/octree_voxel_rasterizer/cuda/backward.cu",
"src/octree_voxel_rasterizer/api.cpp",
# Octree Gaussian rasterization
"src/octree_gaussian_rasterizer/cuda/data_structure.cu",
"src/octree_gaussian_rasterizer/cuda/forward.cu",
"src/octree_gaussian_rasterizer/cuda/backward.cu",
"src/octree_gaussian_rasterizer/api.cpp",
# Octree Trivec rasterization
"src/octree_trivec_rasterizer/cuda/data_structure.cu",
"src/octree_trivec_rasterizer/cuda/forward.cu",
"src/octree_trivec_rasterizer/cuda/backward.cu",
"src/octree_trivec_rasterizer/api.cpp",
# Octree Decoupled Polynomial rasterization
"src/octree_decoupoly_rasterizer/cuda/data_structure.cu",
"src/octree_decoupoly_rasterizer/cuda/forward.cu",
"src/octree_decoupoly_rasterizer/cuda/backward.cu",
"src/octree_decoupoly_rasterizer/api.cpp",
# Main
"src/ext.cpp"
],
extra_compile_args={"nvcc": ["-I" + os.path.join(os.path.dirname(os.path.abspath(__file__)), "lib/glm/")]})
],
cmdclass={
'build_ext': BuildExtension
}
)