Skip to content

460xlin/Project1-CUDA-Flocking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

University of Pennsylvania, CIS 565: GPU Programming and Architecture, Project 1 - Flocking

  • Xinyu Lin Linkedin
  • Tested on: Windows 10, Intel(R) Core(TM) i7-6700HQ CPU@2.60GHz, 16GB, GTX960M(Private Computer)

Screenshot of flocking boids

Performance Analysis

  • Framerate change with increasing number of boids

  • Framerate change with increasing block size in 5000 boids

Questions

  1. For each implementation, how does changing the number of boids affect performance? Why do you think this is?
  • With the increasing number of boids, framerate and performance decrease. Because program needs to check each boid's neighborhoods and the times of checking increases.
  1. For each implementation, how does changing the block count and block size affect performance? Why do you think this is?
  • The block size and block cound does not affect perforance at all.
  1. For the coherent uniform grid: did you experience any performance improvements with the more coherent uniform grid? Was this the outcome you expected? Why or why not?
  • No, in my code, the coherent uniform grid is of the same speed as the uniform grid. No, the performance of coherent uniform grid is expected to be better than uniform grid.
  1. Did changing cell width and checking 27 vs 8 neighboring cells affect performance? Why or why not? Be careful: it is insufficient (and possibly incorrect) to say that 27-cell is slower simply because there are more cells to check!
  • Yes, because the way we use to check 27 or 8 neighboring cells is a for-loop in each thread, so the increase of checking area will slow down the performance.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CMake 69.1%
  • Cuda 15.9%
  • C++ 14.2%
  • Other 0.8%