-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
35 lines (33 loc) · 995 Bytes
/
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
#
# Copyright (C) 2023, Inria
# GRAPHDECO research group, https://team.inria.fr/graphdeco
# All rights reserved.
#
# This software is free for non-commercial, research and evaluation use
# under the terms of the LICENSE.md file.
#
# For inquiries contact george.drettakis@inria.fr
#
from setuptools import setup
from torch.utils.cpp_extension import CUDAExtension, BuildExtension
import os
os.path.dirname(os.path.abspath(__file__))
setup(
name="gaussian_hierarchy",
ext_modules=[
CUDAExtension(
name="gaussian_hierarchy._C",
sources=[
"hierarchy_loader.cpp",
"hierarchy_writer.cpp",
"traversal.cpp",
"runtime_switching.cu",
"torch/torch_interface.cpp",
"ext.cpp"],
extra_compile_args={"cxx": ["-I" + os.path.join(os.path.dirname(os.path.abspath(__file__)), "dependencies/eigen/")]}
)
],
cmdclass={
'build_ext': BuildExtension
}
)