diff --git a/README.md b/README.md index dd258af..2925812 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,44 @@ Project 0 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) +* Aditya Hota + * [LinkedIn](https://www.linkedin.com/in/aditya-hota) +* Tested on: Windows 11, i7-8750H @ 2.20 GHz 20 GB, GTX 1050 Ti with Max-Q Design 6 GB (personal laptop) -### (TODO: Your README) +## Project Deliverables (Part 3) +## Part 3.1: CUDA +Compute Capability: `6.1` -Include screenshots, analysis, etc. (Remember, this is public, so don't put -anything here that you don't want to share with the world.) +### Part 3.1.1: Modify CUDA Program +Screenshot of CUDA project executable (with updated colors as of 9/1/2021): + + +### Part 3.1.2: Analyze Program +Application trace timeline: + + + +### Part 3.1.3: Nsight Debugging +The value for index 2300 is computed on thread `(12, 2, 0)` of block `(43, 0, 0)`. This is shown with the yellow arrow being on the 13th thread of the block. + + + +## Part 3.2: WebGL +My Chrome browser supports both WebGL 1 and WebGL 2. + + +
+ + +## Part 3.3: DXR +My computer supports the software fallback layer only (FL). I made my triangle purple. + + + +## Other contributions +On Optimus machines, you may get the error `Cuda error: Kernel failed!: all CUDA-capable devices are busy or unavailable.` It looks like Windows is starting to manage automatic GPU switching rather than the NVIDIA driver, so if this issue comes up, you might be able to fix it by going to the Windows Settings app > System > Display > Graphics and manually adding the path to the compiled executable that was built in VS code. Then, you can set the GPU to NVIDIA. + + +
+ \ No newline at end of file diff --git a/cuda-getting-started/src/main.cpp b/cuda-getting-started/src/main.cpp index 886fd4c..a4677c2 100644 --- a/cuda-getting-started/src/main.cpp +++ b/cuda-getting-started/src/main.cpp @@ -10,8 +10,7 @@ * 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 = "Aditya Hota"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..3eda147 100644 --- a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl +++ b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl @@ -69,7 +69,7 @@ void MyRaygenShader() [shader("closesthit")] void MyClosestHitShader(inout RayPayload payload, in MyAttributes attr) { - float3 barycentrics = float3(1 - attr.barycentrics.x - attr.barycentrics.y, attr.barycentrics.x, attr.barycentrics.y); + float3 barycentrics = float3(0.5f, 0.f, 1.f); payload.color = float4(barycentrics, 1); } diff --git a/images/cuda_3_1_1_name.png b/images/cuda_3_1_1_name.png new file mode 100644 index 0000000..5988a27 Binary files /dev/null and b/images/cuda_3_1_1_name.png differ diff --git a/images/cuda_3_1_1_name2.png b/images/cuda_3_1_1_name2.png new file mode 100644 index 0000000..c2faab2 Binary files /dev/null and b/images/cuda_3_1_1_name2.png differ diff --git a/images/cuda_3_1_2_trace.png b/images/cuda_3_1_2_trace.png new file mode 100644 index 0000000..df45840 Binary files /dev/null and b/images/cuda_3_1_2_trace.png differ diff --git a/images/cuda_3_1_3_warp_info.png b/images/cuda_3_1_3_warp_info.png new file mode 100644 index 0000000..0bc1d60 Binary files /dev/null and b/images/cuda_3_1_3_warp_info.png differ diff --git a/images/cuda_3_2_webgl_1.png b/images/cuda_3_2_webgl_1.png new file mode 100644 index 0000000..5f4a68f Binary files /dev/null and b/images/cuda_3_2_webgl_1.png differ diff --git a/images/cuda_3_2_webgl_2.png b/images/cuda_3_2_webgl_2.png new file mode 100644 index 0000000..9c4b533 Binary files /dev/null and b/images/cuda_3_2_webgl_2.png differ diff --git a/images/cuda_3_3_dxr_test.png b/images/cuda_3_3_dxr_test.png new file mode 100644 index 0000000..bd4f838 Binary files /dev/null and b/images/cuda_3_3_dxr_test.png differ diff --git a/images/cuda_getting_started_set_GPU.png b/images/cuda_getting_started_set_GPU.png new file mode 100644 index 0000000..dbc0c1f Binary files /dev/null and b/images/cuda_getting_started_set_GPU.png differ diff --git a/images/cuda_getting_started_set_GPU_confirm.png b/images/cuda_getting_started_set_GPU_confirm.png new file mode 100644 index 0000000..9a35801 Binary files /dev/null and b/images/cuda_getting_started_set_GPU_confirm.png differ