Skip to content

Commit

Permalink
Merge pull request NVlabs#128 from NVlabs/memory-arena
Browse files Browse the repository at this point in the history
Significant memory reduction through TCNN's new memory arena
  • Loading branch information
Tom94 authored Feb 10, 2022
2 parents d44b17f + 6589780 commit 6d23723
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 227 deletions.
2 changes: 1 addition & 1 deletion include/neural-graphics-primitives/marching_cubes.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ NGP_NAMESPACE_BEGIN

Eigen::Vector3i get_marching_cubes_res(uint32_t res_1d, const BoundingBox &aabb);

void marching_cubes_gpu(tcnn::GPUMemory<char>& scratch_memory, BoundingBox aabb, Eigen::Vector3i res_3d, float thresh, const tcnn::GPUMemory<float>& density, tcnn::GPUMemory<Eigen::Vector3f>& vert_out, tcnn::GPUMemory<uint32_t>& indices_out);
void marching_cubes_gpu(cudaStream_t stream, BoundingBox aabb, Eigen::Vector3i res_3d, float thresh, const tcnn::GPUMemory<float>& density, tcnn::GPUMemory<Eigen::Vector3f>& vert_out, tcnn::GPUMemory<uint32_t>& indices_out);

// computes the average of the 1ring of all verts, as homogenous coordinates
void compute_mesh_1ring(const tcnn::GPUMemory<Eigen::Vector3f>& verts, const tcnn::GPUMemory<uint32_t>& indices, tcnn::GPUMemory<Eigen::Vector4f>& output_pos, tcnn::GPUMemory<Eigen::Vector3f>& output_normals);
Expand Down
Loading

0 comments on commit 6d23723

Please sign in to comment.