Giter Site home page Giter Site logo

ziyezhou-jerry / project1-cuda-introduction Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cis565-fall-2015/project1-cuda-introduction

0.0 1.0 0.0 2.99 MB

Introduction to programming with CUDA.

CMake 81.00% Makefile 0.48% GLSL 0.14% C++ 14.35% Cuda 4.03%

project1-cuda-introduction's Introduction

CUDA Introduction

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

  • Ziye Zhou
  • Tested on: Windows 8.1, i7-4910 @ 2.90GHz 32GB, GTX 880M 8192MB (Alienware)

(TODO: Your README)

Include screenshots, analysis, etc. (Remember, this is public, so don't put anything here that you don't want to share with the world.)

Questions

Answer these:

  • Parts 1 & 2: How does changing the tile and block sizes affect performance? Why? Ans: Increase the tile and block sizes will increase the performance to a certain amount but will stay the same after a certain threshold. When the computation unit is not enough for the task, increasing the number will increase the performace, but when computation units are more than enough, increasing the number will not affect the performance.

  • Part 1: How does changing the number of planets affect performance? Why? Ans: The more the planets, the worse the performance. Because when adding more planets into the scene, we need more computation.

  • Part 2: Without running comparisons of CPU code vs. GPU code, how would you expect the performance to compare? Why? What might be the trade-offs? Ans: If the number of the parallel computation number is small, I think CPU will win in the comparison; while if the parallel computation number is large, I think GPU will win the comparison. The tradeoff lies between the computation and the context switch. When number of computation is small, the bottleneck will be the context switch. If the number of computation is large, the bottleneck will be the computation itself.

ScreenShot

N-Body Sim alt tag

Performance Analysis

  • Part 1 (1) visualization on alt tag (2) visualizaiton off alt tag (3) change blockszie to 64 alt tag (4) change blocksize to 256 alt tag (5) change planets number to 10000 alt tag (6) change planets number to 2000 alt tag
  • Part 2

alt tag alt tag alt tag

project1-cuda-introduction's People

Contributors

kainino0x avatar ziyezhou-jerry avatar pjcozzi avatar shrekshao avatar

Watchers

 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.