Open main menu

CDOT Wiki β

Changes

DPS915 Toad

49 bytes added, 16:08, 14 November 2015
Assignment 2
The original image:
http[[Image://i.imgur.com/VJm1IISOrg_image_before_negation.png]]
After the negation:
http[[Image://i.imgur.com/llnfQJTOriginal_image_toad.png]]
The results:
As you can see from Assignment 1, it took the serial program 230 milliseconds to negate this image of equal size. Now, seeing as this is mighty GTX 960, we thought we would not iterate through the process once, but 1000 times! That would mean that the serial implementation would take approximately 230 seconds to complete. So how fast did the GPU do it in?
http[[Image://i.imgur.com/9AtFQ48Gpu_speed_img_1.png]]
We saw the GPU smash 1000 iterations in 22 milliseconds. That's over 10,000 times faster! Clearly, image processing begs to be worked on by parallel processors. The massive throughput of the 1024 cuda cores, which can operate on thousands of pixels at the same time reduces the time, really beating the CPU without much of a sweat. Here is the NSIGHT performance analysis:
http[[Image://i.imgur.com/H9P0pWXNsight_performance_analysis_1.png]]
http[[Image://i.imgur.com/2bdRt8TNsight_performance_analysis_2.png]]
http[[Image://i.imgur.com/zdFf4DDNsight_performance_analysis_3.png]]
In closing, we're interested in optimizing our image processor to handle 2D arrays without serialization. That way, we can extent our GPU power to the rest of the methods, without worrying about columns and rows within a 1D array. All in all, we learned a lot and look forward to applying our knowledge further in the coming weeks!