31
edits
Changes
→Assignment 3
For larger images, we found that the program was improved more and more as the amount of clusters and iterations increased.
[[File:Big Image.png]]
For medium images, we found more inconsistent results.
[[File:Med Image.png]]
For small images, we found the most inconsistent results after optimizations.
[[File:Small Image.png]]
Here we changed the calculation of y_index to the outside of the inner loop.
Calcuate distance found a significant improvements.
[[File:Calculate Distance Kernel.png]]
The biggest change was the thread/block size.
Generate image found improvements as well since image sizes varied. Changing the thread/block size to the correct amount of pixels enabled better usage of memory.
[[File:Generate Image Kernel.png]]
The biggest change was the thread/block size.