Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

setup.py 1.0 KB

You have to be logged in to leave a comment. Sign In
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
  1. #
  2. # Copyright (C) 2023, Inria
  3. # GRAPHDECO research group, https://team.inria.fr/graphdeco
  4. # All rights reserved.
  5. #
  6. # This software is free for non-commercial, research and evaluation use
  7. # under the terms of the LICENSE.md file.
  8. #
  9. # For inquiries contact george.drettakis@inria.fr
  10. #
  11. from setuptools import setup
  12. from torch.utils.cpp_extension import CUDAExtension, BuildExtension
  13. import os
  14. os.path.dirname(os.path.abspath(__file__))
  15. setup(
  16. name="diff_gaussian_rasterization",
  17. packages=['diff_gaussian_rasterization'],
  18. ext_modules=[
  19. CUDAExtension(
  20. name="diff_gaussian_rasterization._C",
  21. sources=[
  22. "cuda_rasterizer/rasterizer_impl.cu",
  23. "cuda_rasterizer/forward.cu",
  24. "cuda_rasterizer/backward.cu",
  25. "rasterize_points.cu",
  26. "ext.cpp"],
  27. extra_compile_args={"nvcc": ["-I" + os.path.join(os.path.dirname(os.path.abspath(__file__)), "third_party/glm/")]})
  28. ],
  29. cmdclass={
  30. 'build_ext': BuildExtension
  31. }
  32. )
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...