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
52 changes: 46 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,51 @@ Project 0 Getting Started

**University of Pennsylvania, CIS 5650: 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)
* Calvin Lieu
* [LinkedIn](www.linkedin.com/in/calvin-lieu-91912927b)
* Tested on: Windows 11, i5-13450HX @ 2.40GHz 16GB, NVIDIA GeForce RTX 5050 Laptop GPU 8GB (Personal)

###

Installing all the tools I need for GPU programming using an unfamiliar interface was certainly tricky! This was my first time setting up my own Windows system and first time using Visual Studio so this setup took a lot longer than expected. Thankfully everything seems to be working as expected. Proof below :)

---

### CUDA project edit
![Name Change](images/1-main-rename.png)
*First time editing a CUDA project.*

---

### Nsight CUDA debugging
![Thread Match](images/2-matched-thread-break.png)
*Breakpoint hit on a matched thread.*

![Thread ID](images/3-thread-ids.png)
*The matching thread's info in locals tab.*

The Nsight debugging tool looks like it will be very useful in identifying bugs in specific threads.

---

### Nsight Systems profiling
![Nsight Sys](images/4-nsight-sys.png)
*Nsight Systems timeline.*

![Nsight Sys Report](images/5-nsight-sys-rep.png)
*Summary report.*

The Nsight Systems tool will be essential for optimizing code and ensuring efficient scaling with its detailed metrics and visualisations.

---

### Web graphics capability
![WebGL](images/6-webgl-rep.png)
*WebGL compatibility report.*

![WebGPU](images/7-webgpu-rep.png)
*WebGPU compatibility report.*

My system is compatible with both WebGL and WebGPU—happy days.

### (TODO: Your 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.)
2 changes: 1 addition & 1 deletion cuda-gl-check/src/kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ __host__ __device__ void versionToColor(uchar4* pixel, int version) {
pixel->x = 255; pixel->y = 0; pixel->z = 128; break;
default:
pixel->x = 0; pixel->y = 0; pixel->z = 0;
}
}
}

// Kernel that writes the image to the OpenGL PBO directly.
Expand Down
2 changes: 1 addition & 1 deletion cuda-gl-check/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 = "Calvin Lieu";

if (init(argc, argv)) {
mainLoop();
Expand Down
Binary file added images/1-main-rename.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/2-matched-thread-break.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/3-thread-ids.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/4-nsight-sys.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/5-nsight-sys-rep.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/6-webgl-rep.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/7-webgpu-rep.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.