Highlights
Introduction
As discussed in class, effective use of shared memory is an essential part of writing efficient GPU kernels. In Lab 5 you implemented a global-memory implementation of an image blur kernel for OpenCL and CUDA. In this assignment you will implement a tiled shared memory implementation of the blur function kernel, and compare its performance to the global-memory implementation.
Assignment 1: Shared Memory GPU Programming
2.1 Instructions
Given your solution to Lab 5 and the course notes on effective use of shared memory, modify your kernel for either OpenCL or CUDA (your choice) so that it takes a 2-D tiled-memory approach.
2.2 Questions and Discussion
Q1. In your own words explain how your shared-memory implementation works and why you expect it to be faster than a global-memory implementation.
Q2. For a fixed image of your choice (at least several hundred pixels by several hundred pixels) run both your shared-memory and global-memory kernels for a fixed block size (your choice) and different blur levels. Plot or tabulate the results as a function of blur level and discuss the results. Are they what you expect? Why or why not?
Q3. For a fixed blur level, time your shared-memory and global-memory kernels for different block sizes. Plot or tabulate the results as a function of block size and discuss the results. Are they what you expect? Why or why not?
This ECE 4530 IT Computer Science Assignment has been solved by our IT Computer Science Experts at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.