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
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ Project 0 CUDA Getting Started

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

* (TODO) YOUR NAME HERE
* Tested on: (TODO) Windows 22, i7-2222 @ 2.22GHz 22GB, GTX 222 222MB (Moore 2222 Lab)
* Joseph Klinger
* Tested on: Windows 10, i5-7300HQ (4 CPUs) @ ~2.50GHz 2B, GTX 1050 6030MB (Personal Machine)

### (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.)
After successfully installing and building, my personal machine resulted in the following image upon running:
![](images/ss_color.png)

Performance analysis yielded the following results:
![](images/ss_performance.png)

After (finally) getting breakpoints and autos/locals to display properly, the following was the result of analyzing the Warps in CUDA Info 1:
![](images/ss_warps.png)
Binary file added images/ss_color.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/ss_performance.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/ss_warps.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ __global__ void createVersionVisualization(uchar4* PBOpos, int width, int height
int x = (blockIdx.x * blockDim.x) + threadIdx.x;
int y = (blockIdx.y * blockDim.y) + threadIdx.y;
int index = x + (y * width);

if (x <= width && y <= height) {
// Each thread writes one pixel location in the texture (textel)
PBOpos[index].w = 0;
PBOpos[index].x = 0;
PBOpos[index].y = 0;
PBOpos[index].z = 0;

int ver = y < height / 2 ? major : minor;
if (ver == 0) {
PBOpos[index].x = 255;
Expand All @@ -47,7 +47,7 @@ __global__ void createVersionVisualization(uchar4* PBOpos, int width, int height
} else if (ver == 5) {
PBOpos[index].z = 255;
PBOpos[index].y = 255;
}
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*/
int main(int argc, char* argv[]) {
// TODO: Change this line to use your name!
m_yourName = "TODO: YOUR NAME HERE";
m_yourName = "Joseph Klinger";

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