Skip to content

Commit

Permalink
num_sh_bases() is used in both host and device (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Ruilong Li <[email protected]>
  • Loading branch information
liruilong940607 and Ruilong Li authored Oct 13, 2023
1 parent b6f0a9b commit 2d65152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gsplat/cuda/csrc/sh.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ __device__ const float SH_C4[] = {
-1.7701307697799304f,
0.6258357354491761f};

__device__ unsigned num_sh_bases(const unsigned degree) {
// This function is used in both host and device code
__host__ __device__ unsigned num_sh_bases(const unsigned degree) {
if (degree == 0)
return 1;
if (degree == 1)
Expand Down

0 comments on commit 2d65152

Please sign in to comment.