49
edits
Changes
→Host Memory Management
In the original program a bmp is loaded into an vector of uint8_t. This is not ideal for CUDA, therefore an array of pinned memory was allocated. This array contains the same amount of elements but stores them as a structure, "BGRPixel" which is three contiguous floats. The vector is then transferred over to pinned memory.
{| class="wikitable mw-collapsible mw-collapsed"
! Unoptimized Host Memory Management - BlurImageCode( ... )
|-
|