diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c80bce..d95b0e4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux") set(EXTERNAL_LIB_PATH "${EXTERNAL}/lib/linux" "/usr/lib64") elseif(WIN32) - if(${MSVC_VERSION} MATCHES "1900") + if(${MSVC_VERSION} MATCHES "1914") + set(EXTERNAL_LIB_PATH "${EXTERNAL}/lib/win/vc2017") + elseif(${MSVC_VERSION} MATCHES "1900") set(EXTERNAL_LIB_PATH "${EXTERNAL}/lib/win/vc2015") elseif(${MSVC_VERSION} MATCHES "1800") set(EXTERNAL_LIB_PATH "${EXTERNAL}/lib/win/vc2013") diff --git a/README.md b/README.md index 793f2b2..86b98ef 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,46 @@ 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) +**Anantha Srinivas** +[LinkedIn](https://www.linkedin.com/in/anantha-srinivas-00198958/), [Twitter](https://twitter.com/an2tha) -### (TODO: Your README) +**Tested on:** +* Windows 10, i7-8700 @ 3.20GHz 16GB, GTX 1080 8097MB (Personal) +* Built for Visual Studio 2017 using the v140 toolkit -Include screenshots, analysis, etc. (Remember, this is public, so don't put -anything here that you don't want to share with the world.) +**NOTE: There is a difference in my output image and the expected one. It may be due to different SM Architecture.** + +![](images/gl_window.PNG) + +__Output Window__ + +![](images/trace.PNG) + +__Performance Graph__ + +![](images/cuda_info.PNG) + +__CUDA Info__ + +![Autos](images/autos.PNG) + +__Autos__ + +--- + +## Implementations + +* Built CUDA project using CMAKE +* Changed Window Title to include my name +* Ran NSight Performance Analysis +* Debugged Kernel Using NSight + +## Modifications to build + +* Changed mimimum Compute capability to 5 +* Added Visual Studio 2017 to cmake + +Built using the command: + +`cmake.. -G "Visual Studio 15 2017 Win64" -DCUDA_TOOLKIT_ROOT_DIR="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2" -T v140,cuda=9.2` diff --git a/images/autos.PNG b/images/autos.PNG new file mode 100644 index 0000000..b029ee9 Binary files /dev/null and b/images/autos.PNG differ diff --git a/images/cuda_info.PNG b/images/cuda_info.PNG new file mode 100644 index 0000000..5bc7356 Binary files /dev/null and b/images/cuda_info.PNG differ diff --git a/images/gl_window.PNG b/images/gl_window.PNG new file mode 100644 index 0000000..52f787c Binary files /dev/null and b/images/gl_window.PNG differ diff --git a/images/trace.PNG b/images/trace.PNG new file mode 100644 index 0000000..2762374 Binary files /dev/null and b/images/trace.PNG differ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b98ef96..57c6787 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,5 +7,5 @@ set(SOURCE_FILES cuda_add_library(src ${SOURCE_FILES} - OPTIONS -arch=sm_20 + OPTIONS -arch=sm_50 ) diff --git a/src/main.cpp b/src/main.cpp index 886fd4c..d9e22e4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -10,8 +10,8 @@ * 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 = "Anantha Srinivas"; if (init(argc, argv)) { mainLoop();