Skip to content

Flocking boids simulation using Cuda and C++. Implementation approaches : Coherent grid, Uniform grid, and Brute force.

Notifications You must be signed in to change notification settings

rtarun9/Cuda-Flocking-Boids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cuda Flocking Boids Simulation

Showcase

(Simulation with 10K particles)

(Simulation with 25K particles)

Description

A simple boids simulation done using Cuda and C++.
Techniques implemented :

  • Brute Force approach (Each boid iterates over every other boid).
  • Uniform grid approach (Each boid iterates over boids only in neighbouring spatial grids).
  • Coherent grid approach (Similar to Uniform grid, but memory access is more linear (fewer indrections required)).

Starting code / template obtained from : https://github.com/CIS565-Fall-2022/Project1-CUDA-Flocking.

Performance Analysis

Alt text

Alt text

References

CIS 5650 GPU Programming And Architecture Course

About

Flocking boids simulation using Cuda and C++. Implementation approaches : Coherent grid, Uniform grid, and Brute force.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published