39
edits
Changes
→Assignment 3
Overall, this is what the optimized rotateImage() function and the rotate() kernel looks like:
[[File:OptimizedFunction.jpg]]
Some calculation previously done inside the kernel (finding the center of images and finding radians calculation) were moved to outside the kernel and its value passed in. Kernel:
[[File:OptimizedKernel.jpg]]
Profiling with the same images gives the following result.
[[File:OptimizedChart.jpg]]