Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project 0: Ruoyu Fan #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
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
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,17 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
list(APPEND CORELIBS "-framework CoreVideo")
endif()

message(STATUS "Hello!")
# Linux-specific hacks/fixes
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lX11 -lXxf86vm -lXrandr -lXi")
find_library(x11 NAMES X11)
find_library(xrandr NAMES Xrandr)
find_library(xi NAMES Xi)
find_library(xxf86vm NAMES Xxf86vm)
list(APPEND CORELIBS ${x11})
list(APPEND CORELIBS ${xrandr})
list(APPEND CORELIBS ${xi})
list(APPEND CORELIBS ${xxf86vm})
endif()

# Crucial magic for CUDA linking
Expand Down
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,18 @@ 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)
* Ruoyu Fan
* Tested on: Windows 10, i7-4720HQ @ 2.60GHz, 16GB Memory,
GTX 970M 3072MB
### Things I have done

### (TODO: Your README)
* Name in title bar
* Screenshots
* Screenshot of analysis

Include screenshots, analysis, etc. (Remember, this is public, so don't put
anything here that you don't want to share with the world.)
My laptop comes with Nvidia Optimus. Whenever I hit "Launch" for the performance
analysis while "OpenGL" checked in "Trace Settings", the program crashes. So I
traced CUDA only in the screenshot.

![Result](images/screenshot-result.png)
![Timeline](images/screenshot-analysis.png)
Binary file added images/screenshot-analysis.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/screenshot-result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 = "Ruoyu Fan";

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