Coder Social home page Coder Social logo

cuda-tree's Introduction

CUDA based Tree builder (QuadTree, Octree)

Octree QuadTree
Octree QuadTree
Octree

Functionality

  • CUDA tree builder
  • CPU kNN, Radius Search
  • 2d, 3d visualization (controls: WSAD R F, Mouse). Additional functionality for QuadTree - click on a Tree for kNN and RadiusSearch
  • Random Points Generator
  • Configuration file
  • An obj file loader

Some implementation details: Medium


Usage

  • ./cuda_tree_app ./app/config/AppConfig.json
  • memory check: compute-sanitizer --tool memcheck ./cuda_tree_app ./app/config/AppConfig.json

Config

  • AppConfig.json - contains general information (points count, pathes to Tree and Render config files)
  • TreeConfig.json:
    • type - 'Quad' or 'Oct'
    • size - width, height, depth (if Octree)
    • threadsPerBlock - min 128 for QuadTree and 256 for Octree (1 warp for each leaf)
  • RenderConfig.json - all about rendering

Requirements

  • CUDA 11.8+
  • C++ 17+
  • OpenGL, GLFW
  • nlohmann (included)

Limitations

  • Tested on up to 150 mln points
  • Max stable depth: QuadTree = 7, Octree = 6
  • I recommend to disable rendering (AppConfig.json) if more than 50 mln points are used

Further development

  1. CUDA based kNN, Radius Search
  2. Refactoring, CPU, GPU optimization
  3. OpenGL interop for faster visualization
  4. Raycasting
  5. KDTree

Disclaimer

  • Tested on Linux: Ubuntu 20.02, CUDA: 12.2, GPU: 3060 (laptop)
  • Approach based on Nvidia's QuadTree sample (cdpQuadtree)

cuda-tree's People

Contributors

fatlipp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.