DUE Friday, June 12
The objective of this assignment is to implement a histogram kernel and demonstrate the usage of atomic operations.
For this lab, we will be using Github Classroom.
Please join the classroom by clicking the following link: https://classroom.github.com/a/Bfes2q4w
Once you join the classroom, a private github repository will automatically be created with the starter code.
Simply git clone
to copy the starter code to Bender or the GPGPU-Sim container.
Edit the source files kernel.cu
to complete the functionality of histogram on the device. The size of input and number of bins can be any size, but we will not test your code with bin size larger than 4096 or size of input greater than 1M.
Please use a block size of 512.
There are three modes of operation for the application. Check main()
for a description of the modes (repeated below). You will support each of these modes using Histogram with a privitization pattern.
All questions are conceptual
Assume you perform a histogram operation on an array of size N, 16 blocks, block size of B and 1024 bins. Assume a privitized histogram implementation.
kernel.cu
.)report.pdf
or report.txt
or report.docx
, etc.
Please include your name in the report.