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
38 changes: 32 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,38 @@ 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)
* Ziad Ben Hadj-Alouane
* [LinkedIn](https://www.linkedin.com/in/ziadbha/), [personal website](https://www.seas.upenn.edu/~ziadb/)
* Tested on: Windows 10, i7-8750H @ 2.20GHz, 16GB, GTX 1060

### (TODO: Your README)
## Building & Running

Include screenshots, analysis, etc. (Remember, this is public, so don't put
anything here that you don't want to share with the world.)
Building & Running the app were done as per the instructions. I used Visual Studio 2015 to run build and ran both the Release and Debug versions. The output was the same in both cases as highlighted below.

### App Window
<p align="center">
<img src="https://github.com/ziedbha/Project0-CUDA-Getting-Started/blob/master/images/app.png"/>
</p>

## Profiling

Through NSight, I obtained the following timeline trace:

### Timeline
<p align="center">
<img src="https://github.com/ziedbha/Project0-CUDA-Getting-Started/blob/master/images/timeline1.png"/>
</p>

## CUDA Debugging

I initially ran into a "grid launch failure" error when I tried to run the CUDA debugger. It turns out that my NSight version was too low. Updating it to 5.6 fixed the issue. I was able to place breakpoints, edit their hit conditions, and examine autos. I was also able to examine information about kernels, blocks, and warps through the CUDA Info NSight menu.

### Autos
<p align="center">
<img src="https://github.com/ziedbha/Project0-CUDA-Getting-Started/blob/master/images/autos.png"/>
</p>

### CUDA Info (Warps)
<p align="center">
<img src="https://github.com/ziedbha/Project0-CUDA-Getting-Started/blob/master/images/warps.png"/>
</p>
Binary file added images/app.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/autos.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/timeline1.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/timeline2.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/warps.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 = "Ziad Ben Hadj-Alouane";

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