diff --git a/README.md b/README.md index dd258af..f6d4993 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,38 @@ 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) +* Raymond Yang + * [LinkedIn](https://www.linkedin.com/in/raymond-yang-b85b19168) +* Tested on: September 1, 2021 with Windows 10 -### (TODO: Your README) +## Testing and Analysis +This section entails the results of testing config for my personal laptop (XPS 15 9570) after completing Part 1 of instructions. -Include screenshots, analysis, etc. (Remember, this is public, so don't put -anything here that you don't want to share with the world.) +### Testing CUDA +My laptop successfully configured and generated a Visual Studio Solution file for building and running 'cis565_getting_started'. Prior to modification of line 13 of 'main.cpp' the output follows: +![image0](images/SS_00_Unmodified_Test.PNG) +After modification of line 13 of 'main.cpp' the output follows: +![image0](images/SS_01_Modified_Test.PNG) + +### Analyzing CUDA +Using Nsight to analyze CUDA required additional extensions no longer native to Visual Studios. Details can be found [here](https://developer.nvidia.com/nvidia-nsight-integration-install-tips). +In order to perform a trace, I followed 'Extensions >> Nsight >> Nsight Systems 2021.2.4 >> Trace'. The output follows: +![image0](images/SS_02_Timeline.PNG) + +### Nsight Debugging +This portion of the instructions demonstrated fundamentals for using CUDA Nsight Debugging Tools. Using 'index == 2000' as the test condition, the output mapping 'blockIdx' and 'threadIdx' to +'CTA' and 'Thread' respectively follows: +![image0](images/SS_03_Autos_Locals.PNG) + +### WebGL Verification +This portion tests whether our local computers have functionality with WebGL. The output follows: +![image0](images/SS_04_WebGL_Preview.PNG) + +### DXR Verification +This portion is intended to identify the capacity of our local computers with respect to DXR. From the results, my personal laptop is exclusively capable of 'FL'. +The results from the unmodified 'barycentric' vector value follows: +![image0](images/SS_05_DXR_Test_Only_FL.PNG) + +The results from the modified 'barycentrics = float3(0, 1.0, 0)' follows: +![image0](images/SS_06_DXR_Test_Only_FL_Modified_Triangle.PNG) \ No newline at end of file diff --git a/cuda-getting-started/src/main.cpp b/cuda-getting-started/src/main.cpp index 886fd4c..888f4e5 100644 --- a/cuda-getting-started/src/main.cpp +++ b/cuda-getting-started/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 = "Raymond Yang"; if (init(argc, argv)) { mainLoop(); diff --git a/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl b/dxr-support/src/D3D12RaytracingHelloWorld/Raytracing.hlsl index d817ca4..e1af3b5 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, 1.0, 0); payload.color = float4(barycentrics, 1); } diff --git a/images/SS_00_Unmodified_Test.PNG b/images/SS_00_Unmodified_Test.PNG new file mode 100644 index 0000000..099d37b Binary files /dev/null and b/images/SS_00_Unmodified_Test.PNG differ diff --git a/images/SS_01_Modified_Test.PNG b/images/SS_01_Modified_Test.PNG new file mode 100644 index 0000000..f3c1a53 Binary files /dev/null and b/images/SS_01_Modified_Test.PNG differ diff --git a/images/SS_02_Timeline.PNG b/images/SS_02_Timeline.PNG new file mode 100644 index 0000000..cc18e9f Binary files /dev/null and b/images/SS_02_Timeline.PNG differ diff --git a/images/SS_03_Autos_Locals.PNG b/images/SS_03_Autos_Locals.PNG new file mode 100644 index 0000000..f1404bb Binary files /dev/null and b/images/SS_03_Autos_Locals.PNG differ diff --git a/images/SS_04_WebGL_Preview.PNG b/images/SS_04_WebGL_Preview.PNG new file mode 100644 index 0000000..5da9b06 Binary files /dev/null and b/images/SS_04_WebGL_Preview.PNG differ diff --git a/images/SS_05_DXR_Test_Only_FL.PNG b/images/SS_05_DXR_Test_Only_FL.PNG new file mode 100644 index 0000000..c560f17 Binary files /dev/null and b/images/SS_05_DXR_Test_Only_FL.PNG differ diff --git a/images/SS_06_DXR_Test_Only_FL_Modified_Triangle.PNG b/images/SS_06_DXR_Test_Only_FL_Modified_Triangle.PNG new file mode 100644 index 0000000..c67db58 Binary files /dev/null and b/images/SS_06_DXR_Test_Only_FL_Modified_Triangle.PNG differ