Giter VIP home page Giter VIP logo

swarm's Introduction

GPU Programmierung

Build

Clone this repositiory:

git clone [email protected]:qqwa/swarm.git
cd swarm
git submodule update --init --recursive

Dependencies: C++ Compiler, CMake, GLEW, OpenGL and OpenCL should be installed.

By default the CPU is used to update the position of the swarm members, change the key use_cpu to false in cfg/default.toml to use the GPU instead.

Execute ./run.sh to build and run the project.

Performance

System used for measurements: AMD Ryzen 7 1700X and RX Vega 56

Count perf_cpu perf_gpu perf_cpu_inc perf_gpu_inc
1,000 3.06ms 2.47ms 0.37ms 0.52ms
10,000 262.07ms 20.57ms 3.83ms 0.65ms
100,000 25785.15ms 1028.06ms 34.36ms 9.26ms
1,000,000 - - 363.67ms 87.91ms
  • perf_cpu Implementation with CPU
  • perf_gpu Implementation with GPU
  • perf_cpu_inc Implementation with CPU, neighbours get updated incremental, so that it isn't o(n^2) anymore.
  • perf_gpu_inc Implementation with GPU, neighbours get updated incremental, so that it isn't o(n^2) anymore.

Themen

  • Schwarm mit vielen Mitgliedern

OpenCV

  • Schwarm:
    • Gibt aktuelle Richtung/Ziel des Schwarmes vor
    • evtl. noch andere Parameter, wie allgemeine Geschwindigkeit, Sprich eher langsam oder schnell
  • Mitglieder:
    • jedes einzelne Mitglied versucht individuell das aktuelle Schwarmziel zu erreichen, orientiert sich aber an seinen nächsten Nachbarn
    • Mitglieder des selben Schwarmes sollten nicht miteinander kollidieren
  • äußere Einflüsse (wirken auf jedes Mitglied):
    • Wind (global, stärke und richtung Variable)

OpenGL

  • Mitglieder werden durch einfache Meshes dargestellt, die die aktuelle Richtung veranschaulichen
  • Meshes werden animiert
  • "schöne" Umgebung, durch die der Schwarm fliegen kann

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.