Skip to content

Commit

Permalink
Reorganize file structure (#480)
Browse files Browse the repository at this point in the history
* minor fix

* create include folder

* seperate header files
  • Loading branch information
JunchenLiu77 authored Nov 9, 2024
1 parent 606dff1 commit e6d5318
Show file tree
Hide file tree
Showing 38 changed files with 824 additions and 773 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
recursive-include gsplat/cuda/csrc *
recursive-include gsplat/cuda/include *
2 changes: 1 addition & 1 deletion gsplat/cuda/_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def cuda_toolkit_version():
current_dir = os.path.dirname(os.path.abspath(__file__))
glm_path = os.path.join(current_dir, "csrc", "third_party", "glm")

extra_include_paths = [os.path.join(PATH, "csrc/"), glm_path]
extra_include_paths = [os.path.join(PATH, "include/"), glm_path]
extra_cflags = ["-O3"]
if NO_FAST_MATH:
extra_cuda_cflags = ["-O3"]
Expand Down
2 changes: 0 additions & 2 deletions gsplat/cuda/csrc/adam.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
1 change: 1 addition & 0 deletions gsplat/cuda/csrc/compute_sh_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#include "bindings.h"
#include "helpers.cuh"
#include "spherical_harmonics.cuh"
#include "types.cuh"

Expand Down
3 changes: 2 additions & 1 deletion gsplat/cuda/csrc/fully_fused_projection_2dgs_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "transform.cuh"
#include "2dgs.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
3 changes: 2 additions & 1 deletion gsplat/cuda/csrc/fully_fused_projection_2dgs_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "transform.cuh"
#include "2dgs.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
4 changes: 4 additions & 0 deletions gsplat/cuda/csrc/fully_fused_projection_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "quat.cuh"
#include "quat_scale_to_covar_preci.cuh"
#include "proj.cuh"
#include "transform.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
4 changes: 3 additions & 1 deletion gsplat/cuda/csrc/fully_fused_projection_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "quat_scale_to_covar_preci.cuh"
#include "proj.cuh"
#include "transform.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
3 changes: 2 additions & 1 deletion gsplat/cuda/csrc/fully_fused_projection_packed_2dgs_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "transform.cuh"
#include "2dgs.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
3 changes: 2 additions & 1 deletion gsplat/cuda/csrc/fully_fused_projection_packed_2dgs_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "quat.cuh"
#include "transform.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
4 changes: 4 additions & 0 deletions gsplat/cuda/csrc/fully_fused_projection_packed_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "quat.cuh"
#include "quat_scale_to_covar_preci.cuh"
#include "proj.cuh"
#include "transform.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
4 changes: 3 additions & 1 deletion gsplat/cuda/csrc/fully_fused_projection_packed_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "quat_scale_to_covar_preci.cuh"
#include "proj.cuh"
#include "transform.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
1 change: 0 additions & 1 deletion gsplat/cuda/csrc/isect_tiles.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "bindings.h"
#include "helpers.cuh"
#include "types.cuh"
#include <cooperative_groups.h>
#include <cub/cub.cuh>
Expand Down
3 changes: 1 addition & 2 deletions gsplat/cuda/csrc/proj_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "proj.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
3 changes: 1 addition & 2 deletions gsplat/cuda/csrc/proj_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "proj.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
4 changes: 2 additions & 2 deletions gsplat/cuda/csrc/quat_scale_to_covar_preci_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "quat.cuh"
#include "quat_scale_to_covar_preci.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
3 changes: 1 addition & 2 deletions gsplat/cuda/csrc/quat_scale_to_covar_preci_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "bindings.h"
#include "helpers.cuh"
#include "utils.cuh"
#include "quat_scale_to_covar_preci.cuh"

#include <cooperative_groups.h>
#include <cooperative_groups/reduce.h>
Expand Down
1 change: 0 additions & 1 deletion gsplat/cuda/csrc/rasterize_to_indices_in_range.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "bindings.h"
#include "helpers.cuh"
#include "types.cuh"
#include <cooperative_groups.h>
#include <cub/cub.cuh>
Expand Down
3 changes: 1 addition & 2 deletions gsplat/cuda/csrc/rasterize_to_indices_in_range_2dgs.cu
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "bindings.h"
#include "helpers.cuh"
#include "types.cuh"
#include "utils.cuh"
#include "2dgs.cuh"
#include <cooperative_groups.h>
#include <cub/cub.cuh>
#include <cuda_runtime.h>
Expand Down
2 changes: 1 addition & 1 deletion gsplat/cuda/csrc/rasterize_to_pixels_2dgs_bwd.cu
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "bindings.h"
#include "helpers.cuh"
#include "types.cuh"
#include "utils.cuh"
#include "2dgs.cuh"
#include <cooperative_groups.h>
#include <cub/cub.cuh>
#include <cuda_runtime.h>
Expand Down
3 changes: 1 addition & 2 deletions gsplat/cuda/csrc/rasterize_to_pixels_2dgs_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include "bindings.h"
#include "helpers.cuh"
#include "types.cuh"
#include "utils.cuh"
#include "2dgs.cuh"
#include <cooperative_groups.h>
#include <cub/cub.cuh>
#include <cuda_runtime.h>
Expand Down
1 change: 0 additions & 1 deletion gsplat/cuda/csrc/rasterize_to_pixels_fwd.cu
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include "bindings.h"
#include "helpers.cuh"
#include "types.cuh"
#include <cooperative_groups.h>
#include <cub/cub.cuh>
Expand Down
2 changes: 1 addition & 1 deletion gsplat/cuda/csrc/third_party/glm
Loading

0 comments on commit e6d5318

Please sign in to comment.