diff --git a/README.md b/README.md index fd52a04..e4566b3 100644 --- a/README.md +++ b/README.md @@ -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) \ No newline at end of file diff --git a/images/ss_color.png b/images/ss_color.png new file mode 100644 index 0000000..cd2f743 Binary files /dev/null and b/images/ss_color.png differ diff --git a/images/ss_performance.png b/images/ss_performance.png new file mode 100644 index 0000000..917f31c Binary files /dev/null and b/images/ss_performance.png differ diff --git a/images/ss_warps.png b/images/ss_warps.png new file mode 100644 index 0000000..bb0c185 Binary files /dev/null and b/images/ss_warps.png differ diff --git a/src/kernel.cu b/src/kernel.cu index e88c806..d3c3d3e 100644 --- a/src/kernel.cu +++ b/src/kernel.cu @@ -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; @@ -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; - } + } } } diff --git a/src/main.cpp b/src/main.cpp index 886fd4c..1ed884d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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();