Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,25 @@ Project 0 CUDA Getting Started

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

* (TODO) YOUR NAME HERE
* (TODO) [LinkedIn](), [personal website](), [twitter](), etc.
* Tested on: (TODO) Windows 22, i7-2222 @ 2.22GHz 22GB, GTX 222 222MB (Moore 2222 Lab)
* Zach Corse
* LinkedIn: https://www.linkedin.com/in/wzcorse/
* Personal Website: https://wzcorse.com
* Twitter: @ZachCorse
* Tested on: Windows 10, i7-6700HQ @ 2.60GHz 32GB, NVIDIA GeForce GTX 970M (personal computer)

### (TODO: Your README)
### 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.)
This is a simple assignment to demonstrate that CUDA is up and running on my personal machine. The expected output is a texture consisting of two blocks of color, one atop the other. The image is 800x800 pixels, and each pixel is written by a single thread. We can think of this texture as a 2D matrix. On the GPU, this matrix is subdivided into 16x16 blocks of threads, giving a thread density of 50x50 per block.

*Note*: I edited line 10 of src/CMakeLists.txt. I had to specify that my specific GPU architecture is -arch=sm_50.

Running CUDA v. 9.2 in Visual Studio 15 Community.

![bluered](images/Capture.PNG)

*code output*

![nsightData](images/nsight.PNG)

*demonstrating NVIDIA nsight performance analysis*

Binary file added images/Capture.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/nsight.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
* C main function.
*/
int main(int argc, char* argv[]) {
// TODO: Change this line to use your name!
m_yourName = "TODO: YOUR NAME HERE";
m_yourName = "Zach Corse";

if (init(argc, argv)) {
mainLoop();
Expand Down